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.
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
Defense Grid *.DGP
- XRaptor
- 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
You do not have the required permissions to view the files attached to this post.
- aluigi
- 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
*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.
- XRaptor
- 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
The contents of this post was deleted because of possible forum rules violation.
- aluigi
- 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
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
I will update the tool but in any case it's only a xor operation so you can do it also manually
- aluigi
- 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:
- XRaptor
- 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
Well, I think it doesn't work Hash is counted ok, but writing back to file doesn't work.aluigi wrote:tool updated, check my first post
- aluigi
- 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
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.
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.
- XRaptor
- 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
-a and -r switches are not working. Hash is never writed to file. -o seems to be workingaluigi 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.
- aluigi
- 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
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
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
- XRaptor
- 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
So that's the problem, there is no info that -o switch must be provided I just tried -a and -r + filenamealuigi 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
- aluigi
- 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
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
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