Nicktoons Globs of Doom .TRB

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
lemurboy12
Posts: 265
Joined: Fri Oct 17, 2014 2:57 am

Nicktoons Globs of Doom .TRB

Post by lemurboy12 »

puggsoy
Posts: 161
Joined: Sat Dec 13, 2014 1:01 am

Re: Nicktoons Globs of Doom .TRB

Post by puggsoy »

This seems to work:

Code: Select all

# Nicktoons Globs of Doom .trb
#
# Written by puggsoy
# script for QuickBMS http://quickbms.aluigi.org

endian big
idstring "TSFB"
get FILESIZE long
math FILESIZE += 8
get FSIZE asize

if FILESIZE != FSIZE
   print "incorrect filesize!"
   exit
endif

idstring "FBRTXRDH" #I have to do this because it's the only header that isn't 4 bytes long. As far as I can tell it's always the first file anyway
get SIZE long
math SIZE += 12
savepos OFFSET
math OFFSET -= 12
get NAME basename
string NAME += ".fbrtxrdh"

log NAME OFFSET SIZE

math OFFSET += SIZE

for OFFSET = OFFSET < FSIZE
   set LEFT FSIZE
   math LEFT -= OFFSET
   
   if LEFT < 8
      break
   endif
   
   goto OFFSET
   getdstring EXT 4
   string EXT l EXT
   get SIZE long
   math SIZE += 8
   get NAME basename
   string NAME += "."
   string NAME += EXT
   
   log NAME OFFSET SIZE
   
   math OFFSET += SIZE
next

Unfortunately I'm not sure what to do with the resulting files. I might look into them later on.