http://zenhax.com/viewtopic.php?f=9&t=60&hilit=Trails
But Ekey's bms script didn't support uncompress, so I wrote it.
It works on all *.dir files but reimporting is not work.
Script Samples https://www.sendspace.com/file/dhcb7h
Result.
Reimport Error.
Code: Select all
#Select *.dir or *.dat files to unpack.
comtype falcom
open FDDE DIR 0
open FDDE DAT 1
idstring "LB DIR"
goto 0x10
Do
savepos tmp
getdstring name 0x10
get ZSIZE long
get UNK long #This is NOT SIZE
get ZSIZE2 long
get CRC32 long
get OFFSET long
savepos tmp2
get packname filename
string packname += _unpacked/
string packname += name
if ZSIZE == 0
xmath tmp "tmp + 0x24"
goto tmp
elif tmp2 = EOF #For ED6_DT09.dat
cleanexit
elif ZSIZE = UNK #For *._X2, *.wave and *._DS(dds file).
log packname OFFSET ZSIZE 1
elif ZSIZE = ZSIZE2
clog packname OFFSET ZSIZE 0x1000000 1
endif
While name != "/_______.___"
I read document and it seems that quickbms support falcom_compress.
What did I do wrong?