for i = 0 < texCount savepos REMEMBER get fileNo long get null0 long get fileOff long get null1 long
goto fileOff
get null2 long get twoFiddy long get fileLength long math tempVar = fileOff math tempVar += 0x9D
goto tempVar
getCT NAME string 0x0
log NAME fileOff fileLength
math REMEMBER += 0x10 goto REMEMBER next i
The files are extracted, alright, but they don't get given the names I want them to be given. Instead, they're just given the automatically generated names. I can't post FRONTEND.TXD or GLOBAL.TXD here due to copyright issues, but if anyone else has Burnout 3, I'd be delighted if I could receive some help with this.
And I know, the script is awful, but it's not too bad for my first one IIDSSM .
i'm seeing a problem with your filelength, some extracted files are zero bytes, the long integer before the string name looks like the correct size and works with all but
Volumebar B3Logo finish EATrax coronaglow
where the size exceeds the data by 64 bytes, there must be a flag or something that signals this
goto 0x8 get FILES long get SKIP long for i = 0 < FILES get SKIP long get SKIP long get OFFSET long get SKIP long savepos TMP goto OFFSET savepos TMP2 math TMP2 + 164 goto TMP2 get SIZE long get NAME string string NAME + ".tex" log NAME OFFSET SIZE goto TMP next i