Page 1 of 1

DPK extractor

Posted: Fri Mar 16, 2012 7:40 pm
by Tiberio
Hi.

I would like to know if anyone knows or have any tool to extract a DPK file. This file is from Darkeden game.

I used Watto FileCutter to get a part (256 Kb from 800 MB). Thanks.

Re: DPK extractor

Posted: Mon Mar 19, 2012 10:38 am
by aluigi
very strange archive, maybe there is a file table at its end but obviously it's not available in the uploaded dump.
the following is a script for it but note that the zlib compression is incomplete in that archive for unknown reasons:

Code: Select all

# Darkeden (*.dpk)
# script for QuickBMS http://quickbms.aluigi.org

comtype zlib_noerror
get DPK_SIZE asize
for OFFSET = 0x200 < DPK_SIZE
    goto OFFSET
    padding 0x200
    savepos OFFSET
    if OFFSET >= DPK_SIZE
        cleanexit
    endif
    get SIZE long
    get DUMMY byte
    get DUMMY byte
    get ZSIZE long
    get NO_ZIP byte
    savepos OFFSET
    if NO_ZIP != 0
        log "" OFFSET SIZE
    else
        clog "" OFFSET ZSIZE SIZE
    endif
    math OFFSET += ZSIZE
next

Re: DPK extractor

Posted: Mon Mar 19, 2012 12:57 pm
by Tiberio
Can you generate a BMS script to extract this file?

Re: DPK extractor

Posted: Mon Mar 19, 2012 1:18 pm
by aluigi
and what is that thing I posted?

Re: DPK extractor

Posted: Mon Mar 19, 2012 1:39 pm
by Tiberio
Sorry, i dont know about this tool. How do i create a BMS file? Just save a txt as BMS and copy this code?

Re: DPK extractor

Posted: Mon Mar 19, 2012 1:43 pm
by Tiberio
Well, i did it.
He extract some .dat files. Other noob question :cry: ... How can i open them? :wink:

Re: DPK extractor

Posted: Mon Mar 19, 2012 1:48 pm
by aluigi
the files are nameless and I didn't see normal files (like dds, txt and so on) so don't expect something easy to use.

Re: DPK extractor

Posted: Mon Mar 19, 2012 1:54 pm
by Tiberio
I got 52 extracted files. They have 0 ~ 716 Kb and one big file with 815.104 Kb. I cant open them. :P

Re: DPK extractor

Posted: Mon Mar 19, 2012 7:55 pm
by finale00
You got 52 files no larger than 1 MB from an archive that's 800 MB in size?

Re: DPK extractor

Posted: Mon Mar 19, 2012 9:33 pm
by Tiberio
Yes. This file contains all images from Darkeden game. But i cant open them...

Re: DPK extractor

Posted: Mon Mar 19, 2012 11:41 pm
by finale00
Post some of those files up.

But I still think it's weird that you only got 52 files from an archive that's 800 MB?

Re: DPK extractor

Posted: Tue Mar 20, 2012 12:11 am
by Tiberio

Re: DPK extractor

Posted: Tue Mar 20, 2012 10:53 pm
by Tiberio
Any ideas?