Page 1 of 1

Dragonage 2 Demo

Posted: Mon Feb 21, 2011 6:33 pm
by chrrox
Here is an extractor for the files in dragon age 2 its not perfect yet i need to add more extensions but it gets the job done.

Code: Select all

getdstring version 0x10
get off long
get files long
get unk09 long
set mainoff 0x30
math mainoff + off
goto mainoff
comtype inflate
for i = 0 < files
set name i
get null01 long
get unk01 long
get unk02 long
get ext long
if ext == 1131896374
set ext PHY
endif
if ext == 663550188
set ext MMI
endif
if ext == 746452407
set ext MESH
endif
if ext == 1048449626
set ext XML
endif
if ext == 1067198654
set ext ANBT
endif
if ext == 1114824674
set ext RML
endif
if ext == 1115560169
set ext MMH
endif
if ext == 395652716
set ext DDS
endif
if ext == 579662031
set ext GAD
endif
if ext == 932389276
set ext EVT
endif
if ext == 1067198645
set ext ANI
endif

string name + .
string name + ext
get offset long
get zsize long
get size long
if zsize == size
log name offset size
else
math offset + 1
math zsize - 1
clog name offset zsize size
endif
next i

Re: Dragonage 2 Demo

Posted: Mon Feb 21, 2011 7:28 pm
by The Chief
Awesome Chrrox , but just curius the demo its from 360 or PS3 version?

Re: Dragonage 2 Demo

Posted: Mon Feb 21, 2011 7:53 pm
by chrrox
PC

Re: Dragonage 2 Demo

Posted: Tue Feb 22, 2011 11:41 am
by chrrox
updated script to add model name support makes it much easier looking at the model names.

Code: Select all

getdstring version 0x10
get off long
get files long
get unk09 long
set mainoff 0x30
math mainoff + off
goto mainoff
comtype inflate
for i = 0 < files
set name i
get null01 long
get unk01 long
get unk02 long
get ext long
if ext == 1131896374
set ext PHY
endif
if ext == 663550188
set ext MMI
endif
if ext == 1048449626
set ext XML
endif
if ext == 1067198654
set ext ANBT
endif
if ext == 1114824674
set ext RML
endif
if ext == 1115560169
set ext MMH
endif
if ext == 395652716
set ext DDS
endif
if ext == 579662031
set ext GAD
endif
if ext == 932389276
set ext EVT
endif
if ext == 1067198645
set ext ANI
endif

string name + .
string name + ext
get offset long
get zsize long
get size long
if ext == 746452407
math offset + 1
math zsize - 1
clog MEMORY_FILE offset zsize size
goto 0x1A0 MEMORY_FILE
get nameoff long MEMORY_FILE
math nameoff + 0x1A0
goto nameoff MEMORY_FILE
get nsize long MEMORY_FILE
math nsize * 2
getdstring UNAME nsize MEMORY_FILE
set NAME unicode UNAME
endif
if zsize == size
log name offset size
else
if ext == 746452407
else
math offset + 1
math zsize - 1
endif
clog name offset zsize size
endif

next i

Re: Dragonage 2 Demo

Posted: Tue Feb 22, 2011 10:22 pm
by The Chief
Nice update Chrrox , but just curius ¿In wich files are the models?
i found some CRF and other files? and this script it for bms or max?

Thanks in advance. :wink:

Re: Dragonage 2 Demo

Posted: Tue Feb 22, 2011 10:46 pm
by chrrox
the one big archive its like 700mb