Any graphics artist looking for something different? Why not join us and create 8-bit graphics in the C64 scene! Click here for more info.
Join also our Discord channel! Click here.

Little extractor program

The Original Forum. Game archives, full of resources. How to open them? Get help here.
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 May 11, 2009 12:05 pm

shekofte wrote:please guide me how i can convert Nancy Drew , Danger on Deception Island , HDVideos , with the .avf extension to common images ? thanks
Some files within these containers seem to be stored as RAW-data, some as regular file. Some filetable entries contain information about the kind of the file. I plan to extend the filenames with this information ... somehow ...

User avatar
Tiptoe
ultra-n00b
Posts: 7
Joined: Mon Sep 15, 2008 5:49 pm
Been thanked: 2 times

Re: Little extractor program

Post by Tiptoe » Sat May 23, 2009 11:33 am

I'm feeling very stupid at the moment :(. I wanted to try modding 'Legend: Hand of God' today and I followed the Gobread instructions very carefully, but I just can't seem to make it work.

Anyway, I thought I'd start simply by unpacking the script files. There are two files, one called Script.pak and the other called Script.pak.dat.

Image

So I copied the two script files from the Legend Data folder to a folder named Unpack (just to be safe, because I didn't want to accidently mess up the original files).

But whenever I try to extract the files this is the message I get:

Image

Does anybody know what I'm doing wrong?

Thanks muchly.

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 » Wed Jun 10, 2009 12:57 am

Yes ... I know the problem.
In case of "Nancy Drew"-formats you must not use the "/CBN"-switch, because this one is reserved for another (adult) game: "DreamStripper".

The game series "Nancy Drew" has a lot of different format derivatives. (I far as I know there are at least TWENTY(!) games of this series).
The developers changed the file format within every new game-version. Therefore it is difficult to develop an algorithm which recognizes all appropriate file formats.

I'm still working on this format, but please give me some time.

In the moment, try "/NANCY" instead of "/CBN"

User avatar
shekofte
mega-veteran
mega-veteran
Posts: 218
Joined: Sun Jan 18, 2009 1:45 pm
Location: Sagittarius
Has thanked: 247 times
Been thanked: 16 times
Contact:

Re: Little extractor program

Post by shekofte » Wed Jun 10, 2009 3:00 pm

i love Danger on Deception Island , Nancy Drew series
i am waiting for you , thanks
ILLUSORY VIDEO GAMES ARE MORE IMPORTANT THAN PRECIOUS INTERNATIONAL FOOTBALLs

Csimbi
veteran
Posts: 102
Joined: Thu Nov 06, 2008 9:29 pm
Has thanked: 7 times
Been thanked: 17 times

Re: Little extractor program

Post by Csimbi » Wed Jun 10, 2009 8:16 pm

Wow. Great tool.
Thanks a lot!
Best retard: Csimbi

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 Jun 18, 2009 8:12 pm

Added extraction support for:
- Lights of Altair
- Nocturne
- Painkiller
- Star Trek - Hidden Evil
- Haemimont Games, HPK-files (Imperium Romanum, Grand Ages of Rome...)
- some other ones (see /LIST-switch)

Further changes:
- Some optimizations and preparations for a more convenient way to handle strings
- "VIEW"-switch (bugfixed): Now you can take a look into a file before extracting, for example:

Code: Select all

GOBREAD -view -pkpak save.dat
This will show all offsets and (compressed) lengths as hexadecimal values.

Or:

Code: Select all

GOBREAD -view:d -pkpak save.dat
This will show all offsets and (compressed) lengths as decimal values.

-------

The HPK-format gave me a real headache. It took some different approaches to develop a working extraction algorithm.
The file-/directory-table is stored with minimum information as a tree-/chained-list-structure.
The tree must be descended/ascended and the name-pieces must be completed in the right way.
There is no information about the total number of files.
An HPK-file can contain other HPK-files with the same structure or ZLIB-chunkwise-compressed files.
There is another compression method used too, named "LZIS". I haven't been able to handle this yet.

General HPK-file structure:

Code: Select all

Name table:
DWORD Index to the following offset-table-entry
DWORD Flag if it is a file or directory entry
WORD  Length of following name
BYTEs Name

Offset table:
DWORD Offset to data (if file entry) or to the next entry (if directory entry)
DWORD Size of data or size of the following directory entry
You do not have the required permissions to view the files attached to this post.
Last edited by asmxtx on Sun Jun 21, 2009 9:24 pm, edited 1 time in total.

Csimbi
veteran
Posts: 102
Joined: Thu Nov 06, 2008 9:29 pm
Has thanked: 7 times
Been thanked: 17 times

Re: Little extractor program

Post by Csimbi » Thu Jun 18, 2009 9:21 pm

Nice, thanks!
I think you should to start maintaining a readme with version history ;-)
Best retard: Csimbi

User avatar
RENIKRILL
advanced
Posts: 58
Joined: Wed Feb 11, 2009 12:54 pm
Location: land of the golden sun
Has thanked: 13 times
Been thanked: 18 times

Re: Little extractor program

Post by RENIKRILL » Fri Jun 26, 2009 5:38 am

Hey mate, I've used your tool a couple of times now and have found it does it's job well indeed.
You can't really turn a corner in recent times without running into a 'game extractor' which is just a very generic rip-off of some other tool. Indeed; all of these extractors that support all of the same games and nothing new. Rarely does a tool (and a tool's programmer) go out of it's way to generate and implement support for knowingly unsupported archives/resources.
You fall into the more admirable minority as it would seem. Soo thanks. :D
& keep it real brother,,, 8D 8D

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 Jun 29, 2009 1:18 am

@RENIKRILL:
Hey mate, I've used your tool a couple of times now and have found it does it's job well indeed.
I do my best to let it run flawlessly because I don't want to have any complaints.
You can't really turn a corner in recent times without running into a 'game extractor' which is just a very generic rip-off of some other tool.
Yes, it is a "ripper" in general. My main goal simply was to create a small program with a lot of algorithms (an "AIO" - All-In-One) and without much trouble using it.
Indeed; all of these extractors that support all of the same games and nothing new.
If you expect the newest file formats to be decoded within the shortest time after their releases then I must admit I am a slow old dinosaur. But in contrast to the developers who need weeks or months to develop an encryption algorithm I am fast enough. You might consider that I am not interested in every "new" game and that I am not inclined to be bothered with all the newest stuff.
Rarely does a tool (and a tool's programmer) go out of it's way to generate and implement support for knowingly unsupported archives/resources.
Most of the games/programs work without such container files. If not, it would be necessary to write a relatively complex algorithm for creating such container files. Mainly I am not interested in doing that.
You fall into the more admirable minority as it would seem.
I am not a professional programmer. I don't get any money for this program, I'm not a slave. I do this only for fun.
If you think this program might useful to you, you can use it the way you want. If you are not satisfied with it, don't download it again.
But if you think you can accelerate any reversing or development processes, contribute to XENTAX and let's know how to become better!

@Csimbi:
I'm working on a history file and a version-/build-number implementation.
Currently InstallShield gives me a headache.

Csimbi
veteran
Posts: 102
Joined: Thu Nov 06, 2008 9:29 pm
Has thanked: 7 times
Been thanked: 17 times

Re: Little extractor program

Post by Csimbi » Mon Jun 29, 2009 12:25 pm

asmxtx wrote:@Csimbi:
I'm working on a history file and a version-/build-number implementation.
Currently InstallShield gives me a headache.
Nah, no need to screw up this perfect tool with InstallShield. Just include a plain text readme and call it a day.
Best retard: Csimbi

vizipok
beginner
Posts: 22
Joined: Tue Jun 23, 2009 12:13 pm
Has thanked: 1 time

Re: Little extractor program

Post by vizipok » Mon Jun 29, 2009 8:12 pm

Could you help me, please?
I would like support for bba files of The Settlers 6 -Rise of an Empire and The Eastern Realm.
(I need text files or strings.)
Thank you in advance.

AlexTrin
ultra-n00b
Posts: 3
Joined: Sun Jul 19, 2009 4:53 pm

Re: Little extractor program

Post by AlexTrin » Mon Jul 20, 2009 10:52 am

Hi!
I wish to pack files in game X2 Wolverine Revenge, but it is impossible to me, and I do not know why!

How to take I know, it becomes so:
c:\test\GOBREAD.exe c:\testunpack\data.pkr

I know as to pack, but for some reason it is impossible to me, I make here so:
c:\test\GOBREAD.exe -create=data.pkr /PKR

Help please, it is very necessary to pack files from this game!
I hope that you help!)))

Csimbi
veteran
Posts: 102
Joined: Thu Nov 06, 2008 9:29 pm
Has thanked: 7 times
Been thanked: 17 times

Re: Little extractor program

Post by Csimbi » Mon Jul 20, 2009 2:33 pm

AlexTrin wrote:Hi!
I wish to pack files in game X2 Wolverine Revenge, but it is impossible to me, and I do not know why!
You are aware that this is an unpacker, right?
Best retard: Csimbi

AlexTrin
ultra-n00b
Posts: 3
Joined: Sun Jul 19, 2009 4:53 pm

Re: Little extractor program

Post by AlexTrin » Mon Jul 20, 2009 2:49 pm

Csimbi wrote:You are aware that this is an unpacker, right?
And what for to make extractor if then not probably to pack back files?

Who can will prompt, whether is packer back in.pkr a format?

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 » Tue Jul 21, 2009 1:46 am

Sorry, that I didn't answered your request the last time because I am currently enjoying the nice summer days to get the head free of evil things.

@AlexTrin (viewtopic.php?p=30591#p30591, viewtopic.php?p=30602#p30602):

There is an older version of "X2 Wolverine" with almost the same name of the newest 2008/2009er version. At this time I'm not able to extract this new version.

As I stated some times ago, in many cases it is not necessary to recreate extracted container files. You only need to place modified files to the right place.
Therefore I have left the idea of recreating container files generally.

Please remember: I have written this program because I want to know what data is stored on a hard disk.
If you want to modify some data - you have to be on your own.

@vizipok (viewtopic.php?p=30298#p30298):
The game series "Settlers" use a very havy encryption method.
I think if you roam through XENTAX you will be able to find a solution.
If you were able to find something, let me know.

Post Reply