Page 1 of 1
HELP FOR A NEW ONLINE GAME unpack
Posted: Fri Apr 02, 2010 8:11 am
by systemchester
i tried 4days to unpack the PAK files
my three friends failed using QUICK BMS to unpack
i searched here for help
maybe this game。
http://ago.gfyoyo.com.cn/yxxz.htm
http://downloadago.gfyoyo.com.cn/AGOGBCCBSETUP.exe
it is very boring to upload it
it have 2G+
i want to a quickbms script to unpack it
beg for your help
oh my poor english~~~~~
Re: HELP FOR A NEW ONLINE GAME unpack
Posted: Sat Apr 03, 2010 4:23 pm
by systemchester
Re: HELP FOR A NEW ONLINE GAME unpack
Posted: Sat Apr 03, 2010 5:41 pm
by chrrox
you can get the files without names like this.
just use offzip
offzip.exe -a -z -15 C:\Downloads\agdata1.pak "C:\Downloads\New folder" 0x0
Re: HELP FOR A NEW ONLINE GAME unpack
Posted: Sun Apr 04, 2010 5:00 am
by systemchester
thx chrrox
i find offzip
http://aluigi.altervista.org/mytoolz.htm
i will be one of your fans
so much .dat files have be unpack in agdata1.pak
i change .dat to .png and open the picture successfully
some .dat to .png can't view
i am sure they are picture files
but how to trans .dat to .png(maybe .bmp maybe .tga)

Re: HELP FOR A NEW ONLINE GAME unpack
Posted: Sun Apr 04, 2010 1:10 pm
by chrrox
i saw a mix of tga,jpg,bmp,png,ogg, and wav files in some of the files i looked at.
Re: HELP FOR A NEW ONLINE GAME unpack
Posted: Mon Apr 05, 2010 4:57 am
by WRS
its a modified zip format with the central directory compressed too - but that's extracted by offzip at the last block (see 00c8f11c.dat)
i noticed 26 spare bytes from the last file to the file size, which looks like the eocd and perhaps a pointer to the compressed central directory, but i failed to get anywhere else. (i just saw 05 06 as part of the eocd signature)
anyway. we can botch extracting these files with filenames
1) in a hex editor, copy the contents of 00c8f11c.dat at the start of agdata1.pak and run this bms:
Code: Select all
# - WRS
# workaround bms
comtype deflate
for i = 0
idstring "PK\x01\x02"
savepos SKIP
math SKIP += 16
goto SKIP
get ZSIZE long
get SIZE long
get NLEN short
get ELEN short
get CLEN short
savepos SKIP
math SKIP += 8
goto SKIP
get OFFSET long
math OFFSET += 56516 ## size of our temp header
getdstring NAME NLEN
savepos SKIP
math SKIP += ELEN
math SKIP += CLEN
goto SKIP
if SIZE > 0
if ZSIZE == SIZE
log NAME OFFSET SIZE
else
clog NAME OFFSET ZSIZE SIZE
endif
endif
next i
Re: HELP FOR A NEW ONLINE GAME unpack
Posted: Tue Apr 06, 2010 1:58 am
by systemchester