XeNTaX Forum Index
Forum Home Tools Blog GFFC MultiEx
It is currently Fri Sep 03, 2010 6:19 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Defense Grid *.DGP
PostPosted: Tue Oct 13, 2009 3:35 pm 
Offline
beginner

Joined: Sat Jul 12, 2008 4:42 pm
Posts: 21
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.

Attachment:
files.rar


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 
 Post subject: Re: Defense Grid *.DGP
PostPosted: Wed Oct 14, 2009 8:48 pm 
Offline
beginner

Joined: Sat Jul 12, 2008 4:42 pm
Posts: 21
Hmm, no one wanna try? :(


Top
 Profile  
 
 
 Post subject: Re: Defense Grid *.DGP
PostPosted: Wed Oct 14, 2009 11:31 pm 
Offline
VVIP member
VVIP member

Joined: Thu Dec 08, 2005 12:26 pm
Posts: 856
Location: http://aluigi.org
*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.

Top
 Profile  
 
 
 Post subject: Re: Defense Grid *.DGP
PostPosted: Thu Oct 15, 2009 8:33 am 
Offline
beginner

Joined: Sat Jul 12, 2008 4:42 pm
Posts: 21
Thnx for help. I have Steam version and I think that algorithm is little different from demo. Exe file is here:
http://rapidshare.com/files/293231003/DefenseGrid.rar


Top
 Profile  
 
 
 Post subject: Re: Defense Grid *.DGP
PostPosted: Thu Oct 15, 2009 8:52 am 
Offline
VVIP member
VVIP member

Joined: Thu Dec 08, 2005 12:26 pm
Posts: 856
Location: http://aluigi.org
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


Top
 Profile  
 
 
 Post subject: Re: Defense Grid *.DGP
PostPosted: Thu Oct 15, 2009 9:24 am 
Offline
beginner

Joined: Sat Jul 12, 2008 4:42 pm
Posts: 21
oh, simple, got it :-) thnx for help


Top
 Profile  
 
 
 Post subject: Re: Defense Grid *.DGP
PostPosted: Thu Oct 15, 2009 9:26 am 
Offline
VVIP member
VVIP member

Joined: Thu Dec 08, 2005 12:26 pm
Posts: 856
Location: http://aluigi.org
tool updated, check my first post


Top
 Profile  
 
 
 Post subject: Re: Defense Grid *.DGP
PostPosted: Mon Oct 19, 2009 3:27 pm 
Offline
beginner

Joined: Sat Jul 12, 2008 4:42 pm
Posts: 21
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.


Top
 Profile  
 
 
 Post subject: Re: Defense Grid *.DGP
PostPosted: Mon Oct 19, 2009 4:04 pm 
Offline
VVIP member
VVIP member

Joined: Thu Dec 08, 2005 12:26 pm
Posts: 856
Location: http://aluigi.org
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.


Top
 Profile  
 
 
 Post subject: Re: Defense Grid *.DGP
PostPosted: Tue Oct 20, 2009 9:29 am 
Offline
beginner

Joined: Sat Jul 12, 2008 4:42 pm
Posts: 21
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


Top
 Profile  
 
 
 Post subject: Re: Defense Grid *.DGP
PostPosted: Tue Oct 20, 2009 11:02 am 
Offline
VVIP member
VVIP member

Joined: Thu Dec 08, 2005 12:26 pm
Posts: 856
Location: http://aluigi.org
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


Top
 Profile  
 
 
 Post subject: Re: Defense Grid *.DGP
PostPosted: Tue Oct 20, 2009 11:59 am 
Offline
beginner

Joined: Sat Jul 12, 2008 4:42 pm
Posts: 21
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


Top
 Profile  
 
 
 Post subject: Re: Defense Grid *.DGP
PostPosted: Thu Nov 19, 2009 9:32 pm 
Offline
VVIP member
VVIP member

Joined: Thu Dec 08, 2005 12:26 pm
Posts: 856
Location: http://aluigi.org
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


Top
 Profile  
 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Google [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group