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)