Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Little extractor program

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Sledgy
ultra-n00b
Posts: 4
Joined: Mon Oct 12, 2009 10:31 am

Re: Little extractor program

Post by Sledgy »

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.
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 »

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...
Csimbi
veteran
Posts: 108
Joined: Thu Nov 06, 2008 9:29 pm
Has thanked: 10 times
Been thanked: 22 times

Re: Little extractor program

Post by Csimbi »

asmxtx 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...
me tuned ;-)
______
Csimbi
User avatar
aluigi
VVIP member
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

Post by aluigi »

allows users with programming experience to add their own extraction modules
uhmmm I have a doubt:
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?
Csimbi
veteran
Posts: 108
Joined: Thu Nov 06, 2008 9:29 pm
Has thanked: 10 times
Been thanked: 22 times

Re: Little extractor program

Post by Csimbi »

aluigi wrote:uhmmm I have a doubt
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.
Let's wait see what he's cooking - he might think up something different that makes things easier.
______
Csimbi
User avatar
aluigi
VVIP member
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

Post by aluigi »

remaining in topic, today I have tried an experiment with QuickBMS about the rebuilding problem:
viewtopic.php?f=13&t=4003
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 »

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.
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 »

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.

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
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1422 times

Re: Little extractor program

Post by chrrox »

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
You do not have the required permissions to view the files attached to this post.
User avatar
aluigi
VVIP member
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

Post by aluigi »

quickbms script:

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
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)
Csimbi
veteran
Posts: 108
Joined: Thu Nov 06, 2008 9:29 pm
Has thanked: 10 times
Been thanked: 22 times

Re: Little extractor program

Post by Csimbi »

asmxtx wrote:Not even the most sophisticated super hitech compiler can be helpful in such a case...
Actually, some compilers do check buffer overruns - though these are not free.
______
Csimbi
Gagarin
beginner
Posts: 21
Joined: Wed Nov 11, 2009 12:17 pm
Has thanked: 2 times

Re: Little extractor program

Post by Gagarin »

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"
Gagarin
beginner
Posts: 21
Joined: Wed Nov 11, 2009 12:17 pm
Has thanked: 2 times

Re: Little extractor program

Post by Gagarin »

no suggestions ? :(
maingroup
ultra-n00b
Posts: 4
Joined: Wed Apr 07, 2010 6:24 am

Re: Little extractor program

Post by maingroup »

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?
User avatar
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

Post by Dinoguy1000 »

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.
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.
Welcome to Xentax!

Rules | Requests | Wiki | Discord

If you run across a post that breaks the rules, please report the post - a mod or admin will handle it from there.
Post Reply