Board index Programs with AI or Rules Enforcement Magic: The Gathering - Duels of the Planeswalkers Utilities
DotP2013 profile hash generator
Moderator: CCGHQ Admins
DotP2013 profile hash generator
by 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 ), rebuild hash.file, and see what happens in game. Maybe you'll make some interesting discoveries... if so, please share them!
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:
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.
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 ), rebuild hash.file, and see what happens in game. Maybe you'll make some interesting discoveries... if so, please share them!
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
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.
- Attachments
-
- D13Hash.zip
- (108.9 KiB) Downloaded 1360 times
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
Currently busy with life...
-
thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 721 times
Re: DotP2013 profile hash generator
by 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).
Just getting started: Xander9009's DotP 2014 Community Wad
Need a deck builder: DotP 2014 Deck Builder
Problems Modding: DotP 2014 Frequent Modding Mistakes
Need a deck builder: DotP 2014 Deck Builder
Problems Modding: DotP 2014 Frequent Modding Mistakes
- RiiakShiNal
- Programmer
- Posts: 2185
- Joined: 16 May 2011, 21:37
- Has thanked: 75 times
- Been thanked: 497 times
Re: DotP2013 profile hash generator
by 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
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 15 guests