

Somebody can help me to extract this compressed file format, please?
Code: Select all
comtype lzss0
get UNK long # Always 0x01
get SIZE long
savepos CURRPOS
get ZSIZE asize
math ZSIZE - CURRPOS
get NAME basename
string NAME + .dec
clog NAME CURRPOS ZSIZE SIZE
Code: Select all
get FILES long
padding 16
xmath OFFSET "FILES * 0x20 + 0x10"
for i = 0 < FILES
getDstring NAME 16
get SIZE long
padding 16
log NAME OFFSET SIZE
math OFFSET + SIZE
next i
BloodRaynare wrote:Here's the BMS script to decompress the PAC file:
pac_decompress.bmsCode: Select all
comtype lzss0
get UNK long # Always 0x01
get SIZE long
savepos CURRPOS
get ZSIZE asize
math ZSIZE - CURRPOS
get NAME basename
string NAME + .dec
clog NAME CURRPOS ZSIZE SIZE
And here's the script to extract the files from the resulting dec files
dec_extract.bmsCode: Select all
get FILES long
padding 16
xmath OFFSET "FILES * 0x20 + 0x10"
for i = 0 < FILES
getDstring NAME 16
get SIZE long
padding 16
log NAME OFFSET SIZE
math OFFSET + SIZE
next i