09-16-2013, 06:41 AM
Code:
endian big
goto 0xc
get BIAS long
endian little
goto 0x28
get FILES long
goto 0x40
for i = 1 <= FILES
get FID long
get OFFSET long
math OFFSET += BIAS
get SIZE long
get TYPE long
get DUMMY long
if TYPE == 4
elif TYPE == 1
elif TYPE == 12
elif TYPE == 15
elif TYPE == 23
elif TYPE == 26
elif TYPE == 33
elif TYPE == 54
elif TYPE == 64
elif TYPE == 65
elif TYPE == 96
elif TYPE == 108
elif TYPE == 111
elif TYPE == 123
elif TYPE == 135
elif TYPE == 198
elif TYPE == 199
elif TYPE == 3584 # last file
elif TYPE < 0
else
savepos MYOFF
goto OFFSET
get NAMEL long
getDstring FNAME NAMEL
savepos OFFSET2
set HEAD OFFSET2
math HEAD -= OFFSET
set TEST HEAD
math TEST %= 4
if TEST != 0
math HEAD /= 4
math HEAD += 1
math HEAD *= 4
math OFFSET += HEAD
math SIZE -= HEAD
endif
math SIZE -= 4
math OFFSET += 4
goto MYOFF
get NAME basename
string NAME += "/"
set EXT ""
if TYPE == 152
math OFFSET += 0xc
math SIZE -= 0xc
set EXT ".ogm"
elif TYPE == 49
set EXT ".xml"
else
set EXT "."
string EXT += TYPE
endif
string NAME += FNAME
string NAME += EXT
log NAME OFFSET SIZE
endif
next i
Then, all of the files that come out, the .28 files are images that Previous and I managed to work out are actually usable.
http://www.previousstudios.net/apps/TwentyEight.zip
Drop them into this program.
Sorry Lexou, I was on honeymoon at the time, and forgot to get back to you when I got home.