Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Otomedius G pak container.

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
User avatar
youngmark
veteran
Posts: 145
Joined: Thu Sep 02, 2010 1:38 pm
Has thanked: 30 times
Been thanked: 6 times

Otomedius G pak container.

Post by youngmark »

Hi
I'd like to extract *.pak file from Otomedius G.
Could anyone look into these formats please?
Last edited by youngmark on Fri Apr 13, 2012 7:21 pm, edited 1 time in total.
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: 664 times
Contact:

Re: Otomedius G pak container.

Post by aluigi »

the script is the following but I have not understood why the files you uploaded have extension "unpacked" and not "pak":

Code: Select all

# Otomedius
# script for QuickBMS http://quickbms.aluigi.org

get PATH basename
get FULLSIZE asize
do
    getdstring SIGN 4
    if SIGN == "TXGP"
        get DUMMY long
        get FILES long
        savepos BASE_OFF
        for i = 0 < FILES
            get OFFSET long
            putarray 0 i OFFSET
        next i
        for i = 0 < FILES
            get SIZE long
            putarray 1 i SIZE
        next i

        for i = 0 < FILES
            getarray OFFSET 0 i
            getarray SIZE 1 i
            math OFFSET += BASE_OFF
            goto OFFSET
            get NAME string
            padding 4
            callfunction DUMPA 1
        next i
    elif SIGN == "MESH"
        get SIZE long
        get DUMMY long
        get NAMESZ long
        get XSIZE long
        getdstring NAME NAMESZ
        math SIZE -= NAMESZ
        callfunction DUMPA 1
    elif SIGN == "CONF"
        get SIZE long
        set NAME string "conf.ini"
        callfunction DUMPA 1
    else
        print "unsupported type %SIGN% at offset %OFFSET|x%"
        cleanexit
    endif
while OFFSET < FULLSIZE

startfunction DUMPA
    savepos OFFSET
    if NAME == ""
        set FNAME string ""
    else
        set FNAME string PATH
        string FNAME += /
        string FNAME += NAME
    endif
    log FNAME OFFSET SIZE
    math OFFSET += SIZE
    goto OFFSET
endfunction
User avatar
youngmark
veteran
Posts: 145
Joined: Thu Sep 02, 2010 1:38 pm
Has thanked: 30 times
Been thanked: 6 times

Re: Otomedius G pak container.

Post by youngmark »

Thanks aluigi!!!!!!!
Nigoli
n00b
Posts: 12
Joined: Tue Mar 29, 2011 7:23 am
Has thanked: 7 times
Contact:

Re: Otomedius G pak container.

Post by Nigoli »

Sorry to bump an old topic.

Image

I've been having trouble with the DLC .pak files. Here's around a 1MB sample of one of the pak files. Thanks.
Post Reply