Little extractor program
- evin
- 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
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)
- 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
"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.
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.
- evin
- 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
I see, thanks.
(I read the gobread.txt, just not understand, that the first row is the "option". Now i know.)
(I read the gobread.txt, just not understand, that the first row is the "option". Now i know.)
- 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
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).
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.
- 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
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:
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 =200hYou do not have the required permissions to view the files attached to this post.
Re: Little extractor program
dang i missed a lot...anyway thanks for adding support for wintermute games
and thanks to mr mouse for gobakery
and thanks to mr mouse for gobakery
- 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 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":
this prints out a list of all supported formats (option + flags + description):
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.
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.datCode: Select all
GOBREAD /listYou do not have the required permissions to view the files attached to this post.
Re: Little extractor program
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...
- 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
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.
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.
Re: Little extractor program
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...
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
Can you do me a favour for adding support for Nikopol: Secrets of the Immortals?
Attachfile is script.opk .
Attachfile is script.opk .
You do not have the required permissions to view the files attached to this post.
- 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
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.
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
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.
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.
- 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
There are at least two problems:shaneno wrote:And can you add a repack option for .opk file?
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).
Before you make such requests, I would recommend to google first.shaneno wrote:Wintermute Games' DCP-files.If the script has been compiled ,do u have a way to get the origin .script ?
Here is what I found: http://dead-code.org/home/index.php/features/
