I was trying to figure out what compression this is using, but no clue.
What I think have figured out:
Code: Select all
get MAGIC Long
Get SIZE Long
Get ZSIZE Long
get UNK Long
Math ZSIZE - 16
Get FILENAME basename
String FILENAME + "_dec.bin"
CLog FILENAME 16 ZSIZE SIZE
ZSIZE matches asize.
Was trying Puyo_LZ01. QuickBMS doesn't throw error, but it produces wrong file.
Attached compressed BNTX file called "splash.png" (which is not PNG). Uncompressed file should start with MAGIC "BNTX", in compressed file it seems to start with flag 0xEF before BNTX magic.
My guess is that 0xEF means next 4 bytes are uncompressed.