Hello, all. I am here to find a way to decompress the BTLMON.BIN file for the guy behind PS23DFormat. According to him, the files us some sort of LZ compression to house the character and enemy models.
quickbms script to decompress files.
Needs to add support for extracting sub archives (align data to 0x800 after last file and start over again)
Run this first for now.
getdstring DIV 4
goto 0
for
findloc OFFSET string DIV
print "%OFFSET%"
getdstring TMP 0x20
findloc SIZE string DIV
goto SIZE
math SIZE - OFFSET
log "" OFFSET SIZE
next
comtype LZSS0
savepos BASE
findloc FILES string "\x00\x00\x00\x00"
math FILES / 4
print "%FILES%"
for i = 0 < FILES
get OFFSET long
math OFFSET - 0x1D00000
putarray 0 i OFFSET
next i
math FILES - 1
for i = 0 < FILES
set j i
math j + 1
getarray OFFSET 0 i
getarray SIZE 0 j
math SIZE - OFFSET
if SIZE > 0
math OFFSET + BASE
log MEMORY_FILE OFFSET SIZE
get TSIZE long MEMORY_FILE
get SIZE asize MEMORY_FILE
print "%TSIZE%"
if TSIZE > 0x1FFFFF || TSIZE < 0
log "" 0 SIZE MEMORY_FILE
else
math SIZE - 4
clog "" 4 SIZE TSIZE MEMORY_FILE
endif
endif
next i
Thanks for looking into this I was able to decompress the files .MWO but is there any support to figuring out the monster data in the BTLMON.BIN ? Or even finding out how the bone structure works in the decompressed files. I've studied that script for over a year now and its a mystery. You and daemon are some of the best and if these files are too much then it seems i will never get a working model from this series. I could really use some help. I found by changing the script from seek 20 to seek 31 it finds the world/stages. Some kind of byte stride/padding value ? I can't be the only one who wants this title any help on compression or how to get the bones/animations would be a major help.