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

Defense Grid *.DGP

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
User avatar
XRaptor
mega-veteran
mega-veteran
Posts: 226
Joined: Sat Jul 12, 2008 4:42 pm
Location: Prague
Has thanked: 6 times
Been thanked: 47 times
Contact:

Defense Grid *.DGP

Post by XRaptor »

Hi, one simple question - is there someone who tried to get info about game files? I tried but there is any CRC and every editation makes game crash with message about damaged data. I thout that it is SHA1 or just modified value from SHA1 hash, but not sure.

Check attached 2 simple files (index data inside) and take a look on it. I think that CRC value is on last 20 bytes.
files.rar
You do not have the required permissions to view the files attached to this post.
User avatar
XRaptor
mega-veteran
mega-veteran
Posts: 226
Joined: Sat Jul 12, 2008 4:42 pm
Location: Prague
Has thanked: 6 times
Been thanked: 47 times
Contact:

Re: Defense Grid *.DGP

Post by XRaptor »

Hmm, no one wanna try? :(
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: Defense Grid *.DGP

Post by aluigi »

*updated tool*
You do not have the required permissions to view the files attached to this post.
Last edited by aluigi on Thu Oct 15, 2009 9:23 am, edited 1 time in total.
User avatar
XRaptor
mega-veteran
mega-veteran
Posts: 226
Joined: Sat Jul 12, 2008 4:42 pm
Location: Prague
Has thanked: 6 times
Been thanked: 47 times
Contact:

Re: Defense Grid *.DGP

Post by XRaptor »

The contents of this post was deleted because of possible forum rules violation.
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: Defense Grid *.DGP

Post by aluigi »

ops I just noticed that instead in the full game the hash is simply xored with that special sequence of bytes without modifications to the sha1 algorithm like happens on the demo.
I will update the tool but in any case it's only a xor operation so you can do it also manually
User avatar
XRaptor
mega-veteran
mega-veteran
Posts: 226
Joined: Sat Jul 12, 2008 4:42 pm
Location: Prague
Has thanked: 6 times
Been thanked: 47 times
Contact:

Re: Defense Grid *.DGP

Post by XRaptor »

oh, simple, got it :-) thnx for help
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: Defense Grid *.DGP

Post by aluigi »

tool updated, check my first post
User avatar
XRaptor
mega-veteran
mega-veteran
Posts: 226
Joined: Sat Jul 12, 2008 4:42 pm
Location: Prague
Has thanked: 6 times
Been thanked: 47 times
Contact:

Re: Defense Grid *.DGP

Post by XRaptor »

aluigi wrote:tool updated, check my first post
Well, I think it doesn't work :-) Hash is counted ok, but writing back to file doesn't work.
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: Defense Grid *.DGP

Post by aluigi »

uhmmm what you mean with "doesn't work"?
do you receive an error from the tool?
the output file has something strange?

how was your input file?
I mean had it already an hash (correct or wrong) at its end or just nothing?

here everything works perfectly overwriting the input file (dgridhash -o input_file input_file), so check if you have specified the correct options in case your input file doesn't have an hash at the end.
User avatar
XRaptor
mega-veteran
mega-veteran
Posts: 226
Joined: Sat Jul 12, 2008 4:42 pm
Location: Prague
Has thanked: 6 times
Been thanked: 47 times
Contact:

Re: Defense Grid *.DGP

Post by XRaptor »

aluigi wrote:uhmmm what you mean with "doesn't work"?
do you receive an error from the tool?
the output file has something strange?

how was your input file?
I mean had it already an hash (correct or wrong) at its end or just nothing?

here everything works perfectly overwriting the input file (dgridhash -o input_file input_file), so check if you have specified the correct options in case your input file doesn't have an hash at the end.
-a and -r switches are not working. Hash is never writed to file. -o seems to be working
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: Defense Grid *.DGP

Post by aluigi »

here everything works.

for example I took data0001.dgp and copied it in another folder then I removed the 20 bytes hash at its end and then I launched:
dgridhash -a -o Z:\data0001.dgp Z:\data0001.dgp

and now the file is exactly like the original.

remember that the -o is necessary to write the file because "dgridhash file" does NOT overwrite the same file but simply calculates and shows its hash. any write operation is performed with -o
User avatar
XRaptor
mega-veteran
mega-veteran
Posts: 226
Joined: Sat Jul 12, 2008 4:42 pm
Location: Prague
Has thanked: 6 times
Been thanked: 47 times
Contact:

Re: Defense Grid *.DGP

Post by XRaptor »

aluigi wrote:remember that the -o is necessary to write the file because "dgridhash file" does NOT overwrite the same file but simply calculates and shows its hash. any write operation is performed with -o
So that's the problem, there is no info that -o switch must be provided :-) I just tried -a and -r + filename
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: Defense Grid *.DGP

Post by aluigi »

I have written a bms script for the dgp files:
http://aluigi.org/papers/bms/defense_grid.bms

you must select only the file contains the number 0000 like data0000.dgp or enus0000.dgp (so the first dgp of the collection) because that one is the index file
Post Reply