# extracts the *.bra archives from "Agarest: Generations of War 2 (PC, 2015)"
# (c) 2015-03-02 by AlphaTwentyThree of ZenHax
# script for QuickBMS
http://quickbms.aluigi.orgcomtype deflate
idstring "PDA"
goto 0x8
get INFO long
get SIZE asize
math SIZE -= INFO
putVarChr MEMORY_FILE SIZE 0
log MEMORY_FILE 0 0
append
log MEMORY_FILE INFO SIZE
append
get FOLDER basename
get FSIZE asize MEMORY_FILE
goto 0 MEMORY_FILE
do
get UNK longlong MEMORY_FILE # crc/md5?
get CSIZE long MEMORY_FILE
get SIZE long MEMORY_FILE
get NAMEL short MEMORY_FILE
get UNK short MEMORY_FILE
get OFFSET long MEMORY_FILE
getDstring NAME NAMEL MEMORY_FILE
math CSIZE -= 0x10
math OFFSET += 0x10
savepos MYOFF MEMORY_FILE
math MYOFF x= 4
goto MYOFF MEMORY_FILE
string NAME p= "%s/%s" FOLDER NAME
if SIZE == CSIZE
log NAME OFFSET CSIZE
else
clog NAME OFFSET CSIZE SIZE
endif
while MYOFF < FSIZE
官网问来的解包脚本。。然而 不会用呀