QuickBMS Script quick fix? [Angry Birds GO! XPK2]

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
SecretAgent2001
Posts: 8
Joined: Sun Aug 06, 2017 3:43 am

QuickBMS Script quick fix? [Angry Birds GO! XPK2]

Post by SecretAgent2001 »

(I originally posted this thread on xentax)
I've created this script to extract the sounds of the iOS application Angry Birds GO!, but some flaws with it include getting the file names muddled up and some of the sounds not playing. Can someone fix it for me?
Here's the file I'm trying to extract: https://mega.nz/#!v1xUgIhB!P8FZpIj-wk26NhdiMHIfKoRoZ6bpZix9SXvovkEa5Z4
And here's the script that I'm using:

Code: Select all

endian little
goto 1
idstring "KPX"
get FOLDERS long
get FILES long
get NAMESTABLESIZE long

math FOLDER_BASE = 16
math FILE_BASE = 0x0480
math NAME_BASE = 0x8454

goto FILE_BASE
for i = 0 < FILES
    get OFFSET long
    get FLAG long
    get NULL long
    get SIZE long
    get NULL long
    get NAMEOFF long
    get NULL long
    get ZSIZE long
    savepos TEMP
   
    math NAMEJUMP = NAME_BASE
   math NAMEJUMP += NAMEOFF
   goto NAMEJUMP
   get NAME string
   log NAME OFFSET SIZE
    goto TEMP
next i

Help is appreciated.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: QuickBMS Script quick fix?

Post by aluigi »

Script 0.1.1 (added correct compression algorithm):
http://aluigi.org/bms/xpk2.bms