EDiT: Solved.
So here is it. First script is for decompressing bin archives and second is for unpacking.
Code: Select all
####################################
comtype oodle
get FNAME basename
getdstring DUMMY 0x8
get FSIZE longlong
get SIZE longlong
get FILECOUNT longlong
get CHUNKCOUNT long
get DUMMY long
math FILECOUNT * 32
getdstring DUMMY FILECOUNT
append
for i = 0 < CHUNKCOUNT
get TOTAL_SIZE longlong
get CHUNK_SIZE long
get DUMMY long
get OFFSET longlong
get CHUNK_ZSIZE long
get FILEID long
string NAME p "%s%s" FNAME .bin_d
clog NAME OFFSET CHUNK_ZSIZE CHUNK_SIZE
next i
For unpack. Just select idx file of decompressed bin.
Code: Select all
####################################
open FDDE "idx" 0
open FDDE "bin_d" 1
get FNAME basename
#getdstring SIGN 0x4
idstring "\x40\x30\x20\x10"
get FILES long
for i = 0 < FILES
get STRING_LENGTH long
getdstring FILENAME STRING_LENGTH
getdstring DUMMY 0x10
get OFFSET longlong
get SIZE longlong
string NAME p "%s/%s" FNAME FILENAME
log NAME OFFSET SIZE 1
next i
Small Archive
Code: Select all
https://drive.google.com/file/d/1GAKL4NI6zTGBedMX3H01Vpp2-_32Qdaq/view?usp=sharing
EDiT: Thanks Ekey for links but i figured it out. I just added "append" before this line "for i = 0 < CHUNKCOUNT"