-
2 Attachment(s)
Dungeon Defenders Compression Toolkit
Code:
▄
▄ ▄▄▄▄▄▄▄ ▄ █▀▀▀▀ ▀▀ ▀ ▄▄▄▄▄▄▄▄ ▀▄▄▄▄ ▄
▄▄▄▄▄▄ ▀ ▄▄▄▄▄▄█▀▀▀▀▀█ ▄▄▄▄▄▄ ▀ █▀▀▀▀▀▀█ █▀▀▀▀▀▀ ▄▄▄▄ █▄▄▄▄▄▄▄▄
▄▄█▀▀ ▄▄ ▀█▀▀▀ ▄▄ ▀▀ ▀▀▀ █▀▀ ▄▄ ▀▀█▄ ▀ █▀ ███▀̦ █ ▀▀▀▀ ████ ▄██ ▄▄▄▄ ▀█
▀ ▀▀ ▄▄██▀█▓▄ ▄▄██▀█▓▓▄ ███ ▄▄██▀██▓▄ █▀▀▀▀█ ███¦ █▄▄¦Ì███¦Ì███¦Ì███▄Ì███¦ ▄
▄▓▓██▀ ▀▀▄██▀ Ì██▓¦Ì██¦▄██▀ Ì██▓¦ ▄▄█▓▄ Ì████▄▄▄ ▓███ ████ █ ▄▄▄▄███▓
Ì▓██¦ ░ Ì▓██¦ ▀▀████ ███ ▓█¦ ▄███▀▄███▀ ▓███ ▀██▓▓ ██¦Ì███¦ ▄███▀ Ì██▓¦
▓███▀ █ ▓███ ░Ì███¦Ì██▓ ███ ░▀▀ Ì▓██¦ ▄¦Ì▓██¦Ì¦Ì██▓¦Ì█ ████ Ì▓██¦ ▄██▓▓▀
▀ Ì███¦Ì█¦Ì███¦ ▀▀▀▀ ▀▀ Ì███¦ ▀ ▀▓██▄██ ▀▀▀▀ ██ ███▓ Ì▓██¦ ▀▓██▄██▀▀ ▄▄ ▄
█ ▀▀▀▀ ██ ▀▀▀▀ █▀▀▀▀▀▀█▄ ▀▀▀▀ █▀█▄▄ ▀▀ ▄▄█▀▀▀▀█¦Ì███¦Ì ▀▓▓██▄░ ▀▀ ▄▄█▀▀
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▄ ▀ ▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀ !f █ ▀▀▀▀ ██▄▄ ▀▀▀▀ █▀▀▀▀
▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀ p r e s e n t s . . ▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀ █▀ ▀
▀ ▀▀▀▀▀ ▀ ▀
Dungeon Defenders Compression Toolkit by fairchild
======================================================= version 0.3.0b ===
Usage: dd.exe [options] <input> <output>
Options:
-d - Decompress.
-c - Compress.
Release notes:
Yet again a compression toolkit, this time for Dungeon Defenders!
To use this toolkit you must first extract the savegame from within the
xbox 360 container (CON), then use this toolkit on the extracted file.
If you try to use this on the CON file itself it will give you a warning.
To use it you will need to copy/move/extract the following files to
a directory of your choice:
* Toolkit ("dd.exe").
* Your savegame that your extracted from its CON file.
Decompress
==========
Now to decompress a savegame you run the application by entering the following:
* <PTEF> = the path to the extracted files, ex: c:\test
<PTEF>\dd.exe -d <PTEF>\<my savegame filename> <PTEF>\save.decompressed
Example: c:\test\dd.exe -d c:\test\DunDefHeroes.dun c:\test\save.decompressed
The toolkit will process the savegame and decompress it's compressed data block
to the file names "save.decompressed".
Open "save.decompressed" in your favorite hex editor :-)
Compress
========
To compress and inject the uncompressed blocks back into your savegame use the
following command:
NOTE: !! make a copy of your orginal savegame !!
* <PTEF> = the path to the extracted files, ex: c:\test
<PTEF>\dd.exe -c <PTEF>\save.decompressed <PTEF>\<my savegame filename>
Example: c:\test\dd.exe -c c:\test\save.decompressed c:\test\DunDefHeroes.dun
This will take the decompressed block, named "save.decompressed" and
compress them, rebuild the package to a file named "DunDefHeroes.dun.rebuilt" then
fix the checksum.
The file to inject back into your CON file is the file ending with ".rebuilt" !
NOTE:
Always make backup of your savegames!!
Have fun :-)
Greetings goes to the following people:
unknown_v2, aluigi, Dualla, feudalnate, Renegade, Sephiroth, pureIso
Nathan, Mojobojo, dvs, and those i forgot...
The decompress and compress function might need some tweaking, but should work. Please test and let me know if something still not working.
Update:
Beta version with support for multiple compressed blocks are here!! But as always with a beta, expect bugs (and probably alot of them).
Always make backup of your savegame before using any of my tools!
Download: Attachment 4176
GUI:
I have now made a simple GUI for all you who don't understand how the command prompt works, put the executable in the same directory as "dd.exe".
Download: Attachment 4204
-
Re: Dungeon Defenders Compression Toolkit
I might be using it incorrectly but it keeps saying that dd.exe stopped working after I try to decompress the save (the extracted file from the save). Yes I opened it in CMD...
EDIT: nvm you have to run it as admin :P
-
Re: Dungeon Defenders Compression Toolkit
My output after compression ends up being really big.
-
Re: Dungeon Defenders Compression Toolkit
Quote:
Originally Posted by
godslam
My output after compression ends up being really big.
Same here, mine is still growing (at 10MB lol)
-
Re: Dungeon Defenders Compression Toolkit
Quote:
Originally Posted by
Idlehands88
Same here, mine is still growing (at 10MB lol)
I'll have a look at it to see what might be wrong, could you attach the file you were testing on?
-
Re: Dungeon Defenders Compression Toolkit
Quote:
Originally Posted by
fairchild
I'll have a look at it to see what might be wrong, could you attach the file you were testing on?
Ya I think the file size reader is reading the file size in KB instead of Bytes. So the compression adds bytes to make the file size 102,400KB (100MB) instead of 102,400Bytes (100KB)
Here you go:
-
Re: Dungeon Defenders Compression Toolkit
Quote:
Originally Posted by
Idlehands88
Ya I think the file size reader is reading the file size in KB instead of Bytes. So the compression adds bytes to make the file size 102,400KB instead of 102,400Bytes
Here you go:
That'd make sense. I'm sure it'll be an easy thing for fairchild to fix.
-
Re: Dungeon Defenders Compression Toolkit
There he goes again, another great compression Toolkit, Fair, you are a compressmanic :)
-
Re: Dungeon Defenders Compression Toolkit
I'm using tellg(); to get the file size so that should not be the problem.
It works perfectly for me, this is what i did:
Code:
c:\test>dd.exe -d c:\test\DunDefHeroes.dun c:\test\save.decompressed
Dungeon Defenders Compression Toolkit by fairchild
======================================================= version 0.1.0 ===
- Open input file: DunDefHeroes.dun
- File size: 0x00019000 (102400)
- Reading buffer from file, done.
! Compressed data block found.
test
- Open output file: save.decompressed1
All done!
Code:
C:\test>dd -c save.decompressed DunDefHeroes.dun
Dungeon Defenders Compression Toolkit by fairchild
======================================================= version 0.1.0 ===
- Open output file: DunDefHeroes.dun
- File size: 0x00019000 (102400)
- Reading buffer from file, done.
- Open input file: save.decompressed1
- Compressing..
- Fixing checksum.
All done!
What's the output from the compress preceedure when you compress the file? Also if you have "gnuwin32" or similar installed, make sure you don't use the (linux)dd program as that is for copying data. In that case try rename my tool "dd.exe" to "dungeons.exe" and run that instead.
-
1 Attachment(s)
Re: Dungeon Defenders Compression Toolkit
mine hangs here....
Attachment 3765
and it loops through the file creating infinite null bytes...i let it got to well over 100MB
-
Re: Dungeon Defenders Compression Toolkit
Quote:
Originally Posted by
fairchild
I'm using tellg(); to get the file size so that should not be the problem.
It works perfectly for me, this is what i did:
Code:
c:\test>dd.exe -d c:\test\DunDefHeroes.dun c:\test\save.decompressed
Dungeon Defenders Compression Toolkit by fairchild
======================================================= version 0.1.0 ===
- Open input file: DunDefHeroes.dun
- File size: 0x00019000 (102400)
- Reading buffer from file, done.
! Compressed data block found.
test
- Open output file: save.decompressed1
All done!
Code:
C:\test>dd -c save.decompressed DunDefHeroes.dun
Dungeon Defenders Compression Toolkit by fairchild
======================================================= version 0.1.0 ===
- Open output file: DunDefHeroes.dun
- File size: 0x00019000 (102400)
- Reading buffer from file, done.
- Open input file: save.decompressed1
- Compressing..
- Fixing checksum.
All done!
What's the output from the compress preceedure when you compress the file? Also if you have "gnuwin32" or similar installed, make sure you don't use the (linux)dd program as that is for copying data. In that case try rename my tool "dd.exe" to "dungeons.exe" and run that instead.
That's what the problem was, I was adding the 1 at the end of save.decompressed lol It compressed it fine now :P
EDIT: Save freezes my xbox, even if I just change the exp...
EDIT 2: Even if I decompress the save and the compress it, it still freezes, even tho I didn't edit it... I don't think the decompression/compression is right???
-
1 Attachment(s)
Re: Dungeon Defenders Compression Toolkit
Here's a debug build, it has more output when compressing and decompressing, might give me more info on where it fails and starts to fill the file.
Filename: dd_debug.exe
Attachment 3766
-
Re: Dungeon Defenders Compression Toolkit
Quote:
Originally Posted by
fairchild
Here's a debug build, it has more output when compressing and decompressing, might give me more info on where it fails and starts to fill the file.
Filename: dd_debug.exe
Attachment 3766
Decompression:
http://img27.imageshack.us/img27/1701/dderror.png
Compression:
http://img208.imageshack.us/img208/5...ompression.png
-
1 Attachment(s)
Re: Dungeon Defenders Compression Toolkit
Attachment 3767
lots of padding
-
Re: Dungeon Defenders Compression Toolkit
Quote:
Originally Posted by
Buddah
Remove the "1" from the input file.
@Idlehands88: I'll look into the compression then, might be something in the header that needs patching or something aswell.
-
Re: Dungeon Defenders Compression Toolkit
Code:
C:\Users\Mike>C:\Users\Mike\Desktop\test\dd_debug.exe -c C:\Users\Mike\Desktop\t
est\DunDefHeroes.Decomp C:\Users\Mike\Desktop\test\DunDefHeroes.dun
▄
▄ ▄▄▄▄▄▄▄ ▄ ▀▀▀▀▀ ▀▀ ▀ ▄▄▄▄▄▄▄▄ ▀▄▄▄▄ ▄
▄▄▄▄▄▄ ▀ ▄▄▄▄▄▄█▀▀▀▀▀█ ▄▄▄▄▄▄ ▀ █▀▀▀▀▀▀█ █▀▀▀▀▀▀ ▄▄▄▄ █▄▄▄▄▄▄▄▄
▄▄█▀▀ ▄▄ ▀█▀▀▀ ▄▄ ▀▀ ▀▀▀ █▀▀ ▄▄ ▀▀█▄ ▀ █▀ ███▀▐▌ █ ▀▀▀▀ ████ ▄██ ▄▄▄▄ ▀█
▀ ▀▀ ▄▄██▀▓▓▄ ▄▄██▀█▓▓▄ ███ ▄▄██▀██▓▄ █▀▀▀▀█ ███▌ █▄▄▌▐███▌▐███▌▐███▄▐███▌ ▄
▄▓▓▓▓▀ ▀▀▄██▀ ▐██▓▌▐██▌▄█▓▀ ▐░░▒▌ ▄▄█▓▄ ▐██▓█▄▄▄ ▓██▒ ▒███ █ ▄▄▄▄███▓
▐▓▒░▌ ░ ▐▓▒░▌ ▀▀░░▒▒ ░░▒ ▓▒▌ ▄░██▀▄▒██▀ ░░▒█ ▀▀░▒▓ ▓░▌▐░▒▓▌ ▄█▓█▀ ▐▓█▓▌
▓░██▀ █ ▓░██ ░▐███▌▐██▓ ░░█ ░▀▀ ▐▓░▒▌ ▄▌▐▓██▌▐▌▐██░▌▐█ █░░▓ ▐▓░░▌ ▄█░▒▓▀
▀ ▐███▌▐█▌▐███▌ ▀▀▀▀ ▀▀ ▐███▌ ▀ ▀▓██▄██ ▀▀▀▀ ██ ███░ ▐▓██▌ ▀▓██▄██▀▀ ▄▄ ▄
█ ▀▀▀▀ ██ ▀▀▀▀ █▀▀▀▀▀▀█▄ ▀▀▀▀ █▀█▄▄ ▀▀ ▄▄█▀▀▀▀█▌▐███▌▐ ▀▓▓██▄░ ▀▀ ▄▄█▀▀
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▄ ▀ ▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀ !f █ ▀▀▀▀ ██▄▄ ▀▀▀▀ █▀▀▀▀
▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀ p r e s e n t s . . ▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀ ▀▀ ▀
▀ ▀▀▀▀▀ ▀ ▀
Dungeon Defenders Compression Toolkit by fairchild
======================================================= version 0.1.0 ===
- Open output file: C:\Users\Mike\Desktop\test\DunDefHeroes.dun
- File size: 0x00019000 (102400)
- Reading buffer from file, done.
Found header!
- Inject position: 0x0000000c (12)
- End: 0x0000000c (12)
- Fixing padding.
- Padding: 0xfffffff0 (4294967280)
-
Re: Dungeon Defenders Compression Toolkit
-
Re: Dungeon Defenders Compression Toolkit
Quote:
Originally Posted by
Idlehands88
Any news on this?
My guess is it's being worked.
If you can get it working, what's the first thing you plan on modding?
-
Re: Dungeon Defenders Compression Toolkit
Quote:
Originally Posted by
godslam
My guess is it's being worked.
If you can get it working, what's the first thing you plan on modding?
Mana, Items and Exp :P
-
Re: Dungeon Defenders Compression Toolkit
Quote:
Originally Posted by
Idlehands88
Mana, Items and Exp :P
I'm prolly gonna use it to attempt increasing the attack of items and then use them for boss-killing. I'm gonna give them high attack, but make them seem somewhat legit.
-
Re: Dungeon Defenders Compression Toolkit
such a good tool, cheers.
-
Re: Dungeon Defenders Compression Toolkit
I have solved the compression / decompression problem, also working on some other small fixes. New release soon.
-
Re: Dungeon Defenders Compression Toolkit
Quote:
Originally Posted by
fairchild
I have solved the compression / decompression problem, also working on some other small fixes. New release soon.
THANK YOU lol, I have been up all night waiting for you to post again :P I can't wait to sink my teeth into this game :)
-
Re: Dungeon Defenders Compression Toolkit
Quote:
Originally Posted by
fairchild
I have solved the compression / decompression problem, also working on some other small fixes. New release soon.
Thanks. Definitely going to be using this tool a ton.
Quote:
Originally Posted by
Idlehands88
THANK YOU lol, I have been up all night waiting for you to post again :P I can't wait to sink my teeth into this game :)
I went to sleep 'cause I was dead tired, but I've been waiting since I woke up.
-
Re: Dungeon Defenders Compression Toolkit
Quote:
Originally Posted by
godslam
I went to sleep 'cause I was dead tired, but I've been waiting since I woke up.
Man just seeing fairchild sitting in this topic is making me refresh the page lol (already refreshed this and page 1 like 80 times lol)
EDIT:
My Editor Preview:
http://img442.imageshack.us/img442/7...erseditorp.jpg
-
Re: Dungeon Defenders Compression Toolkit
Updated the tool, still 4 bytes that differs when recompressing decompressed data,but else everything looks good, can someone decompress then recompress and reinject a savegame and see if it still freezes? then test by modding a savegame and se if that works?
-
Re: Dungeon Defenders Compression Toolkit
Quote:
Originally Posted by
fairchild
Updated the tool, still 4 bytes that differs when recompressing decompressed data,but else everything looks good, can someone decompress then recompress and reinject a savegame and see if it still freezes? then test by modding a savegame and se if that works?
It works !!!!!!! I just modded my character to level 70 and made my weapon have 100 upgrade slots :) Thank you fairchild!
-
Re: Dungeon Defenders Compression Toolkit
-
Re: Dungeon Defenders Compression Toolkit
It's telling me that it can't open the "output" while decompressing.
Quote:
Originally Posted by
Idlehands88
It works !!!!!!! I just modded my character to level 70 and made my weapon have 100 upgrade slots :) Thank you fairchild!
Did you have any trouble decompressing?
-
Re: Dungeon Defenders Compression Toolkit
Quote:
Originally Posted by
godslam
It's telling me that it can't open the "output" while decompressing.
Did you have any trouble decompressing?
Works fine for me. Thanks a lot for this Fairchild. Can't wait for your editor Idlehands88. I modded Mana to 99mil but it reset to 15mil after saving and reloading. I edited level to 70 and spent points, then I edited character stats, but when I loaded character it had reset to level 0 and I had to re-spend points. Maybe its checking for stats changes. Is there somewhere else they need editing?
-
Re: Dungeon Defenders Compression Toolkit
Quote:
Originally Posted by
Skullkeeper
Works fine for me. Thanks a lot for this Fairchild. Can't wait for your editor Idlehands88. I modded Mana to 99mil but it reset to 15mil after saving and reloading. I edited level to 70 and spent points, then I edited character stats, but when I loaded character it had reset to level 0 and I had to re-spend points. Maybe its checking for stats changes. Is there somewhere else they need editing?
They have a check on the save, if you have more points in your stats then what is normal for your level then the stats reset.
-
Re: Dungeon Defenders Compression Toolkit
Quote:
Originally Posted by
Idlehands88
They have a check on the save, if you have more points in your stats then what is normal for your level then the stats reset.
Thanks for the answer. I figured as much when I was leveling up my character one of the stats stopped at 70. I had edited it to 99. Is the max for each stat 70?
Just tried 70 for each stat and it reset my level. Is is it possible to edit stats to their max? And will you be including it in your editor? If it messes with online I can understand if you want be including it.
-
Re: Dungeon Defenders Compression Toolkit
Hey , don't know why but when I'm trying to run this program it appear for a second then it disappear. I'm using windows 7 tried to run as administrator
-
Re: Dungeon Defenders Compression Toolkit
Quote:
Originally Posted by
Luisek49
Hey , don't know why but when I'm trying to run this program it appear for a second then it disappear. I'm using windows 7 tried to run as administrator
Are you running command prompt under administrator then running this program under command prompt?
-
Re: Dungeon Defenders Compression Toolkit
umm no I tried to run this from dd.exe , How tu run it from command prompt what command I need to use? Sry but I'm not good with command prompt
-
Re: Dungeon Defenders Compression Toolkit
could someone post a dummy guide for hexing this game please. I have done everything as far as the decompression I got that, but I am still newb on hex. I never know how to find the values i'm trying to change. I got lucky with dark souls because someone posted a bookmark that highlighted most everything that I would want to edit. Thanks in advance.
-
Re: Dungeon Defenders Compression Toolkit
Quote:
Originally Posted by
Luisek49
umm no I tried to run this from dd.exe , How tu run it from command prompt what command I need to use? Sry but I'm not good with command prompt
Ok make a new folder on root of your c: drive. We will call it TEST. Copy the program to this folder. Now extract DunDefHeroes.dun from the DunDefSave container file. Put this file in TEST folder. Now run command prompt. Now type cd c:\TEST Now use these command to decompress and compress your save. Edit to your liking.
Decompress
in command prompt type dd.exe -d DunDefHeroes.dun save.decompressed
Edit the save.decompressed in Hex editor.
Compress
in command prompt type dd.exe -c save.decompressed DunDefHeroes.dun
Then inject DunDefHeroes.dun into DunDefSave container. Open in hashblock calculator and click tool calculate hash blocks. Transfer back to usb/hdd.
-
Re: Dungeon Defenders Compression Toolkit
Exile post up some mapping for the items, was looking over em but had no idea how you located the variables for specifics within an item, I could only find the location of them.
-
Re: Dungeon Defenders Compression Toolkit
Yea please map the stat locations, such as char level, mana, and item statistics. I have a feeling you can mod items really high, so if you can find those values, then we might see some really strong weapons going around.
-
Re: Dungeon Defenders Compression Toolkit
I'm having trouble modding specific stats on items. Not sure where they are stored. Adding levels and taking away what their current level is, is easy.