i'm looking into cracking open this game's files for modding in the future. the old thread has slight amounts of info that might be useful, but here's the jist for the files:
Ekey wrote:*.PAK - simple ZIP
*.DAT - obfuscated / encrypted - seems xor
the .PAKs for textures are easily openable in 7zip, winrar or any other program.
however, the ones for items such as music appear to be unopenable that way, but there appears to be a script to extract the files:
aluigi wrote:You can use this script to dump the ogg files:It's quite raw and lame but worksCode: Select all
quickbmsver "0.7.6a"
get PAK_SIZE asize
math OFFSET = 0
callfunction TEST 1
do
math OFFSET = NEW_OFFSET
goto NEXT_OFFSET
getdstring DUMMY 10
callfunction TEST 1
xmath SIZE "NEW_OFFSET - OFFSET"
log "" OFFSET SIZE
math OFFSET = NEW_OFFSET
while OFFSET != PAK_SIZE
startfunction TEST
math LAST_OFFSET = OFFSET
findloc NEXT_OFFSET binary "\x01vorbis" 0 ""
if NEXT_OFFSET == ""
get NEW_OFFSET asize
else
goto NEXT_OFFSET
findloc NEW_OFFSET binary "OggS" 0 "" LAST_OFFSET
endif
endfunction
i have attached the examples of .dats, and a .pak for audio and textures.
any help on this would be very much nice. thank you.