I've been trying to write a script for this archive, but I don't know any further. The problem is, that there are two more names than given in the TOC. (0x3d vs. 0x3f). Really hate when that happens... The problem is that I cannot link the TOC to the name section (0x1b18). Can somebody try to link this? Maybe I'm just blind...
Here is the archive: https://www27.zippyshare.com/v/g269OyiR/file.html
And here is what I've written so far:
Code: Select all
idstring "res"
goto 0xc
get INFO_BIAS long
goto 0x14
get DATA_START long
goto 0x20
get INFO_OFF long
goto INFO_OFF
get FIELDS long
get UNK long
for i = 1 <= FIELDS
getDstring IDENT 4
if IDENT == "mdat"
get UNK byte
get OFFSET threebyte
math OFFSET *= 0x100
get SIZE long
get ZERO long
get ONE long
elif IDENT == "musc"
get OFFSET_INFO long
math OFFSET_INFO += INFO_BIAS
get UNK longlong
get SOME_OFFSET long
savepos MYOFF
goto OFFSET_INFO
get BITS short
get CH short
get FREQ long
get SIZE long
get OFFSET long
math OFFSET += DATA_START
goto MYOFF
else
getDstring UNKNOWN_DATA 0x10
endif
next i