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 :)