It is currently 28 Jun 2017, 07:09
   
Text Size

DotP2013 profile hash generator

Moderator: CCGHQ Admins

DotP2013 profile hash generator

Postby thefiremind » 05 Sep 2012, 14:06

For those who don't know what we're talking about here: DotP2013 saves the user's progress in a .profile file, then it generates a hash from it and saves the hash to a file called hash.file. This allows the game to check the integrity of the save data. If you want to know more about the profile hash problem, look here.

The hashing algorithm has finally been discovered, and thanks to a big help from RiiakShiNal, I made a small program that generates the hash from any file, according to that algorithm.

What do you need this program for? Well, you can play around with your profile (make a backup first :wink:), rebuild hash.file, and see what happens in game. Maybe you'll make some interesting discoveries... if so, please share them! :D

It's a console application so you need to run it from the command prompt (or make a .bat file that does it for you).

The usage is easy: you must specify the input file as first argument, and the output file as second argument (optional). If you don't specify an output file, you'll get the result to screen anyway.

Example of output:
Code: Select all
D:\D13Hash\Win32\Release>D13Hash 1753681157.profile hash.file
* Duels of the Planeswalkers 2013 profile hash generator *
Opening file 1753681157.profile... OK
Length: 0x10c4
Hash: 0x10019b78
Writing hash to file hash.file... OK
You'll get a warning in case the input file has a non-standard length (it should always be 0x10c4 for a DotP2013 profile), but the hash will be computed anyway.

In the attachment you can find both the executable and the source code. Why is the executable relatively big for such a short code? Don't worry, no threats inside! I disabled the dynamic linking, so you don't need additional DLLs to make it work. And I used RAD Studio for compiling, which probably inserted something not really useful, but I didn't have time to install another environment just for this thing. :mrgreen:
Attachments
D13Hash.zip
(108.9 KiB) Downloaded 953 times
< Former DotP 2012/2013/2014 modder >
Currently not really active.
User avatar
thefiremind
Programmer
 
Posts: 3508
Joined: 07 Nov 2011, 10:55
Has thanked: 117 times
Been thanked: 712 times

Re: DotP2013 profile hash generator

Postby RiiakShiNal » 05 Sep 2012, 15:55

For those who don't know how big 0x10c4 is for the file (because not everyone is familiar with hexadecimal conversions), it is 4,292 bytes (standard profile size).
Problems with base game cards: DotP 2014 Core Fixes
Need a deck builder: DotP 2014 Deck Builder
Problems Modding: DotP 2014 Frequent Modding Mistakes
RiiakShiNal
Programmer
 
Posts: 2083
Joined: 16 May 2011, 21:37
Has thanked: 72 times
Been thanked: 452 times

Re: DotP2013 profile hash generator

Postby spiritcrusher1385 » 12 Aug 2013, 18:26

It seems they fixed this in the latest patch. Making custom decks with the help of this tool no longer works. Not sure if they changed the hash.file algorithm or something else tho.
spiritcrusher1385
 
Posts: 2
Joined: 12 Aug 2013, 18:21
Has thanked: 0 time
Been thanked: 0 time


Return to Utilities

Who is online

Users browsing this forum: No registered users and 2 guests


Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: No registered users and 2 guests

Login Form