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

Problems after extracting .DPK

Problems getting MultiEx Commander or other related programs to run? This is where you post.
Post Reply
SleepingLyric
ultra-n00b
Posts: 7
Joined: Sat May 27, 2006 9:53 pm
Been thanked: 1 time

Problems after extracting .DPK

Post by SleepingLyric »

Hey there,

I'm been trying to extract the Project Earth (Starmageddon) .DPK file for awhile and stumbled across these forums and found a relavant post:
(here)

Which is great - very useful. Except that MultiEx crashes when extracting unless I use only the dpk_com.bms - and once extracted the files that were readable, look like plain gibberish now. So I have a couple of Questions:

How can you tell which files are zlib'd with respect to using the 2 different BMSs?

and...(assuming that this isn't solved by answering the first question)

Is there any way to "un-gibber" some of these files?

Thanks in advance :)
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 682 times
Contact:

Post by Mr.Mouse »

Wow, old subject, two years ago!

Anyway, I'm not sure what the problem is. Could you upload an example archive? If files are not compressed, and they are gibberish to you, it depends. What is your knowledge of file formats? ;)
SleepingLyric
ultra-n00b
Posts: 7
Joined: Sat May 27, 2006 9:53 pm
Been thanked: 1 time

Post by SleepingLyric »

The problem with Starmageddon (I'll use this name as it was the Amercanized one and thus prolly the most well-known) is that it is all one big-ass .DPK

I know somewhat about file formats - I just wasn't paying very much attention when I was opening files from inside the MultiEx window so I couldn't tell you which ones I tried and got visable text from (though it wasn't silly things like .pngs or .oggs or other image or audio formats) - I was looking at the object class files and etc - things which I SHOULD be able to read. (like .inc and .inv files - as I'm fairly certain I got something out of those before - but the .inv files look just like any other hex file, albeit a very short one - I'll add one anyhow).

Of course, I could be horribly confused and mistaken - which wouldn't be for the first or the last time, no doubt :D

In short, I'm looking to muck about with things like costs of objects in the game and build-times (if that isn't directly related to the cost).

btw - I study Comp. Sci. w/ Games Dev at Uni so if it's about computers and I don't know it (and there's an awful lot I haven't a clue about, I'll be the first to admit; I should pick it up pretty quickly) :)
You do not have the required permissions to view the files attached to this post.
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 682 times
Contact:

Post by Mr.Mouse »

Well, the files you sent are clearly Zlib compressed. I do not understand why the script did not decompress them. They should be decompressed by MexCom with that first script.

In the meantime, you can open them as Utils - ZLib files (look it up in the file type list). If you don't see the files, just type *.* in the filename box to show all files (it will only show .zlb files). You will then open the compressed file as an archive containing one file (uncompressed.bin). This is not very handy, I know, but I can't tell from a distance what goes wrong.

Perhaps you could upload the log from MexCom? Just start it, use the first script on the file and extract all. you say it will crash, perpaps MexCom has logged something useful. Just hit CTRL-L in MexCom to show up the log. It's in the data folder (debug.log).
SleepingLyric
ultra-n00b
Posts: 7
Joined: Sat May 27, 2006 9:53 pm
Been thanked: 1 time

Post by SleepingLyric »

Okay, I used the "dpk" BMS and as usual it stopped, told me it couldn't decompress (not sure what files cause it to trip up) and then mc32 gives me "runtime error 5".

Anyhow - log included and I appreciate the help :D
You do not have the required permissions to view the files attached to this post.
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 682 times
Contact:

Post by Mr.Mouse »

Ok, that wasn't much use, I guess MexCom crashed before it logged anything. Which is weird though, cause it should. Do you see the files in the archive listed? If so, try extracting just those two files you uploaded before.
SleepingLyric
ultra-n00b
Posts: 7
Joined: Sat May 27, 2006 9:53 pm
Been thanked: 1 time

Post by SleepingLyric »

I just did a search for all things in the .dpk that when Species\Inventions\UEF (as the 2 files from before were in there) and it crashed on me - but I noticed that it crashed on files in Species\Inventions\UEF\Restore which contains 8 .SPEC and 5 .obj files - each about 1KB big.

Those 2 files from before extracted fine on their own though.

Seeing this I just decided to try extracting the entire file using the "dpk" BMS and decompression fails on Objects\Shapes\DAM_OFFS.png.

I've included the files in Restore and also DAM_OFFS.png.
You do not have the required permissions to view the files attached to this post.
Strobe
Moderator
Posts: 411
Joined: Mon Oct 24, 2005 8:52 am
Location: Sweden
Been thanked: 16 times
Contact:

Well...hi there

Post by Strobe »

the reason it fails on the PNG is because it isnt packed.
its a normal png image...! :D try open it in photoshop.
SleepingLyric
ultra-n00b
Posts: 7
Joined: Sat May 27, 2006 9:53 pm
Been thanked: 1 time

Post by SleepingLyric »

So... I'm going to have to find out via trial-and-error what parts are packed and what aren't before I run the extractor? That's gonna take awhile :(
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 682 times
Contact:

Post by Mr.Mouse »

Well, probably a lot of files are packed. But when I have the time I'll download the demo (again) and see for myself. Like my original post stated, for some reason some files are left unpacked.
Strobe
Moderator
Posts: 411
Joined: Mon Oct 24, 2005 8:52 am
Location: Sweden
Been thanked: 16 times
Contact:

well...

Post by Strobe »

I could only guess that the files that had
a too low compression ratio was left as they where.

especially som PNG files, as these allready have internal
compression .....=o
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 682 times
Contact:

Post by Mr.Mouse »

Like I said in 2004:
The *.DPK format uses ZLib compression on most, but not all resources (for reasons unbeknownst to me, ZLib probably did not achieve enough compression on some files, or it was just a sloppy employee at work).


:wink:
SleepingLyric
ultra-n00b
Posts: 7
Joined: Sat May 27, 2006 9:53 pm
Been thanked: 1 time

Post by SleepingLyric »

Okay - I'll get to working out which files are compressed and which aren't.

Thanks for your help, both of you. I greatly appreciated it. I just guess I'll have to stop being a lazy student bum now, eh? :wink: :D
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 682 times
Contact:

Post by Mr.Mouse »

Well, it's also pretty lame that MultiEx Commander dares to crash if the decompression fails. That should be forbidden by law. So, I'll fix that.
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 682 times
Contact:

Post by Mr.Mouse »

Okay a work-around.

Two scripts, one to get the compressed ones, the other for the uncompressed ones.
You do not have the required permissions to view the files attached to this post.
Post Reply