Little extractor program

The Original Forum. Game archives, full of resources. How to open them? Get help here.
User avatar
evin
ultra-veteran
ultra-veteran
Posts: 336
Joined: Sat Aug 05, 2006 2:04 pm
Location: Hungary
Has thanked: 1 time
Been thanked: 147 times
Contact:

Re: Little extractor program

Post by evin » Fri Sep 26, 2008 3:39 pm

I can't extract the Stolen BCB files. "File format not recognized" But the GameExtractor read it (just can't able extract correctly). (pc.bcb)

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: Little extractor program

Post by asmxtx » Fri Sep 26, 2008 9:12 pm

"Stolen" is a file format which can't be detected automatically.
You MUST specify the file format.
To extract Stolen's BCB-files, enter:
GOBREAD /stolen <file_name>

Please refer to the help text which GOBREAD prints/creates.

User avatar
evin
ultra-veteran
ultra-veteran
Posts: 336
Joined: Sat Aug 05, 2006 2:04 pm
Location: Hungary
Has thanked: 1 time
Been thanked: 147 times
Contact:

Re: Little extractor program

Post by evin » Sat Sep 27, 2008 9:23 am

I see, thanks.

(I read the gobread.txt, just not understand, that the first row is the "option". Now i know.)

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: Little extractor program

Post by asmxtx » Mon Sep 29, 2008 12:57 am

Added extraction support for some quick-and-easy-formats, just for fun.
All formats are kind of <number_of_files>-<table:offs,length,name>-<data>. Not worth discussing it.
Game info links are below.

Flesh Feast, MUF-files (1997)
http://www.mobygames.com/game/windows/flesh-feast

Messiah, DTA(+IDX)-files (2001)
http://www.mobygames.com/game/windows/messiah

Outwars, FF-files (1998)
http://www.mobygames.com/game/windows/outwars

Panzer Elite Action, X-files (2006/2007)
http://www.mobygames.com/game/windows/p ... s-of-glory
http://www.mobygames.com/game/windows/dunes-of-war


Also I made some small changes in the help text to get it more comprehensible (hopefully).
You do not have the required permissions to view the files attached to this post.

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: Little extractor program

Post by asmxtx » Thu Oct 02, 2008 12:34 am

Added partial extraction support for Curse: The Eye Of Isis (2003), file GAME.AE
http://pc.ign.com/objects/017/017409.html

Added extraction support for "Wintermute Engine"-games, DCP-files (by request)
This format uses XOR-encryption to hide the file names.
Notes:
It was slightly difficult to find out what the XOR-encryption value for the file names is by "scanning" the EXE. After I found it the remains were an easy task.
The file has a known <name-size-offset> structure.

Format description:

Code: Select all

DE AD C0 DE "JUNK"	;Magic ("DEAD CODE:JUNK")
00 02 00 00		;Version, if < 200h, then no XOR-filename-encryption is used
;here some useless commentaries up to offset 7fh

Offset 80h:
DWORD		;Offset file table

<Offset file table>:
BYTE length(descr)	;Length of (useless) DCP-file description string
 BYTEs descr		;String, variable length of length(descr) incl. 0
BYTE	0		;terminator

DWORD			;Number of files

File table entries:

BYTE	;Length file name
 BYTEs ?	;File name; XOR-encrypted if version=200h; XOR-Value=44h
DWORD	;Offset file
DWORD	;Uncompressed data length
DWORD	;Comressed data length (0, if uncompressed); compression=ZLIB
DWORD	0
DWORD	CRC(?)	;Only present if version =200h
DWORD	0	;Only present if version =200h
You do not have the required permissions to view the files attached to this post.

User avatar
xrevenge
veteran
Posts: 119
Joined: Thu Jun 05, 2008 3:46 pm
Been thanked: 9 times

Re: Little extractor program

Post by xrevenge » Thu Oct 02, 2008 1:01 pm

dang i missed a lot...anyway thanks for adding support for wintermute games
and thanks to mr mouse for gobakery

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: Little extractor program

Post by asmxtx » Mon Oct 06, 2008 11:33 pm

This time it is not an unpacker update but a total rework of the help text system. I personally don't require such a functionality, but I don't know all areas of application which someone other would have.
The general help text is shortened for more clearness.
Two switches are added: "INFO" and "LIST".

For example,
this prints the recognized file format of the file "filename.dat":

Code: Select all

GOBREAD /info filename.dat
this prints out a list of all supported formats (option + flags + description):

Code: Select all

GOBREAD /list
Furthermore I recompiled the ZLIB-library from "CDECL"- to "STDCALL"-conventions after a long time of madding with "#pragma"-directives from WATCOM-C. I like "STDCALL" more because it produces smaller code and is more convenient to handle by assembly language which I'm programming in.
You do not have the required permissions to view the files attached to this post.

neoen
n00b
Posts: 19
Joined: Wed Oct 15, 2008 11:34 am
Has thanked: 2 times
Been thanked: 1 time

Re: Little extractor program

Post by neoen » Wed Oct 15, 2008 12:21 pm

So, is it possible to extract Wintermute game, translate it and then repack and simply play? Or is there any other problem? And what about support for Adventure Game Studio adventure games? Thank you very much for your work...

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: Little extractor program

Post by asmxtx » Sun Oct 19, 2008 9:58 pm

Most of the games will run with the extracted files if they are placed in the right folder. Therefore it is not necessary to recompile/rebuild the container files. Some games require ALL containers to be extracted.

Use FILEMON or PROCMON to get information about the files a game accesses.

Most of the games try to access the uncompressed files first and if and only if they don't exist they try to open the container files.
If you plan to create a modification for a game just extract all files, change those files which you want to modificate and delete all other ones which have been unchanged.

If you want to provide some files for evaluation please use NETLOAD.IN.
Last edited by asmxtx on Fri Oct 31, 2008 5:33 am, edited 1 time in total.

neoen
n00b
Posts: 19
Joined: Wed Oct 15, 2008 11:34 am
Has thanked: 2 times
Been thanked: 1 time

Re: Little extractor program

Post by neoen » Mon Oct 20, 2008 9:49 am

Thank you for your answers, but I am not sure about all of it.
There is for example an adventure game http://www.bigbluecup.com/games.php?act ... il&id=1077 (click button "Download now").
I want to find text and translate it.
But I am not sure if is it possible with your program, maybe this is not archive, but compiled files?
Could you, please, try to extract these files (texts)?

Thank you very much...

shaneno
beginner
Posts: 20
Joined: Fri Oct 17, 2008 5:15 am
Has thanked: 2 times
Been thanked: 1 time

Re: Little extractor program

Post by shaneno » Sat Oct 25, 2008 8:13 am

Can you do me a favour for adding support for Nikopol: Secrets of the Immortals?

Attachfile is script.opk .
script.rar
You do not have the required permissions to view the files attached to this post.

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: Little extractor program

Post by asmxtx » Thu Oct 30, 2008 10:33 pm

Here is another quick-and-easy-update.

Added: Requital, RES-files
Game-Info: http://www.mobygames.com/game/windows/requital

Added: Nikopol, OPK-files (by request)
Because I had only one file which "shaneno" provided I don't know if the file recognition algorithm works flawlessly. Please post here if you encounter any malfunctions.


Both file formats are very easy to handle (NumOfFiles/LenData/OffsData stuff) and don't seem to use any compression methods.

At this time I have some trouble at home so please be patient if I can't answer immediatly.

EDIT
Bugfix: In the version from Oct 30, 2008 the /INFO-switch for Nikopol didn't work. If you attach importance to it, delete this version and download the new attached one.
You do not have the required permissions to view the files attached to this post.
Last edited by asmxtx on Fri Oct 31, 2008 4:21 am, edited 1 time in total.

shaneno
beginner
Posts: 20
Joined: Fri Oct 17, 2008 5:15 am
Has thanked: 2 times
Been thanked: 1 time

Re: Little extractor program

Post by shaneno » Fri Oct 31, 2008 3:08 am

Very thanks! It can extract all .opk file perfectally.
And can you add a repack option for .opk file?I want to translate the game ,so i need to replace a font file in a .opk file, because the new font file's size is diferent from the origin one,the offset in file head need be rewrite.So i need you help. Thanks again.

And i have another question about Wintermute Games' DCP-files.
If the script has been compiled ,do u have a way to get the origin .script ? Because if the subtitle text is in the compiled .script file ,it is hard to translate it. So i want to get the origin one.

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: Little extractor program

Post by asmxtx » Fri Oct 31, 2008 5:30 am

shaneno wrote:And can you add a repack option for .opk file?
There are at least two problems:
Firstly the file structure has to be maintained. This requires recursive file parsing of subdirectories. GOBREAD does not have such an algorithm implemented yet.
Secondly the table whithin OPK-files contains some fields which might represent CRC values the game could verify during file accesses. It was too much effort to work out the algorithm for the calculation.
Just try if the game still works with extracted files (see this note some posts before: viewtopic.php?p=26900#p26900).
shaneno wrote:Wintermute Games' DCP-files.If the script has been compiled ,do u have a way to get the origin .script ?
Before you make such requests, I would recommend to google first.
Here is what I found: http://dead-code.org/home/index.php/features/

shaneno
beginner
Posts: 20
Joined: Fri Oct 17, 2008 5:15 am
Has thanked: 2 times
Been thanked: 1 time

Re: Little extractor program

Post by shaneno » Fri Oct 31, 2008 9:34 am

OK.Any way very thank you for your help.
I wish GOBREAD to be the most powerful game resource extractor .

Post Reply