Code: Select all
# Gundam Breaker 2 (PS3) (PCK format)
#
# Written by Ekey (h4x0r)
#
# script for QuickBMS http://quickbms.aluigi.org
endian BIG
idstring "\x00cap"
goto 0x80
get FILES long
get DUMMY long #?
set OFFSET long FILES
math OFFSET *= 264
math OFFSET += 264
for i = 0 < FILES
getdstring NAME 256
get HASH long
get DZSIZE long
savepos TEMP
goto OFFSET
idstring "BILZ"
get SIZE long
get ZSIZE long
get FLAG long #7 ?
savepos DOFFSET
string NEWNAME p= "%s_%08X" NAME HASH
clog NEWNAME DOFFSET ZSIZE SIZE
math OFFSET += DZSIZE
goto TEMP
next i