Join also our Discord channel! Click here.

Wolfenstein (2009) .SPK / .MPK

Read or post about compression. And decompression. Or ask questions how to decompress your files.
Itze
veteran
Posts: 82
Joined: Sat Mar 15, 2008 4:43 pm
Has thanked: 3 times
Been thanked: 6 times

Wolfenstein (2009) .SPK / .MPK

Post by Itze » Thu Aug 20, 2009 7:05 am

I tried to unpack the archives of the new Wolfenstein game and thought it would be as easy as all IDtech based games(zip archives)... however this time raven build their own simple format...

there are .SPK (Singlepack?) files with one file inside and .MPK (Multipack?) with multiple files inside

i used offzip -a with standart settings first on a .MPK file and got multiple smaller zlibbed chunks... each of therse chunks then contains an amount of files (1 byte in the archive = number of files) after that follows the filetable and after that the raw data.

i hope this can be automated easily cause unpacking and unpacking again is highly annoying :P

i don't have example archives right now(maybe someone else can upload some? :)) since i'm at work but i'll upload some later when im home again...

OrangeC
double-veteran
double-veteran
Posts: 862
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 34 times

Re: Wolfenstein (2009) .SPK / .MPK

Post by OrangeC » Thu Aug 20, 2009 11:45 am

I can already unpack the music, but i cant for the 360 archives;

http://www.megaupload.com/?d=0JG22HON

Itze
veteran
Posts: 82
Joined: Sat Mar 15, 2008 4:43 pm
Has thanked: 3 times
Been thanked: 6 times

Re: Wolfenstein (2009) .SPK / .MPK

Post by Itze » Thu Aug 20, 2009 2:42 pm

i can unpack all files in the spk / mpk's (pc version) but it's tedious work :/

i dunno if quickbms can handle this on its own? :o

maybe with a little batchfile (:

User avatar
chrrox
Moderator
Posts: 2564
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1307 times

Re: Wolfenstein (2009) .SPK / .MPK

Post by chrrox » Thu Aug 20, 2009 3:13 pm

It should not be to hard once I get a sample file ill look at it for you.

Itze
veteran
Posts: 82
Joined: Sat Mar 15, 2008 4:43 pm
Has thanked: 3 times
Been thanked: 6 times

Re: Wolfenstein (2009) .SPK / .MPK

Post by Itze » Thu Aug 20, 2009 5:58 pm

here it is:
http://www20.zippyshare.com/v/89027429/file.html

some files from the castle map, 47mb... couldn't get it smaller :/

also i think that MPK means Master Pack and SPK means Slave Pack or something like that xD

User avatar
asmxtx
veteran
Posts: 127
Joined: Sun Jun 08, 2008 10:32 pm
Location: Developers Country
Has thanked: 1 time
Been thanked: 30 times

Re: Wolfenstein (2009) .SPK / .MPK

Post by asmxtx » Thu Aug 20, 2009 9:57 pm

I'm currently working on an unpacker for MPK/SPK-files. I'm almost finished, but I have problems to restore the original file extensions, because they aren't stored in the SPK/MPK-ZLIB-streams. I could need any help to finsish the translation table for these sub-formats.
As far as I could find out there are these ZLIB-sub-streams within the MPK/SPK-files:

Code: Select all

"AASS","BRAI","DECL","ENTS","HKXA","HKXR","HKXS","MODL","PBBF","PROC","SKEL","SNDS","TXTR"
;DECL -> decls
;ENTS -> entities
;MODL -> md5r
;PROC -> procb	
;TXTR -> dds
Once I know what extensions these files have I will provide an unpacker for it. Please contact me per PM or (better) put an answer to the "Little Extractor"-thread.
Thank you.

OrangeC
double-veteran
double-veteran
Posts: 862
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 34 times

Re: Wolfenstein (2009) .SPK / .MPK

Post by OrangeC » Fri Aug 21, 2009 3:25 am

Well all i know is that the music files are mp3 original.

Itze
veteran
Posts: 82
Joined: Sat Mar 15, 2008 4:43 pm
Has thanked: 3 times
Been thanked: 6 times

Re: Wolfenstein (2009) .SPK / .MPK

Post by Itze » Sat Aug 22, 2009 10:57 am

asmxtx wrote:I could need any help to finsish the translation table for these sub-formats.
As far as I could find out there are these ZLIB-sub-streams within the MPK/SPK-files:

Code: Select all

"AASS","BRAI","DECL","ENTS","HKXA","HKXR","HKXS","MODL","PBBF","PROC","SKEL","SNDS","TXTR"
;DECL -> decls
;ENTS -> entities
;MODL -> md5r
;PROC -> procb	
;TXTR -> dds
have you tried looking in the multiplayer pak files? those can be opened normally and use the same folder structure...

and because we can read most of the path in the singleplayer paks you could check the extensions that are in the multiplayer paks under the same folder?

Csimbi
veteran
Posts: 102
Joined: Thu Nov 06, 2008 9:29 pm
Has thanked: 7 times
Been thanked: 17 times

Re: Wolfenstein (2009) .SPK / .MPK

Post by Csimbi » Mon Aug 24, 2009 10:02 pm

The contents of this post was deleted because of possible forum rules violation.
Best retard: Csimbi

Frosty
ultra-n00b
Posts: 5
Joined: Sun Jun 14, 2009 10:15 pm
Been thanked: 1 time

Re: Wolfenstein (2009) .SPK / .MPK

Post by Frosty » Tue Aug 25, 2009 12:09 am

Whats in the .mpk and .spk files? and does anyone know whats with all the cachemaps files?

Csimbi
veteran
Posts: 102
Joined: Thu Nov 06, 2008 9:29 pm
Has thanked: 7 times
Been thanked: 17 times

Re: Wolfenstein (2009) .SPK / .MPK

Post by Csimbi » Tue Aug 25, 2009 12:41 am

Frosty wrote:Whats in the .mpk and .spk files? and does anyone know whats with all the cachemaps files?
Seems like it contains only map-specific data: sounds, music, textures, etc.
Best retard: Csimbi

Csimbi
veteran
Posts: 102
Joined: Thu Nov 06, 2008 9:29 pm
Has thanked: 7 times
Been thanked: 17 times

Re: Wolfenstein (2009) .SPK / .MPK

Post by Csimbi » Wed Aug 26, 2009 2:15 am

Here's an experimental unpacker for the decls files.
You do not have the required permissions to view the files attached to this post.
Best retard: Csimbi

Frosty
ultra-n00b
Posts: 5
Joined: Sun Jun 14, 2009 10:15 pm
Been thanked: 1 time

Re: Wolfenstein (2009) .SPK / .MPK

Post by Frosty » Wed Aug 26, 2009 9:40 am

Where are the mulitplayer paks at?

Csimbi
veteran
Posts: 102
Joined: Thu Nov 06, 2008 9:29 pm
Has thanked: 7 times
Been thanked: 17 times

Re: Wolfenstein (2009) .SPK / .MPK

Post by Csimbi » Wed Aug 26, 2009 6:30 pm

Frosty wrote:Where are the mulitplayer paks at?

Code: Select all

WOLFDIR\MP\base\pak0.pk4
WOLFDIR\MP\base\pak1.pk4
WOLFDIR\MP\base\pak2.pk4
WOLFDIR\MP\base\pak3.pk4
WOLFDIR\MP\base\zpak_english000.pk4
Best retard: Csimbi

User avatar
asmxtx
veteran
Posts: 127
Joined: Sun Jun 08, 2008 10:32 pm
Location: Developers Country
Has thanked: 1 time
Been thanked: 30 times

Re: Wolfenstein (2009) .SPK / .MPK

Post by asmxtx » Thu Aug 27, 2009 12:29 am

Here are all (15) available file types WOLF2 seems to access (as far as I could find out).
To finish my extractor I could need some help regarding proper assignable file extensions.

Code: Select all

[FileType_DWORD_Value] -> [associated_file_extension]

Code: Select all

AASS -> ???
BRAI -> ???
DECL -> decls
ENTS -> entities                    
HKXA -> ???
HKXR -> ???
HKXS -> ???
MODL -> md5r                        
PBBF -> MD5RBin (Not sure)
PROC -> procb
SGFX -> ???
SKEL -> ???
SNDS -> mp3 (Not sure)
TXTR -> dds
VIDO -> bik (Not sure)

Post Reply