The Forum is up for sale: XeNTaX Forum looking for new owner

Mokuba no Kiseki dat

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

Mokuba no Kiseki dat

Post by youngmark »

Hello, Everybody!
Could anyone please tell me how to extract data from .dat file.
The first 4 bytes a header "FPAC"
Last edited by youngmark on Fri Apr 13, 2012 7:25 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: 661 times
Contact:

Re: Mokuba no Kiseki dat

Post by aluigi »

Code: Select all

# Mokuba no Kiseki (0.1.1)
# script for QuickBMS http://quickbms.aluigi.org

comtype gzip
idstring "FPAC"
get BASE_OFF long
math BASE_OFF *= 0x800
for i = 0
    get SIZE long
    if SIZE == 0
        cleanexit
    endif
    get ZIP short
    get OFFSET short
    math OFFSET *= 0x800
    math OFFSET += BASE_OFF

    savepos TMP
    goto OFFSET
    getdstring DUMMY 10
    get NAME string
    goto TMP

    clog NAME OFFSET SIZE SIZE
next i
*edit* updated
Last edited by aluigi on Mon Jan 30, 2012 5:49 pm, edited 1 time in total.
User avatar
youngmark
veteran
Posts: 145
Joined: Thu Sep 02, 2010 1:38 pm
Has thanked: 30 times
Been thanked: 6 times

Re: Mokuba no Kiseki dat

Post by youngmark »

Thank your for your assistance.
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: 661 times
Contact:

Re: Mokuba no Kiseki dat

Post by aluigi »

there was an error in the reading of the filename from the gzip file, now the script is ok
Post Reply