[Script] Avatar: The Legend of Aang games (Wii) - pack identifier

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

[Script] Avatar: The Legend of Aang games (Wii) - pack identifier

Post by AlphaTwentyThree »

Hi there!

I've just written a script for the Avatar games for Wii and I'd like to share it with you guys. :)

Code: Select all

# extrackt the pak files from Avatar: The Legend of Aang games (Wii)
# (c) by AlphaTwentyThree of Zanhax
# script for QuickBMS http://quickbms.aluigi.org

comtype zlib
idstring "pack"
endian big
get UNK long
get INFO long
get TOCSIZE long
get NAMES long
math NAMES += INFO
get FILES long
goto INFO
for i = 1 <= FILES
   get OFFSET long
   get SIZE long
   get CSIZE long
   get NAMEOFF long
   math NAMEOFF += NAMES
   get UNK long
   getDstring COMP 4
   savepos MYOFF
   goto NAMEOFF
   get NAME string
   goto MYOFF
   if COMP == "zlib"
      clog NAME OFFSET CSIZE SIZE
   elif COMP == ""
      log NAME OFFSET SIZE
   endif
next i


Have fun! :)