I'm currently trying to correctly extract files from these archives. A comtype scan revealed that either LZ77WII or DS_LZX seems to be working. For most of the files this works fine but sometimes I get the message that some files are not compressed with this particular compression. There's no identifier for the compression either.
Here's the really simple script:
Code: Select all
idstring "CRAG"
comtype LZ77WII
#comtype DS_LZX
get BNAME basename
goto 0x1c
getDstring IDENT 4
get MYOFF long
math MYOFF += 0x1c
goto MYOFF
getDstring IDENT 4
get BLOCKSIZE long
get FILES long
savepos GOTOHERE
math MYOFF += BLOCKSIZE
goto MYOFF
getDstring IDENT 4
get BLOCKSIZE long
xmath BIAS "MYOFF + BLOCKSIZE"
goto GOTOHERE
for i = 1 <= FILES
get UNK long
get OFFSET long
math OFFSET += BIAS
get OFFSET2 long
get ZSIZE long
xmath SIZE "ZSIZE * 0x100"
clog "" OFFSET ZSIZE SIZE
next i
Examples 1: http://www91.zippyshare.com/v/jcjRXGWe/file.html
Examples 2: http://www116.zippyshare.com/v/jr6KwuzF/file.html (quickBMS crashes)
Thanks for taking a look!