Skip to main content
GameDev.net gamedev.net
🔒 Locked

Compressing problem

Started by deve May 18, 2009 at 7:23 PM 38 replies 4.9k views
Original Post
deve
deve
For first I whould like to say hello here to everybody on gamedev.net I have a small problem with packing my moded files on game dh2005 there are files called data.00x and they supposed to be a zlib compression. I did try other forums to resolve my problem and get this answer " the compression is the classical zlib one and is applied to the filetable and optionally to the files (XTYPE & 1), the rest is encryption (visible in the script through the x10194eac variables)" I have one main folder and about 8 subfolders in it! I dont no about compressing files and so this answer didnt say me anything , I hope you here can help me :) Thank you.... header.bin http://www.2shared.com/file/5855346/e5f433c7/head.html [Edited by - deve on May 19, 2009 11:38:36 AM]
XTAL256
XTAL256
What exactly is your problem? You don't know how to compress the files?
I don't know what dh2005 is but some games (like Doom3) use data files with a file extension (i think it is .pak or something) but they are just normal zip files. So if you change the extension to .zip you can open them in Windows like any normal zip file. If this is the same you can just use a compression program to zip them up then just change the file extension to .00x
[Window Detective] - Windows UI spy utility for programmers
deve
deve
Quote:
Original post by XTAL256
What exactly is your problem? You don't know how to compress the files?
I don't know what dh2005 is but some games (like Doom3) use data files with a file extension (i think it is .pak or something) but they are just normal zip files. So if you change the extension to .zip you can open them in Windows like any normal zip file. If this is the same you can just use a compression program to zip them up then just change the file extension to .00x



My problem is compressing the folders one main folder and subfolders in it.Its not a .pak file like in doom3 its kind a different compression and I need to compress my moded files to it . Here is a head cuted with filecutter :
http://www.2shared.com/file/5844829/aa9828e4/head.html


deve
deve
So I guess nobody is helping me out here :(
Antheus
Antheus
Quote:
So I guess nobody is helping me out here :(

Nobody really has a clue what you want.

Quote:
I have a small problem with packing my moded files


And what exactly is this problem?

Google says DH2005 is Deer Hunter 2005. Is that correct?
Are there any modding tools that can build these packages? Google says there is a modding community for Deer Hunter.
And how did you make these mods? Usually all files are so specific that in order to modify them, you need to be aware of how to mod the game beforehand. Considering you apparently have some new assets, they were made based on some tutorial or some guide specific to the game, which would likely explain how to pack them as well, if that is even needed.
Zahlman
Zahlman
Quote:
Original post by deve
First, I would like to say hello here to everybody on gamedev.net.

I have a small problem with packing my modded files for the game "dh2005". There are files with names like 'data.00x' and they are supposed to be compressed with zlib. I tried other forums to resolve my problem and got this answer:

"The compression is classical zlib, and is applied to the filetable and optionally to the files (XTYPE & 1), the rest is encryption (visible in the script through the x10194eac variables)"

I have one main folder with about 8 subfolders!
I don't know about compressing files and so this answer didn't tell me anything... I hope you here can help me :)
Thank you....


So what is your question?
deve
deve
My problem is very easy I have to pack the a folder with subfolders for dh2005 game. the game uses data.001 files where the modified files in. I did modified new ones and now need to pack them into data.002 so the game can read the new files ...

if you need more info : I have unpacked the game data and modified desired profiles and added new stuff and put them in correct order with the fodlers.Need to pack them into data.002 thats all a header.bin of the original data.001 is included on my first post..
Antheus
Antheus
Quote:
Original post by deve

I have unpacked the game data and modified desired profiles


The tool you used to unpack - can it pack as well?
deve
deve
Quote:
Original post by Antheus
Quote:
Original post by deve

I have unpacked the game data and modified desired profiles


The tool you used to unpack - can it pack as well?


of course it does not why should I ask then for packing its just a unpacker no packing with this one.
Sneftel
Sneftel
Zlib doesn't compress entire directories, only single datastreams, so just saying "use zlib to compress" isn't the whole story. You also need to know how the file table is built, how files are arranged, whether compression is per-file or overall, etc.
deve
deve
Quote:
Original post by Sneftel
Zlib doesn't compress entire directories, only single datastreams, so just saying "use zlib to compress" isn't the whole story. You also need to know how the file table is built, how files are arranged, whether compression is per-file or overall, etc.



yes think so but I really dont understand about packing and what I shell do to pack my files, what you say doesnt bring me forward, what shell I do?
Cornstalks
Cornstalks
Quote:
Original post by deve
Quote:
Original post by Sneftel
Zlib doesn't compress entire directories, only single datastreams, so just saying "use zlib to compress" isn't the whole story. You also need to know how the file table is built, how files are arranged, whether compression is per-file or overall, etc.

yes think so but I really dont understand about packing and what I shell do to pack my files, what you say doesnt bring me forward, what shell I do?
Just so you know, I think you mean "shall", not "shell" [smile]

Anyway, I'd be surprised if anyone here knew. We don't know the file structure or encryption algorithm. Without knowing these things, it's impossible to help you re-pack your files.
Sneftel
Sneftel
Quote:
Original post by deve
yes think so but I really dont understand about packing and what I shell do to pack my files, what you say doesnt bring me forward, what shell I do?

You shall either (a) find the information yourself on the internet (including learning enough to understand that information), or (b) find a packer on the internet, or (c) figure it out yourself from the game and data files directly, or (d) give up.
deve
deve
Quote:
Original post by MikeTacular
Quote:
Original post by deve
Quote:
Original post by Sneftel
Zlib doesn't compress entire directories, only single datastreams, so just saying "use zlib to compress" isn't the whole story. You also need to know how the file table is built, how files are arranged, whether compression is per-file or overall, etc.

yes think so but I really dont understand about packing and what I shell do to pack my files, what you say doesnt bring me forward, what shell I do?
Just so you know, I think you mean "shall", not "shell" [smile]

Anyway, I'd be surprised if anyone here knew. We don't know the file structure or encryption algorithm. Without knowing these things, it's impossible to help you re-pack your files.



ya ya I meen shell :) sorry my english is not good.. I did email now to Luigi he is the guy who made the unpacker and asked him for filestructer of this game will it be possible then to pack the files if you know this?
deve
deve
Quote:
Original post by Sneftel
Quote:
Original post by deve
yes think so but I really dont understand about packing and what I shell do to pack my files, what you say doesnt bring me forward, what shell I do?

You shall either (a) find the information yourself on the internet (including learning enough to understand that information), or (b) find a packer on the internet, or (c) figure it out yourself from the game and data files directly, or (d) give up.



(a) no information in internett. (B) did search and try many packers no result (c) trying to figure it out but no luck :( (d) cant :)
deve
deve
will it be possible to make a packer when I found the filestructer of tables ???
XTAL256
XTAL256
This unpacker you speak of, is it an actual product (commercial or freeware) or is it just a program that some guy made to specifically read and unpack the data files for this particular game? If the files indeed use zlib compression then there are lots of programs out there that can unpack and pack your files.
I used to mod GTA and a lot of tools used to do so are made my hobby programmers/modders in their spare time, because the data structure of the files is specific to the game. Fortunately however, GTA has a very large modding community so it's easy to get help with it. From the sound of it, DH2005 does not have a very large modding community, so you might have to figure things out yourself.

EDIT:
Quote:

Original post by deve
(a) no information in internett.

Well this is the first result that came up in Google when i typed in "modding DH2005":
http://www.moddb.com/forum/thread/dh2005-mods
I didn't read it all but some guy there (it's not you is it [grin]) asked about modding DH2005. He got a few responses.
[Window Detective] - Windows UI spy utility for programmers
deve
deve
Quote:
Original post by XTAL256
This unpacker you speak of, is it an actual product (commercial or freeware) or is it just a program that some guy made to specifically read and unpack the data files for this particular game? If the files indeed use zlib compression then there are lots of programs out there that can unpack and pack your files.
I used to mod GTA and a lot of tools used to do so are made my hobby programmers/modders in their spare time, because the data structure of the files is specific to the game. Fortunately however, GTA has a very large modding community so it's easy to get help with it. From the sound of it, DH2005 does not have a very large modding community, so you might have to figure things out yourself.

EDIT:
Quote:

Original post by deve
(a) no information in internett.

Well this is the first result that came up in Google when i typed in "modding DH2005":
http://www.moddb.com/forum/thread/dh2005-mods
I didn't read it all but some guy there (it's not you is it [grin]) asked about modding DH2005. He got a few responses.



the unpacker is just a script on dos format someone elese made nothing commercial.Gta comminty to search there ? I asked someone from there before who was a friend of some guy called vanish he did the mod for dh2004 and he knows how to pack the files . But this guy on gta forum didnt know about him and also about the packing those files.Maybee I post some help there 2 . Thank you..


dh2005 was never moded before it has none moding stuff, I will be the first who did. Ya I did mode allready add some good stuff and so but on the final step I cant pack it.

this webpage on moddb they talking about a possibility to unpack the files and at the final they say its not possible.Of course its possible allready done also packing back , the only way I dont no is packing back.Does weird data.00x files. I am sure those files uses classic zlib library to pack coz thats what the unpacker says.


deve
deve
anybody here have an idee how to ???
Antheus
Antheus
Here's the real problem. The EULA forbids reverse engineering. Which makes it somewhat problematic to provide any real working solution...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.