I am trying to unpack and pack a Witcher 3 savefile, which is a archive containing multiple files.
Unpacking works pretty well, but with packing I have problems, because there seems to be a checksum which needs to be recalculated.
I tried several different algorithms, like adler and crc, but I just can't figure it out.
Maybe someone knows more about it?
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
Witcher 3 save files
-
- ultra-n00b
- Posts: 6
- Joined: Sat Oct 11, 2014 12:32 am
- Been thanked: 2 times
Witcher 3 save files
Last edited by Harime Nui on Sat Oct 31, 2015 11:30 pm, edited 1 time in total.
-
- ultra-n00b
- Posts: 6
- Joined: Sat Oct 11, 2014 12:32 am
- Been thanked: 2 times
Re: Witcher 3 save files
Yes, my assumption with the checksum was wrong, it is just the file length in byte of the uncompressed file. It is also not an archive which holds multiple files, but it is one file which gets split into 1048576 byte long parts. Every part then gets compressed with lz4 (https://code.google.com/p/lz4/).
I was actually able to "unpack" and "pack" a savefile, but i was not able to change much jet, the game breaks very easy: Edit:
Here is a image how the header of the savefile looks like:
I was actually able to "unpack" and "pack" a savefile, but i was not able to change much jet, the game breaks very easy: Edit:
Here is a image how the header of the savefile looks like:
You do not have the required permissions to view the files attached to this post.
Re: Witcher 3 save files
I was assuming that it was using LZO1X, but if it works, good job!Harime Nui wrote:Yes, my assumption with the checksum was wrong, it is just the file length in byte of the uncompressed file. It is also not an archive which holds multiple files, but it is one file which gets split into 1048576 byte long parts. Every part then gets compressed with lz4 (https://code.google.com/p/lz4/).
I was actually able to "unpack" and "pack" a savefile, but i was not able to change much jet, the game breaks very easy: Edit:
Here is a image how the header of the savefile looks like:
-
- ultra-n00b
- Posts: 6
- Joined: Sat Oct 11, 2014 12:32 am
- Been thanked: 2 times
Re: Witcher 3 save files
I just used this https://github.com/Cyan4973/lz4/releases/tag/r131 library on every part for uncompressing and compressing on default settings, and it worked without any problems. As far as I can see it calls itself LZ4, but there are so many of them it could be a modified version of LZO1X.RedEyeX32 wrote:I was assuming that it was using LZO1X, but if it works, good job!
I think on it's base it is called Lempel-Ziv-Welch Compression: https://www.youtube.com/watch?v=Jqc418tQDkg
-
- ultra-n00b
- Posts: 6
- Joined: Sat Oct 11, 2014 12:32 am
- Been thanked: 2 times
Re: Witcher 3 save files
Still trying to figure out the save file itself. To me it looks like some kind of binary XML file?
Maybe someone knows in which file format they are saved?
Maybe someone knows in which file format they are saved?
You do not have the required permissions to view the files attached to this post.
-
- advanced
- Posts: 50
- Joined: Sun Aug 28, 2011 4:47 pm
- Has thanked: 28 times
- Been thanked: 4 times
Re: Witcher 3 save files
Nice work Harime Nui.
Although I don't really bring anything interesting and useful to the subject, I'm pretty anxious to see a working save editor.
Unfortunately we didn't see that with TW2, in fact I think that only the XBox360 community seems to have gotten a working editor for TW2, albeit very primitive in that it only allowed to change Money, XP, Upgrade Points, Level.
Anyway, I Googled for a little bit in hope of finding something that might be useful from past projects which never really made it.
I know that the probability of any of this information being useful is close to zero but nonetheless...
Witcher 1 (I know, didn't use REDEngine anyway):
http://witcher.wikia.com/wiki/KEY_BIF_V1.1_format
http://witcher.wikia.com/wiki/TheWitcherSave_format
Witcher 2
https://github.com/13xforever/Witcher-2 ... SaveFormat
https://github.com/yole/Gibbed.RED/tree ... rmats/Save
Witcher 3 (unpacking seems to work too)
https://github.com/Atvaark/W3SavegameEditor
Best of luck, I hope more people join this effort.
Although I don't really bring anything interesting and useful to the subject, I'm pretty anxious to see a working save editor.
Unfortunately we didn't see that with TW2, in fact I think that only the XBox360 community seems to have gotten a working editor for TW2, albeit very primitive in that it only allowed to change Money, XP, Upgrade Points, Level.
Anyway, I Googled for a little bit in hope of finding something that might be useful from past projects which never really made it.
I know that the probability of any of this information being useful is close to zero but nonetheless...
Witcher 1 (I know, didn't use REDEngine anyway):
http://witcher.wikia.com/wiki/KEY_BIF_V1.1_format
http://witcher.wikia.com/wiki/TheWitcherSave_format
Witcher 2
https://github.com/13xforever/Witcher-2 ... SaveFormat
https://github.com/yole/Gibbed.RED/tree ... rmats/Save
Witcher 3 (unpacking seems to work too)
https://github.com/Atvaark/W3SavegameEditor
Best of luck, I hope more people join this effort.