Page 2 of 3

Re: Wolfenstein (2009) .SPK / .MPK

Posted: Fri Aug 28, 2009 12:30 am
by Csimbi
Hi all,
I've updated my program.
The resulting file structure is not compatible with that produced by the previous experimental unpacker I released.
But, now the program supports packing the files back into a .decls container, so, you get a lame, but fully functional .decls packer/unpacker.
Note: the packed file won't be identical to the originals in Wolfenstein 2, but it will work. I tested only with these two files though:

Code: Select all

<WOLF>\SP\base\assets.pk4\maps\game\global\global.decls
<WOLF>\SP\base\assets.pk4\maps\game\global\global_vo_english.decls
If you find bugs, let me know and if I have time, I might fix them.

*Update*
I was contacted by a user named HeyBuddy on another forum. Here's what he had to say:
Hey Csimbi,
I contacting you kinda via a side route, what I'm really interested is your posts on xentax, specifically your Wolf2Dec. It's unfortunate that xentax is is set up for admin-activates-account, and for whatever reason hasn't done mine. In this case it is preventing genuine feedback and information.

Anyway, to the point. Your Wolfenstein globals unpacker/packer tool unfortunately seems to be a non stand alone build from c++ builder 6 or something? It's complaining about missing files, vcl60.bpl among others.
Naturally this problem won't come up on your system since you have them installed with the compiler.
Due to the obscurity of the files I haven't had much luck finding working copies online.

So, to restate, while your wolf2dec has 27 downloads on xentax, I'd guess that no one that's downloaded can use it, and because of xentaxs registration policy can't post to the thread to tell you.

I appreciate your work on this, and hopefully you can resolve the tool problem.

Secondly some feedback to asmxtx on the same xentax post, if you could post this I would be very grateful:
AASS -> aas28
BRAI -> brain
DECL -> decls
ENTS -> emap
HKXA -> ???
HKXR -> ???
HKXS -> ???
The only file extension I've seen referenced is .HKX, so this is a puzzle.
MODL -> md5r
PBBF -> MD5RBin (Not sure)
PROC -> proc
SGFX -> tga or dds (not sure), possibly the engines texture loader handles differences so we won't see differentiation in the file system
SKEL -> ???
SNDS -> mp3 (Not sure) - possibly ogg, should be testable on extraction
TXTR -> dds
VIDO -> bik
Wolf SP is a distant branch of id tech 4, it's nearest ancestor is Quake 4, the changes to the filesystem are significant however due to id tech originally being a pc engine and wolf being multiplatform.
Wolf MP is of the ETQW branch of id tech 4 (and handled by a separate team than sp), so it's not really useful to look at file wise.
There's not much information of the files being streamed from the engine, no useful debug cvars (while there is for normal file access).

I think a preliminary release of the asmxtxs extractor so we could examine the files would be useful.
To amend the first part of the problem, I have uploaded the program with the RTLs properly linked into the executable (well, I hope so, if still missing something, please let me know).
The second half if for asmxtx, so I let him decide what to do with the second half of the message.

PS. I am having tons of fun with the modded weapons; it puts the meaning of "shooter" back into FPS as opposed to "first person slomo" ;-)

Re: Wolfenstein (2009) .SPK / .MPK

Posted: Sun Aug 30, 2009 8:27 pm
by Savage
I tried the wolf2dec, but..it works? i tried with the menu.mpk but don't works (or i dont' know how to make it work)

i did:
WOLF2DEC.EXE u menu.mpk testing
and i get
PLZ OPEN FILE "menu.mpk"?
O NOES
VISIBLE MESSAGE
Error loading input file: menu.mpk.
KTHXBYE

Re: Wolfenstein (2009) .SPK / .MPK

Posted: Sun Aug 30, 2009 11:27 pm
by Csimbi
Savage wrote:I tried the wolf2dec, but..it works? i tried with the menu.mpk but don't works (or i dont' know how to make it work)
Right. Because wolf2dec is not for SPK/MPK/whatever files; it is only for decls files.
Decls files are containers where the game resources (scripts and other text formats) are merged and indexed by clauses for fast access.
Take a look at <WOLF>\SP\base\assets.pk4\maps\game\global\global.decls - and you will see what I mean.

Re: Wolfenstein (2009) .SPK / .MPK

Posted: Mon Aug 31, 2009 12:55 am
by asmxtx
@Csimbi: (viewtopic.php?p=31437#p31437)

Are you really sure that these identification assignments are correct? ->

Code: Select all

ENTS -> emap (But I got definitively the file extension "entities"?)
AASS -> aas28 (is this really true?)
PBBF -> MD5RBin - If "HeyBuddy" got this by himself and not by following my xentax-post I'll get it as a fact.

"SGFX" is in no case a TGA-graphic file.
"SNDS" might be ".MP3" for 99%.

@HeyBuddy:
I did have the same difficulties like you when I tried to sign this site. I gave up hope until XENTAX granted me access many days (or some weeks) later. Maybe you should simply wait...

Re: Wolfenstein (2009) .SPK / .MPK

Posted: Mon Aug 31, 2009 9:59 pm
by zeeh
XFGS are *.GFX files (flash files designed with Scaleform GFx);
SNDS are *.MP3 files (look at end of each sound file: LAME 3.96.1 encoded).

Re: Wolfenstein (2009) .SPK / .MPK

Posted: Wed Sep 30, 2009 6:53 pm
by NBayer
Most of you have probably found that tool here already: Wolfenstein SPK/MPK Extractor at: daedalus-tools.mx.tc

I tried contacting the author of his webpage, but my messages over the contact form and guestbook are not coming through (Array( [captcha] => CAPTCHA invalid.). Of course I typed in the Captcha correct :).

Maybe someone of you knows the answer: How relyable is that extractor? There was still some confusion in this thread on which file extensions are used for which files? Is that solved by now?

In case the author of the tool reads this: It would be very helpful if that tool would be able to get ALL spk/mpk from Wolfenstein and extract it in one folder. That would save a lot of time.

Thanks!

Re: Wolfenstein (2009) .SPK / .MPK

Posted: Thu Oct 01, 2009 4:50 pm
by bellox
@NBayer hi, i guess since i'm the author:

How relyable is that extractor?
well, to my knowledge it extracts the files correctly, allthough some extensions are still unknown, but i doubt that you could do anything with the unknown files, since they are mostly compiled

the reason why not all files are extracted into one folder: the spk/mpk files contain paths + filenames, so the extraction is done accordingly

Re: Wolfenstein (2009) .SPK / .MPK

Posted: Fri Oct 02, 2009 1:51 am
by NBayer
Thanks for your fast reply.

I didn't formulate that very precise. It would be great if it would take all spk/mpk it can find from the Wolfenstein folder and extract it to a folder including the following recursive directories that are encoded in the spk/mpk files. So in the end e.g. under maps/game/... you would have all map files from all single player maps etc.;

Thanks!


bellox wrote:
the reason why not all files are extracted into one folder: the spk/mpk files contain paths + filenames, so the extraction is done accordingly

Re: Wolfenstein (2009) .SPK / .MPK

Posted: Thu Oct 08, 2009 9:22 pm
by Mr.Mouse
Just to crash in on a discussion here, I'd like to briefly mention the PK4 files, which seem not to be standard ZIP files. As extraction fails. Does anyone know why? Password?

Re: Wolfenstein (2009) .SPK / .MPK

Posted: Fri Oct 09, 2009 2:03 am
by Csimbi
Mr.Mouse wrote:Just to crash in on a discussion here, I'd like to briefly mention the PK4 files, which seem not to be standard ZIP files. As extraction fails. Does anyone know why? Password?
Because they changed the structure a bit; these are still valid ZIP archives though.
You can use PKZipFix to fix the ZIP structure - or WinRAR.
When you create the archives, you can use any ZIP packer.

Re: Wolfenstein (2009) .SPK / .MPK

Posted: Fri Oct 09, 2009 6:58 am
by Mr.Mouse
Thanks for the tip! Then I'll write a little app to fix the structure. Else I would have searched for a password somewhere, which is a lot more painstaking. ;)

Re: Wolfenstein (2009) .SPK / .MPK

Posted: Fri Oct 09, 2009 11:06 pm
by Csimbi
That would be handy, thank you.

Re: Wolfenstein (2009) .SPK / .MPK

Posted: Mon Oct 12, 2009 9:37 pm
by Mr.Mouse
asmxtx wrote: @HeyBuddy:
I did have the same difficulties like you when I tried to sign this site. I gave up hope until XENTAX granted me access many days (or some weeks) later. Maybe you should simply wait...
What is up with that? I only just read the last comment. People MUST write a REASON TO JOIN while signing up. Bots are stupid and don't know this extra field, so won't fill it in. All that sign up without filling in that field will not have their registration entered in the database. We need a text written there, blanks are ignored or not saved.

Re: Wolfenstein (2009) .SPK / .MPK

Posted: Mon Oct 12, 2009 9:39 pm
by Mr.Mouse
On another note, asmxtx, did you find out the format of the MPK files? The directory at the top of each file seems to be padded. Do you know the padsize?

Re: Wolfenstein (2009) .SPK / .MPK

Posted: Fri Nov 27, 2009 12:25 am
by aluigi
what about the files which start with the sequence of bytes "0f f6 12" ?
for example that music_church_combat1_lp.spk file which was linked some posts before