Page 11 of 15

Re: Little extractor program

Posted: Mon Aug 24, 2009 3:00 pm
by OrangeC
How can i get this program to run on windows 64bit? it wont let me.

Re: Little extractor program

Posted: Mon Aug 24, 2009 4:11 pm
by zeeh
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.
SDNS are *.mp3 files, RTXT are *.dds files (mainly DXT3 and DXT5) and XFGS are *.GFX files (kind of flash files).

Re: Little extractor program

Posted: Tue Aug 25, 2009 3:10 pm
by cryogen
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)

Re: Little extractor program

Posted: Tue Aug 25, 2009 11:25 pm
by Savage
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:

Code: Select all

GOBREAD.EXE menu.mpk
I get:

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.

Re: Little extractor program

Posted: Wed Aug 26, 2009 3:53 am
by asmxtx
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.

Re: Little extractor program

Posted: Sun Aug 30, 2009 1:36 pm
by bellox
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 :)

Re: Little extractor program

Posted: Sun Aug 30, 2009 9:49 pm
by Savage
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/

Re: Little extractor program

Posted: Mon Aug 31, 2009 1:26 am
by asmxtx
OrangeC wrote:How can i get this program to run on windows 64bit? it wont let me.
It is not designed to run on 64-Bit-Systems.
Try to use it with a DOS-Emulator like VMWARE (commercial) or DOSBOX (free):
http://www.dosbox.com

Re: Little extractor program

Posted: Mon Aug 31, 2009 7:27 am
by Csimbi
asmxtx wrote:
OrangeC wrote:How can i get this program to run on windows 64bit? it wont let me.
It is not designed to run on 64-Bit-Systems.
Try to use it with a DOS-Emulator like VMWARE (commercial) or DOSBOX (free):
http://www.dosbox.com
I'm on a 32bit system, so I would not know, but I was under the impression that 64bit systems could run 32bit code.
I guess it's not the case then? Interesting. It would mean that you need to trash all your 32bit software that you purchased...

Re: Little extractor program

Posted: Mon Aug 31, 2009 9:39 pm
by asmxtx
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.
It would mean that you need to trash all your 32bit software that you purchased...
It looks so. Or 64-bit-systems will go the same way like the Intel-686-processor: to a blind alley.

Re: Little extractor program

Posted: Tue Sep 01, 2009 12:19 am
by Csimbi
asmxtx wrote:
It would mean that you need to trash all your 32bit software that you purchased...
It looks so. Or 64-bit-systems will go the same way like the Intel-686-processor: to a blind alley.
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.

Re: Little extractor program

Posted: Tue Sep 01, 2009 4:06 am
by asmxtx
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

Re: Little extractor program

Posted: Fri Oct 16, 2009 4:11 am
by Sledgy
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!

Re: Little extractor program

Posted: Mon Dec 21, 2009 5:57 am
by Sledgy
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)

Re: Little extractor program

Posted: Tue Dec 22, 2009 12:57 am
by asmxtx
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.
This shouldn't happen actually! Only 100% extration success should be accepted!
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.
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!
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.

Wanna extract some of them?:

- Knight of Xentar (Dragon Knight 3)
- Star Trek: 25th Anniversary
Not really, sorry. That reminds me of these old times when 286AT's with chunky CGA/Hercules graphics were state of the art...