Page 1 of 1

need help to begin reading game archive file structure

Posted: Sun Dec 18, 2011 6:04 am
by rageraz3
hi there :). i was trying to findout on extracting this game package.
but still gettin confused.. :(

Re: need help to begin reading game archive file structure

Posted: Sun Dec 18, 2011 11:43 am
by aluigi
I have made the script but you must specify the full name of the game first.

Re: need help to begin reading game archive file structure

Posted: Mon Dec 19, 2011 2:38 am
by rageraz3
wow.. cool, the game is Age Of wushu. :) can you teach me how to read?.. uhm the files is compressed i think?.. i was tries using hex workshop but always fail.. :[

Re: need help to begin reading game archive file structure

Posted: Mon Dec 19, 2011 8:53 am
by aluigi
*EDIT* updated script

Code: Select all

# Age of Wushu (script 0.1.1)
# script for QuickBMS http://quickbms.aluigi.org

idstring "PCK"
get TMP byte

    savepos MYOFF
    get NAMESZ short
    get ZERO long
    get FILES long
    get HEAD_SIZE long
    savepos TMP
    math TMP -= MYOFF
    math NAMESZ -= TMP
    getdstring NAME NAMESZ

for i = 0 < FILES
    savepos MYOFF
    get NAMESZ short
    get OFFSET long
    get TYPE long
    get SIZE long
    get ZSIZE long
    getdstring DUMMY 5
    get DUMMY long
    savepos TMP
    math TMP -= MYOFF
    math NAMESZ -= TMP
    getdstring NAME NAMESZ
    clog NAME OFFSET ZSIZE SIZE
next i
the archive contains compressed files so let me know if you receive a compression error with some archives because it's possible that some files may be not compressed (the provided archive contains only compressed files).

for the rest the format is enough simple with a 16bit value that specifies how much long is the information entry.

Re: need help to begin reading game archive file structure

Posted: Mon Dec 19, 2011 11:11 am
by rageraz3
thank's man. i'll post here for any errors. :) can you give me some tips and trick about reading game archive using hex?.. i really want to learn. btw, i already check your blog aluigi.altervista.org and read some information about qbms. i love this one :wink: q3infoboom. thank's man :)

Re: need help to begin reading game archive file structure

Posted: Mon Dec 19, 2011 5:03 pm
by rageraz3
hi, i already test it with larger file. it shows "error: the requested amount of bytes to allocate is negative (-2)" what is it means?.. the filesize is about 292,224,623 bytes. it has 5146 files inside. :(

Re: need help to begin reading game archive file structure

Posted: Mon Dec 19, 2011 6:04 pm
by finale00
The contents of this post was deleted because of possible forum rules violation.

Re: need help to begin reading game archive file structure

Posted: Mon Dec 19, 2011 7:43 pm
by aluigi
ok solved, recheck the previous post

Re: need help to begin reading game archive file structure

Posted: Mon Dec 19, 2011 7:57 pm
by finale00
Works fine.

Re: need help to begin reading game archive file structure

Posted: Mon Dec 19, 2011 10:17 pm
by rageraz3
yup it works :).. it's gonna be the one of my precious collection. :) i already collected some bms script with example of each script... now time for me to learn again. :) thank you mr. aluigi for helping.