Hm, in fact AGS extracting works, I checked all Gobread versions.
But G. can't extract 'editor.dat' (main global script file of game) from exe. Seems it's main problem for open extracted project in AGS.
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
Little extractor program
- 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
Please remember:
GOBREAD is a FREE PROGRAM - FREE OF CHARGE.
If anybody has any complaints about its functionality - IT's HIS PROBLEM!
At this time I am working on a re-packer program which allows users with programming experience to add their own extraction modules. So stay tuned...
GOBREAD is a FREE PROGRAM - FREE OF CHARGE.
If anybody has any complaints about its functionality - IT's HIS PROBLEM!
At this time I am working on a re-packer program which allows users with programming experience to add their own extraction modules. So stay tuned...
-
- veteran
- Posts: 108
- Joined: Thu Nov 06, 2008 9:29 pm
- Has thanked: 10 times
- Been thanked: 22 times
Re: Little extractor program
me tunedasmxtx wrote:At this time I am working on a re-packer program which allows users with programming experience to add their own extraction modules. So stay tuned...
______
Csimbi
Csimbi
- aluigi
- VVIP member
- Posts: 1916
- Joined: Thu Dec 08, 2005 12:26 pm
- Location: www.ZENHAX.com
- Has thanked: 4 times
- Been thanked: 664 times
- Contact:
Re: Little extractor program
uhmmm I have a doubt:allows users with programming experience to add their own extraction modules
if the user needs experience with a programming language and the module is a pre-compiled binary dll (so a complete program without only the main function), isn't simpler for him to just write the tool from scratch as indeed he must do in any case?
-
- veteran
- Posts: 108
- Joined: Thu Nov 06, 2008 9:29 pm
- Has thanked: 10 times
- Been thanked: 22 times
Re: Little extractor program
I've been planning on doing something similar, but for the same reasons I have never actually started it - I could not come up with an easy framework.aluigi wrote:uhmmm I have a doubt
Let's wait see what he's cooking - he might think up something different that makes things easier.
______
Csimbi
Csimbi
- aluigi
- VVIP member
- Posts: 1916
- Joined: Thu Dec 08, 2005 12:26 pm
- Location: www.ZENHAX.com
- Has thanked: 4 times
- Been thanked: 664 times
- Contact:
Re: Little extractor program
remaining in topic, today I have tried an experiment with QuickBMS about the rebuilding problem:
viewtopic.php?f=13&t=4003
viewtopic.php?f=13&t=4003
- 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 are the features I'm about to implement -
(actually, these features WILL BE implemented, because a program of such a kind would not make any sense!):
- Full source subdirectory file scanning providing essential information, surpassing standard file searching routines
- Advanced command line evaluation for batch processing
- Dialogue windows with progress visualisation
All of these features rely on the development of libraries I've created many months ago.
For programmers:
Expect lot of functions to be called which return pointers to structures/functions which return pointers to other structures/functions which return pointers. If you ever have been programming in Windows you will know.
(actually, these features WILL BE implemented, because a program of such a kind would not make any sense!):
- Full source subdirectory file scanning providing essential information, surpassing standard file searching routines
- Advanced command line evaluation for batch processing
- Dialogue windows with progress visualisation
All of these features rely on the development of libraries I've created many months ago.
For programmers:
Expect lot of functions to be called which return pointers to structures/functions which return pointers to other structures/functions which return pointers. If you ever have been programming in Windows you will 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
Here is a small update, mainly fixing some nasty bugs.
In my opinion the hell on earth for a programmer arises if he has to find a bug which is caused by overlooking the last byte in a buffer or by choosing the wrong of two comparison methods, for example a>(b-1) or a>=b.
Not even the most sophisticated super hitech compiler can be helpful in such a case...
------
Although it is an old game I added "Fallout" because it has an interesting file structure.
I looked at an incomplete format description from here:http://www.watto.org/extract/program/archives.txt and thought I should complete it.
The "/view" switch doesn't work for it, sorry. Some improvement should be in charge.
In my opinion the hell on earth for a programmer arises if he has to find a bug which is caused by overlooking the last byte in a buffer or by choosing the wrong of two comparison methods, for example a>(b-1) or a>=b.
Not even the most sophisticated super hitech compiler can be helpful in such a case...
------
Although it is an old game I added "Fallout" because it has an interesting file structure.
I looked at an incomplete format description from here:http://www.watto.org/extract/program/archives.txt and thought I should complete it.
The "/view" switch doesn't work for it, sorry. Some improvement should be in charge.
Code: Select all
+---------------------+
| Fallout *.dat (big) |
+---------------------+
4 - Number of Directories
4 - Number of 8 byte blocks to allocate (internal only)
4 - Size of additional memory to allate (= 0)
4 - dummy fill bytes
// for each directory
1 - Directory Name Length
X - Directory Name
4 - Number of files in current directory
4 - Unknown
4 - Unknown (16)
4 - Unknown
// for each file
1 - Filename Length
X - Filename
4 - Storing Method; 0x40: chunk wise, 0x20: raw data
4 - File Offset
4 - Decompressed File Size
4 - if (Storing_method == 0x40)
{Compressed Size}
else //if Storing method == 0x20
{0}
endif
X - if (storing_method == 0x40)
2 - Chunk size
if (Chunk_size & 0x8000)
[Chunk_size & 0x7fff] - raw data
else
[Chunk_size & 0x7fff] - LZSS compressed data
endif
else //if storing_method == 0x20
X - Raw data
endif
-
- Moderator
- Posts: 2602
- Joined: Sun May 18, 2008 3:01 pm
- Has thanked: 57 times
- Been thanked: 1422 times
Re: Little extractor program
I found some information on games made by the company tri-ace and was wondering if you could look at the format and see if it can be extracted.
I have included some sample files.
here are some links i have found online concerning the formats.
\these files are from star ocean 4 for xbox 360
http://www.geocities.jp/scorpiozodiac03e7/slz.html
http://www.romhacking.net/forum/index.php?topic=7790.0
I have included some sample files.
here are some links i have found online concerning the formats.
\these files are from star ocean 4 for xbox 360
http://www.geocities.jp/scorpiozodiac03e7/slz.html
http://www.romhacking.net/forum/index.php?topic=7790.0
You do not have the required permissions to view the files attached to this post.
- aluigi
- VVIP member
- Posts: 1916
- Joined: Thu Dec 08, 2005 12:26 pm
- Location: www.ZENHAX.com
- Has thanked: 4 times
- Been thanked: 664 times
- Contact:
Re: Little extractor program
quickbms script:
types:
0: uncompressed file
4: file compressed with xbcompress so use xbdecompress to unpack it.
obviously on playstation are used other compressions (like 2) but I have not had occasion to test them (I don't have the files)
Code: Select all
get NAME basename
idstring SLZ
get TYPE byte
get DUMMY long
if DUMMY & 0xff
endian little
else
endian big
endif
get ZSIZE long
get SIZE long
get DUMMY long
get DUMMY long
savepos OFFSET
if TYPE == 0
string NAME += ".unslz"
log NAME OFFSET ZSIZE
elif TYPE == 4
string NAME += ".xbcompress"
log NAME OFFSET ZSIZE
else
print "Error: unsupported type, contact me"
cleanexit
endif
0: uncompressed file
4: file compressed with xbcompress so use xbdecompress to unpack it.
obviously on playstation are used other compressions (like 2) but I have not had occasion to test them (I don't have the files)
-
- veteran
- Posts: 108
- Joined: Thu Nov 06, 2008 9:29 pm
- Has thanked: 10 times
- Been thanked: 22 times
Re: Little extractor program
Actually, some compilers do check buffer overruns - though these are not free.asmxtx wrote:Not even the most sophisticated super hitech compiler can be helpful in such a case...
______
Csimbi
Csimbi
Re: Little extractor program
guys, need some help. When I'm tryed to extract files from Warcraft II (War2Dat.mpq) I'v got an error "File format not recognized". Any ideas ?
I'm used simple command "GoBread War2dat.mpq"
I'm used simple command "GoBread War2dat.mpq"
Re: Little extractor program
what a great program. i've been looking for something like this for a long time. i have a question though. how come it works perfectly on king's quest 2 but fails to extract resources from king's quest 1, king's quest 3, and quest for glory 2. aren't they all using AGS 3.x? if not, aren't the previous versions of AGS supported?
- Dinoguy1000
- Site Admin
- Posts: 786
- Joined: Mon Sep 13, 2004 1:55 am
- Has thanked: 154 times
- Been thanked: 163 times
Re: Little extractor program
I thought I should point out that we have a wiki page for Fallout, and from there a link to http://falloutmods.wikia.com/wiki/DAT_file_format - you may be able to improve support with this information.asmxtx wrote:Although it is an old game I added "Fallout" because it has an interesting file structure.
I looked at an incomplete format description from here:http://www.watto.org/extract/program/archives.txt and thought I should complete it.