Important information: this site is currently scheduled to go offline indefinitely by end of the year.
Little extractor program
Re: Little extractor program
SDNS are *.mp3 files, RTXT are *.dds files (mainly DXT3 and DXT5) and XFGS are *.GFX files (kind of flash files).asmxtx wrote:Added: Extraction support for Wolfenstein 2.
Warning:
- The "/VIEW"-switch doesn't work for this format.
- Many files don't get their proper file extensions (because I don't know them).
They are replaced by the magic value from the main container and enclosed in exclamation marks. Examining the PK4-files doesn't give more information than I've already got.
For example: MP3-sounds are named to "ambience.!!!SNDS!!!"
Could anybody give me a hint?
Notes:
The main container (SPK/MPK) consists of concatenated ZLIB-compressed chunks.
Each chunk is preceded by a magic value (which determines the data type) and two values for uncompressed and compressed size. A chunk extracts to another container with the final data and (rather simple) structure: Number_of_files + table_filenames_lengths + data (no offsets).
Therefore the extraction process is separated into two steps:
- Decompressing each ZLIB-chunk to a temporary file
- Extracting the data from this file
According to this file structure the game must be an awful memory spendthrift in my opinion because of the large buffers needed to decompress the data.
Re: Little extractor program
Lo all, I have a little problem with wolfenstein files...
Here's what I did: I opened an spk file(ai_voice_ft_vo_english.spk) and extracted two files with offzip.
Now I have these two files 00000010.dat and 00000012.dat, and I tried to extract something from them with gobread (I type gobread 00000010.dat then enter) but gobread says "ERROR can't open file".
Now, I'm sure I'm doing or I did something wrong but I don't know what.
I think the problem is about the first extraction with offzip probably I'm not typing the right command line could someone help?
What are the right command line parameters to put in offzip when I extract?
Andrew
(I searched better and found GoBakery, everything works now thank u Mr.Mouse)
Here's what I did: I opened an spk file(ai_voice_ft_vo_english.spk) and extracted two files with offzip.
Now I have these two files 00000010.dat and 00000012.dat, and I tried to extract something from them with gobread (I type gobread 00000010.dat then enter) but gobread says "ERROR can't open file".
Now, I'm sure I'm doing or I did something wrong but I don't know what.
I think the problem is about the first extraction with offzip probably I'm not typing the right command line could someone help?
What are the right command line parameters to put in offzip when I extract?
Andrew
(I searched better and found GoBakery, everything works now thank u Mr.Mouse)
- Savage
- VIP member
- Posts: 559
- Joined: Sun Apr 17, 2005 11:00 am
- Has thanked: 16 times
- Been thanked: 18 times
Re: Little extractor program
I tested unpacking the menu.mpk (52.049.589) with a lot of DDS (dxt1 and DTX5) and speeches and the menu soundtrack in mp3 format, whe i use the programa like:
I get:
Code: Select all
GOBREAD.EXE menu.mpk
Code: Select all
models\props\b17\b17_wings_a8.dds
models\props\barrels\trashcan_01_d.dds
models\props\barrels\trashcan_01_local.dds
models\props\barrels\trashcan_01_s.dds
models\props\b17_engine_d.dds
models\props\b17_engine_local.dds
models\props\b17_engine_s.dds
models\props\debris\edge_debris_d.dds
models\props\debris\edge_debris_local.dds
models\props\debris\edge_debris_s.dds
models\vehicles\tiger\tiger_tread_d.dds
models\vehicles\tiger\tiger_tread_local.dds
models\vehicles\tiger\tiger_tread_s.dds
textures\decals\tigerdecal_d.dds
models\vehicles\tiger\tiger_d.dds
models\vehicles\tiger\tiger_local.dds
models\vehicles\tiger\tiger_s.dds
models\plants\tree\twig_lrg_01_d.dds
models\plants\tree\twig_lrg_01_local.dds
models\plants\tree\stump_tree_01_d.dds
models\plants\tree\stump_tree_01_local.dds
gfx\lights\projection\catwalk.dds
gfx\lights\projection\diffusedcity.dds**ERROR** File format not recognized
300 Files extracted.
- asmxtx
- veteran
- Posts: 127
- Joined: Sun Jun 08, 2008 10:32 pm
- Location: Developers Country
- Has thanked: 1 time
- Been thanked: 30 times
Re: Little extractor program
Very good that you spot it!
I do alot of verifications before extraction to have the original file structure intact. Therefore "unknown" magic values will be handled as "evil".
I might have overseen this file type but I appreciate if anybody reports this "misbehaviour".
I'll work on it.
I do alot of verifications before extraction to have the original file structure intact. Therefore "unknown" magic values will be handled as "evil".
I might have overseen this file type but I appreciate if anybody reports this "misbehaviour".
I'll work on it.
Re: Little extractor program
hi
i couldn't get the cmd tools to run, so i wrote a gui-tool in c# to extract these .spk/.mpk files from wolfenstein
http://daedalus-tools.mx.tc/
@asmxtx thx for the hints about the file format
have fun
i couldn't get the cmd tools to run, so i wrote a gui-tool in c# to extract these .spk/.mpk files from wolfenstein
http://daedalus-tools.mx.tc/
@asmxtx thx for the hints about the file format
have fun
- Savage
- VIP member
- Posts: 559
- Joined: Sun Apr 17, 2005 11:00 am
- Has thanked: 16 times
- Been thanked: 18 times
Re: Little extractor program
I uploaded the fixed file "assets.pk4", now you can unpack and change the scripts, originally the zip it,s corrupted, this version it-s crc/ok and working
http://www.zshare.net/download/64893543da6f008e/
http://www.zshare.net/download/64893543da6f008e/
- asmxtx
- veteran
- Posts: 127
- Joined: Sun Jun 08, 2008 10:32 pm
- Location: Developers Country
- Has thanked: 1 time
- Been thanked: 30 times
Re: Little extractor program
It is not designed to run on 64-Bit-Systems.OrangeC wrote:How can i get this program to run on windows 64bit? it wont let me.
Try to use it with a DOS-Emulator like VMWARE (commercial) or DOSBOX (free):
http://www.dosbox.com
-
- veteran
- Posts: 108
- Joined: Thu Nov 06, 2008 9:29 pm
- Has thanked: 10 times
- Been thanked: 22 times
Re: Little extractor program
I'm on a 32bit system, so I would not know, but I was under the impression that 64bit systems could run 32bit code.asmxtx wrote:It is not designed to run on 64-Bit-Systems.OrangeC wrote:How can i get this program to run on windows 64bit? it wont let me.
Try to use it with a DOS-Emulator like VMWARE (commercial) or DOSBOX (free):
http://www.dosbox.com
I guess it's not the case then? Interesting. It would mean that you need to trash all your 32bit software that you purchased...
______
Csimbi
Csimbi
- asmxtx
- veteran
- Posts: 127
- Joined: Sun Jun 08, 2008 10:32 pm
- Location: Developers Country
- Has thanked: 1 time
- Been thanked: 30 times
Re: Little extractor program
I'm an old assembler programmer and study processor specifications very intently.
So I found out that once an INTEL-based processor is initialized to run in 64Bit-mode (like Win-Vista64), the processor is not able to revert to 32-/16-bit-mode except by a hardware-reset and disables many features of 16-/32-Bit-instructions - like segment register usage and (unfortunately) some versatile instructions like "AAM". Such are treated as "Invalid Opcodes".
There is no possibility to execute any pure 16-/32-bit-code on a 64-bit-system straight ahead, as far as I know.
In 64-bit-mode one has to use an emulator program which interpretes this machine code and translates it in a processible form to the ruling 64-bit-OS.
Otherwise one has to install a 16-/32-bit-OS.
So I found out that once an INTEL-based processor is initialized to run in 64Bit-mode (like Win-Vista64), the processor is not able to revert to 32-/16-bit-mode except by a hardware-reset and disables many features of 16-/32-Bit-instructions - like segment register usage and (unfortunately) some versatile instructions like "AAM". Such are treated as "Invalid Opcodes".
There is no possibility to execute any pure 16-/32-bit-code on a 64-bit-system straight ahead, as far as I know.
In 64-bit-mode one has to use an emulator program which interpretes this machine code and translates it in a processible form to the ruling 64-bit-OS.
Otherwise one has to install a 16-/32-bit-OS.
It looks so. Or 64-bit-systems will go the same way like the Intel-686-processor: to a blind alley.It would mean that you need to trash all your 32bit software that you purchased...
-
- veteran
- Posts: 108
- Joined: Thu Nov 06, 2008 9:29 pm
- Has thanked: 10 times
- Been thanked: 22 times
Re: Little extractor program
That would mean that older games do will nor run on Vista/Windows 7, though I have friends with Vista who said that the games work. There is no "XP Mode" on Vista, so I am not sure how that is possible then.asmxtx wrote:It looks so. Or 64-bit-systems will go the same way like the Intel-686-processor: to a blind alley.It would mean that you need to trash all your 32bit software that you purchased...
______
Csimbi
Csimbi
- asmxtx
- veteran
- Posts: 127
- Joined: Sun Jun 08, 2008 10:32 pm
- Location: Developers Country
- Has thanked: 1 time
- Been thanked: 30 times
Re: Little extractor program
A 64Bit-processor has got many modes of operation:
Long mode #1:
"64Bit-mode" (can run 16- and 32-bit-PE-EXEs in "Compatibility-mode", but only in protected mode, not in virtual-8086 mode)
Long mode #2:
"Compatibility-mode" (can run any 16- and 32-bit-programs without recompilation)
It seems Win64 runs in "64Bit-mode", hence it isn't able to start any virtual-8086-mode software (like GOBREAD).
That means you can start any I386-PE-EXEs and maybe I286-NE-EXEs, but no MZ-EXE or COM.
Very confusing!
See:
AMD64 Architecture Programmer's Manual Volume 1: Application Programming,
http://support.amd.com/us/Processor_TechDocs/24592.pdf
AMD64 Architecture Programmer's Manual Volume 2: System Programming,
http://support.amd.com/us/Processor_TechDocs/24593.pdf
Long mode #1:
"64Bit-mode" (can run 16- and 32-bit-PE-EXEs in "Compatibility-mode", but only in protected mode, not in virtual-8086 mode)
Long mode #2:
"Compatibility-mode" (can run any 16- and 32-bit-programs without recompilation)
It seems Win64 runs in "64Bit-mode", hence it isn't able to start any virtual-8086-mode software (like GOBREAD).
That means you can start any I386-PE-EXEs and maybe I286-NE-EXEs, but no MZ-EXE or COM.
Very confusing!
See:
AMD64 Architecture Programmer's Manual Volume 1: Application Programming,
http://support.amd.com/us/Processor_TechDocs/24592.pdf
AMD64 Architecture Programmer's Manual Volume 2: System Programming,
http://support.amd.com/us/Processor_TechDocs/24593.pdf
Re: Little extractor program
Hi, there's some problem with "goboarding" AGS games: old versions of Goboard extract 90% of files (without editor.dat and some rooms), and new versions can't extract anything, just creates 0 byte files.
For example, Larry 2 P&C
http://www.bigbluecup.com/games.php?cat ... d&game=356
With some of old versions of Goboard I can extract main part of project, but without global script (editor.dat). But I can't extract any files with new version of Goboard!
For example, Larry 2 P&C
http://www.bigbluecup.com/games.php?cat ... d&game=356
With some of old versions of Goboard I can extract main part of project, but without global script (editor.dat). But I can't extract any files with new version of Goboard!
Re: Little extractor program
So what's up with other games?
Wanna extract some of them?:
- Knight of Xentar (Dragon Knight 3) (click red 2 words at right of table, type code, then click to red words at bottom "http...")
- Star Trek: 25th Anniversary (same thing, first red words [Floppy-...], etc)
Wanna extract some of them?:
- Knight of Xentar (Dragon Knight 3) (click red 2 words at right of table, type code, then click to red words at bottom "http...")
- Star Trek: 25th Anniversary (same thing, first red words [Floppy-...], etc)
- asmxtx
- veteran
- Posts: 127
- Joined: Sun Jun 08, 2008 10:32 pm
- Location: Developers Country
- Has thanked: 1 time
- Been thanked: 30 times
Re: Little extractor program
This shouldn't happen actually! Only 100% extration success should be accepted!Hi, there's some problem with "goboarding" AGS games: old versions of Goboard extract 90% of files (without editor.dat and some rooms), and new versions can't extract anything, just creates 0 byte files.
But this can happen because older GOBREAD versions don't know all variants of this format.
AGS is updating it very often and meanwhile there are tons of subformats which require a lot of branches in the extraction algorithm. I had even to implement some object oriented like programming method to master this situation.
Please excuse that I can't download any game from this company. But I will see if I can find a solution with your link.With some of old versions of Goboard I can extract main part of project, but without global script (editor.dat). But I can't extract any files with new version of Goboard!
Not really, sorry. That reminds me of these old times when 286AT's with chunky CGA/Hercules graphics were state of the art...Wanna extract some of them?:
- Knight of Xentar (Dragon Knight 3)
- Star Trek: 25th Anniversary