Log in

View Full Version : [Release] Risen 2 - Compression Tool



JizzaBeez
07-14-2012, 06:53 AM
RISEN 2 - COMPRESSION TOOL
VERSION: 1.1.0.0
CREATED BY: JizzaBeez

.::HOW TO USE::.
1) Extract: "savegame.sav" from "Save#".
2) Decompress: Drag 'n' Drop "savegame.sav" onto application.
3) Edit: the decompressed file "savegame.sav.unzlib".
4) Compress: Drag 'n' Drop "savegame.sav.unzlib" onto the application.
5) Replace: "savegame.sav" in "Save#" then rehash and resign "Save#".

.::NOTE::.
-The program should determine what method to use when the file is dropped onto the application.
-Decompressed files end with ".unzlib".
-Compressed files end with ".zlib", or the original file's extension ".sav".

http://i662.photobucket.com/albums/uu345/JizzaBeez/Random Images/risen2compression.png

DOWNLOAD (http://www.360haven.com/forums/downloads.php?do=file&id=945)

Jappi88
07-14-2012, 07:30 AM
hmm..nicely done..wanted to make a tool for this game when i get home...but why dont u just make one ?

JizzaBeez
07-14-2012, 07:34 AM
hmm..nicely done..wanted to make a tool for this game when i get home...but why dont u just make one ?

Because I don't have the game nor any way to research. You can make the editor if you want. I included the Zlib dll that I used with it. I don't know if there is a checksum/hash or anything, all this tool does is compress/decompress.

Jappi88
07-14-2012, 07:45 AM
Because I don't have the game nor any way to research. You can make the editor if you want. I included the Zlib dll that I used with it. I don't know if there is a checksum/hash or anything, all this tool does is compress/decompress.

yeh , i made a tool for the first version of the game , a hash was used on the compressed data...not sure witch one it was :p

if u want i can give u a save with values and help u out whit your research (i have the game) so that u can make a tool... i dont have time for making a proper tool atm , but il gladly help u out.

Noctis Caelum
07-14-2012, 07:57 AM
very nice work

thegutta
07-14-2012, 08:25 AM
Very cool work Jizza :)

revsix6
07-14-2012, 01:55 PM
Excellent work on this, Jizza.

CloudStrife7x
07-14-2012, 05:30 PM
great work done on this tool Jizza :D

Serious_M
07-14-2012, 07:22 PM
nice work as always jizza

fairchild
07-17-2012, 10:45 AM
The checksum on the savegame is the last 0x20 bytes, and it's SHA-2 256bit of the compressed area (0x0 -> fileSize - 0x20).

JizzaBeez
07-18-2012, 01:30 PM
The checksum on the savegame is the last 0x20 bytes, and it's SHA-2 256bit of the compressed area (0x0 -> fileSize - 0x20).

Thanks dude, I guess I should've found that while brute forcing the data .... o.O

I have updated the tool and it now fixes the hash as well. Please re-download.

MBRKiNG
07-18-2012, 01:39 PM
The checksum on the savegame is the last 0x20 bytes, and it's SHA-2 256bit of the compressed area (0x0 -> fileSize - 0x20).

checksum god strikes again, excellent work Fairchild

stamate
07-25-2012, 11:56 AM
When i drag my save game the program is closing any suggestions ? Sorry i fixed my problem.

xICEMANx117
07-29-2012, 09:41 PM
So just a Question is there going to be a Save Editor for this game??

Excelsior
07-30-2012, 12:31 PM
So just a Question is there going to be a Save Editor for this game??I second this :p
Here's 3-4 game datas of the game:
http://www.mediafire.com/?dsxrra31sp122vh

Later I'll check the stats they have. What would be really useful is a tool to edit the Gold (money) and the Glory (exp points). The rest can wait =p

Fenix66d
07-30-2012, 04:37 PM
Ah, yes. JizzaBeez and Jappi88 are at it again. Looking foward to this game and a "save game" editor would surely be welcome!

Excelsior
07-30-2012, 10:16 PM
So, in the previous folder there are four files. Save0 is the auto-save, and it's almost the same as Save3 which is a manual save. There are 41 Gold, 85/100 Blood and 1145 Glory in both.
In Save2 there are 410 Gold, 79/100 Blood and 685 Glory. In Save1 there are 410 Gold, 100/100 Blood, 610 Glory.
I know it's not much, but what the heck. Please do make a save editor, this game sucks too bad to be played without a way to speed up the level ups :p

Juancafr
08-01-2012, 12:46 PM
Do not like using this tool anyone can use it in my save?

http://www.mediafire.com/?2a602j8io205gaw

gamer4life1983
08-04-2012, 07:12 PM
possibly a stupid question but where does the decompressed save file go? the program just closes out when i drag and drop.

dippidip
08-04-2012, 09:15 PM
When i drag my save game the program is closing any suggestions ? Sorry i fixed my problem.

I have the same problem,Just when i drop my extracted savegame onto the decompression tool it just closes.
Dunno what's the problem,please help.

Thnx in advance,
dippidip.

CptJackRabbit
08-07-2012, 04:10 AM
Don't open the program... drag the .sav onto the .exe

dippidip
08-07-2012, 02:09 PM
Don't open the program... drag the .sav onto the .exe
Lol,didn't try that.
Thnx.

Ryner Lute: T.L.D.
08-07-2012, 09:02 PM
Good Job Jizzabeez you beat me to it. Made my own De-Compression tool/Compression tool. (I think it fixes checksum. don't know yet until the editor part is done and I test it.)

Edit: Checksum moves >.>

JizzaBeez
08-09-2012, 06:17 AM
Good Job Jizzabeez you beat me to it. Made my own De-Compression tool/Compression tool. (I think it fixes checksum. don't know yet until the editor part is done and I test it.)

Edit: Checksum moves >.>

The (de)compress and hash are separate. The last 32 bytes of the savedata is the SHA256 hash and the rest is the compressed data. So it doesn't matter if the compressed data's length changes or not because the hash is always appended to the end of the compressed data.

Ryner Lute: T.L.D.
08-09-2012, 02:55 PM
The (de)compress and hash are separate. The last 32 bytes of the savedata is the SHA256 hash and the rest is the compressed data. So it doesn't matter if the compressed data's length changes or not because the hash is always appended to the end of the compressed data.
thanks I didn't know that ^.^
that will help me for future editors as well.

x Revenge Inc x
08-09-2012, 04:32 PM
Hey dude, great tool, i can decompress just fine, but when i try to compress the file i get an error saying -

"An error has occurred: the specified cryptographic algorithm is not supported on this platform"

any ideas?

*Edit* My friend tested it and it worked fine on Vista, I'm on Windows XP 32 bit. No idea why it won't work on my pc =/

JizzaBeez
08-10-2012, 12:04 AM
Hey dude, great tool, i can decompress just fine, but when i try to compress the file i get an error saying -

"An error has occurred: the specified cryptographic algorithm is not supported on this platform"

any ideas?

*Edit* My friend tested it and it worked fine on Vista, I'm on Windows XP 32 bit. No idea why it won't work on my pc =/

Windows XP doesn't support something in the .Net Framework. There's nothing I can do about that, you have to work it out on your end.

feudalnate
08-10-2012, 12:18 AM
It seems only Windows XP SP3 and above supports the algorithm needed


Prior to Windows XP Service Pack 3, there was no SHA2 functionality within Windows XP. With the release of Service Pack 3 some limited functionality was added to the crypto module rsaenh.dll. This includes the following SHA hashes: SHA-256, SHA-384, SHA-512. SHA-224 was not included.


There's an open source library written by BouncyCastle (http://www.bouncycastle.org) that has many implementations of algorithms, compressions, streams and other cryptographic classes that are not reliant on the core services of the .NET libraries - BouncyCastle DLL (http://www.bouncycastle.org/csharp/download/bccrypto-net-1.7-bin.zip)



Imports Org.BouncyCastle.Crypto.Digests

Sub DoSHA256()
'32 byte output hash buffer and 100 byte buffer to process
Dim Hash(&H20 - 1), Buffer(100 - 1) As Byte
For i As Byte = 0 To Buffer.Length - 1 'Fill buffer with junk
Buffer(i) = i
Next
Dim SHA As New Sha256Digest() 'Init SHA2
SHA.BlockUpdate(Buffer, 0, Buffer.Length) 'Process junk buffer
SHA.DoFinal(Hash, 0) 'Finalize crypto, copy resulting hash to hash buffer (returns an int aswell, always 0x20)
End Sub

x Revenge Inc x
08-10-2012, 02:23 AM
Thanks for the help guys, been meaning to upgrade to windows 7 but never got around to it lol, cheers again.

JizzaBeez
08-10-2012, 02:38 AM
It seems only Windows XP SP3 and above supports the algorithm needed




There's an open source library written by BouncyCastle (http://www.bouncycastle.org) that has many implementations of algorithms, compressions, streams and other cryptographic classes that are not reliant on the core services of the .NET libraries - BouncyCastle DLL (http://www.bouncycastle.org/csharp/download/bccrypto-net-1.7-bin.zip)



Imports Org.BouncyCastle.Crypto.Digests

Sub DoSHA256()
'32 byte output hash buffer and 100 byte buffer to process
Dim Hash(&H20 - 1), Buffer(100 - 1) As Byte
For i As Byte = 0 To Buffer.Length - 1 'Fill buffer with junk
Buffer(i) = i
Next
Dim SHA As New Sha256Digest() 'Init SHA2
SHA.BlockUpdate(Buffer, 0, Buffer.Length) 'Process junk buffer
SHA.DoFinal(Hash, 0) 'Finalize crypto, copy resulting hash to hash buffer (returns an int aswell, always 0x20)
End Sub


Thanks for the info, I'll definitely give this a look.

Bug6666
08-26-2012, 02:47 PM
Thanks For This!!

thatloopydude
10-29-2012, 01:22 AM
Can't download this. Site say's I "Don't have permission to access this page" when I click the download button. Why don't it work for me? Fist time having a problem with this.

Edit

Spammed the download button, fixed it's self. Thanks for this.

shmool
01-25-2013, 09:56 PM
i have dowloaded the application yet when i drop the .save file it just closes the window, what should i do.. help!!!!!

FFJugador
07-19-2013, 12:30 AM
thanks for this file.