XeNTaX Forum Index
Forum Home Tools Blog GFFC MultiEx
It is currently Fri Sep 03, 2010 6:19 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Final Fantasy 1 for PSP (*.dpk)
PostPosted: Tue Apr 24, 2007 1:19 pm 
Offline
ultra-n00b

Joined: Tue Apr 24, 2007 1:04 am
Posts: 1
Hello i was wondering if there is any extractor for ff1's dpk file. Unfortuneatly there is only one big .dpk file in the game and it's 100MiB big so i had to use that filecutter anyways.

It seems to only contain "F1 07" at the start, after that it begins to list all the files in the archive.

Which looks like this: (9) - (00) - (3) - (00) - (21 - filename) - (00)
so it has 36 "chunks"

the first one looks like this:
Code:
00 00 30 48 03 08 00 00 00 00 00 00 00 00 53 45 30 30 30 2E 4E 50 4B 00 00 00 00 00 00 00 00 00 00 00 00 00

..0H..........SE000.NPK.............


while the 2nd one look like this
Code:
3F 02 40 D7 3E 05 50 C9 03 00 50 C9 03 00 53 45 30 30 31 2E 4E 50 4B 00 4B 00 00 00 00 00 00 00 00 00 00 00

?.@×>.PÉ..PÉ..SE001.NPK.K...........


im not sure if this got included in the zip but it seems like every file ends with something like

Code:
ss0000.bmp.test2.Wed Feb 21 19:19:ÿ...37 2007.GimConv 1.40


Since the filesize was too big for the zip i uploaded it at my site ff1psp.dpk.zip (1.4MiB)

The file contains .gim files (i think one is included on the head.bin)
If you want to test them out use this gim/mig to bmp extract it somewhere and put the files you want to convert in /convfiles/ and run the bat (i think, not really sure since its japanese and i dont have any gim to test it on)


Top
 Profile  
 
 
 Post subject:
PostPosted: Tue Jul 03, 2007 6:54 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 15, 2003 6:45 pm
Posts: 7745
Location: Dungeons of Doom
I've taken a look at them,haven't come up with anything useful yet. :(

_________________
Game Request Rules
Game File Format Central
Add your file formats there now! 1000s of formats!


Top
 Profile  
 
 
 Post subject:
PostPosted: Tue Jul 03, 2007 9:53 am 
Offline
mega-veteran
mega-veteran

Joined: Wed Aug 02, 2006 10:07 pm
Posts: 185
byte 7-10 and 11-14(same value) looks like a offset value in Big-Endian

I want to take a look as well, but the link above is not working!


Top
 Profile  
 
 
 Post subject:
PostPosted: Fri Jul 27, 2007 3:24 am 
Offline
ultra-n00b

Joined: Wed Jul 25, 2007 1:13 am
Posts: 4
http://rapidshare.com/files/41958174/ff1psp.dpk.rar

Click "free" to download it.

Ideally you would want the music, which (I believe) are Atrac3 files with WAV headers.


Top
 Profile  
 
 
 Post subject: Re: Final Fantasy 1 for PSP (*.dpk)
PostPosted: Sun May 03, 2009 11:14 pm 
Offline
advanced

Joined: Mon Oct 06, 2008 2:52 am
Posts: 68
Ah, this is something I've been wondering about as well. I've wanted to extract sprites from this game but everything is compressed into one big .dpk file. It'd be very nice if someone could figure this out for us.


Top
 Profile  
 
 
 Post subject: Re: Final Fantasy 1 for PSP (*.dpk)
PostPosted: Mon May 04, 2009 11:53 am 
Offline
VVIP member
VVIP member

Joined: Thu Dec 08, 2005 12:26 pm
Posts: 856
Location: http://aluigi.org
the extraction of the files is not a problem, for example the following script does the job:
Code:
get FILES long
get FULLSIZE long
get DUMMY long
get DUMMY long

for i = 0 < FILES
    getdstring NAME 24
    get OFFSET long
    get ZSIZE long
    get SIZE long

    if ZSIZE != SIZE
        # Wp16 compression not supported, file is saved in compressed form
        log NAME OFFSET ZSIZE
    else
        log NAME OFFSET SIZE
    endif
next i
(note that the PCK and NPK files are just other archives like DPK so must be extracted in the same way).

the real problem is the so called "Wp16" compression, which is not clear.
these compressed files start with the "Wp16" signature, followed by the 32 bit uncompressed size and (probably) the raw compressed data.

so as final solution the following script extracts directly ANY file (gim and music files) from the non-compressed archives in the dpk file:
Code:
# script for QuickBMS http://aluigi.org/papers.htm#quickbms

get FILES long
get FULLSIZE long
get DUMMY long
get DUMMY long

for i = 0 < FILES
    getdstring NAME 24
    get PCK_OFFSET long
    get ZSIZE long
    get SIZE long
    savepos INFO_OFFSET

    if ZSIZE != SIZE
        # skip the compressed Wp16 archives (not supported)
    else
        goto PCK_OFFSET

        get XFILES long
        get FULLSIZE long
        get DUMMY long
        get DUMMY long
        for j = 0 < XFILES
            getdstring NAME 24
            get OFFSET long
            get ZSIZE long
            get SIZE long

            math OFFSET += PCK_OFFSET
            log NAME OFFSET SIZE
        next j
    endif

    goto INFO_OFFSET
next i
usage: quickbms script.bms ff1psp.dpk output_folder


Top
 Profile  
 
 
 Post subject: Re: Final Fantasy 1 for PSP (*.dpk)
PostPosted: Fri Aug 20, 2010 7:45 pm 
Offline
advanced

Joined: Mon Oct 06, 2008 2:52 am
Posts: 68
Sorry to necropost if I am, but I've been looking for a batch script that extracts both .npk and .pck files from this archive. The script above extracts most things, but it's still missing vital graphics files, which I am primarily concerned with.


Top
 Profile  
 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Google [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group