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 ...shekofte wrote:please guide me how i can convert Nancy Drew , Danger on Deception Island , HDVideos , with the .avf extension to common images ? thanks
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
Re: Little extractor program
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.

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:

Does anybody know what I'm doing wrong?
Thanks muchly.
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.

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:

Does anybody know what I'm doing wrong?
Thanks muchly.
- 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
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"
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"
- shekofte
- mega-veteran

- Posts: 218
- Joined: Sun Jan 18, 2009 1:45 pm
- Location: Sagittarius
- Has thanked: 265 times
- Been thanked: 17 times
- Contact:
Re: Little extractor program
i love Danger on Deception Island , Nancy Drew series
i am waiting for you , thanks
i am waiting for you , thanks
ILLUSORY VIDEO GAMES ARE MORE IMPORTANT THAN PRECIOUS INTERNATIONAL FOOTBALLs
- 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:
- 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:
This will show all offsets and (compressed) lengths as hexadecimal values.
Or:
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:
- 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
Or:
Code: Select all
GOBREAD -view:d -pkpak save.dat
-------
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.
- 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
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.
& keep it real brother,,,

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.
& keep it real brother,,,
- 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
@RENIKRILL:
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.
I do my best to let it run flawlessly because I don't want to have any complaints.Hey mate, I've used your tool a couple of times now and have found it does it's job well indeed.
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.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.
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.Indeed; all of these extractors that support all of the same games and nothing new.
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.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.
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.You fall into the more admirable minority as it would seem.
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: 106
- Joined: Thu Nov 06, 2008 9:29 pm
- Has thanked: 7 times
- Been thanked: 20 times
Re: Little extractor program
Nah, no need to screw up this perfect tool with InstallShield. Just include a plain text readme and call it a day.asmxtx wrote:@Csimbi:
I'm working on a history file and a version-/build-number implementation.
Currently InstallShield gives me a headache.
______
Csimbi
Csimbi
Re: Little extractor program
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.
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.
Re: Little extractor program
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!)))
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: 106
- Joined: Thu Nov 06, 2008 9:29 pm
- Has thanked: 7 times
- Been thanked: 20 times
Re: Little extractor program
You are aware that this is an unpacker, right?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!
______
Csimbi
Csimbi
Re: Little extractor program
And what for to make extractor if then not probably to pack back files?Csimbi wrote:You are aware that this is an unpacker, right?
Who can will prompt, whether is packer back in.pkr a format?
- 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
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.
@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.

