need help to begin reading game archive file structure

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
rageraz3
ultra-n00b
Posts: 5
Joined: Sun May 16, 2010 9:30 pm
Has thanked: 1 time

need help to begin reading game archive file structure

Post by rageraz3 »

hi there :). i was trying to findout on extracting this game package.
but still gettin confused.. :(
You do not have the required permissions to view the files attached to this post.
User avatar
aluigi
VVIP member
VVIP member
Posts: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 654 times
Contact:

Re: need help to begin reading game archive file structure

Post by aluigi »

I have made the script but you must specify the full name of the game first.
rageraz3
ultra-n00b
Posts: 5
Joined: Sun May 16, 2010 9:30 pm
Has thanked: 1 time

Re: need help to begin reading game archive file structure

Post 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.. :[
User avatar
aluigi
VVIP member
VVIP member
Posts: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 654 times
Contact:

Re: need help to begin reading game archive file structure

Post 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.
Last edited by aluigi on Mon Dec 19, 2011 7:42 pm, edited 1 time in total.
rageraz3
ultra-n00b
Posts: 5
Joined: Sun May 16, 2010 9:30 pm
Has thanked: 1 time

Re: need help to begin reading game archive file structure

Post 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 :)
rageraz3
ultra-n00b
Posts: 5
Joined: Sun May 16, 2010 9:30 pm
Has thanked: 1 time

Re: need help to begin reading game archive file structure

Post 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. :(
finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 303 times

Re: need help to begin reading game archive file structure

Post by finale00 »

The contents of this post was deleted because of possible forum rules violation.
You do not have the required permissions to view the files attached to this post.
User avatar
aluigi
VVIP member
VVIP member
Posts: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 654 times
Contact:

Re: need help to begin reading game archive file structure

Post by aluigi »

ok solved, recheck the previous post
finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 303 times

Re: need help to begin reading game archive file structure

Post by finale00 »

Works fine.
rageraz3
ultra-n00b
Posts: 5
Joined: Sun May 16, 2010 9:30 pm
Has thanked: 1 time

Re: need help to begin reading game archive file structure

Post 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.
Post Reply