READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

Witcher 3 save files

Want to beat the game a cheater? Figure out Savegame file formats here.
Post Reply
Harime Nui
ultra-n00b
Posts: 6
Joined: Sat Oct 11, 2014 12:32 am
Been thanked: 2 times

Witcher 3 save files

Post by Harime Nui » Sun Oct 18, 2015 9:36 pm

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?
Last edited by Harime Nui on Sat Oct 31, 2015 11:30 pm, edited 1 time in total.

RedEyeX32
ultra-n00b
Posts: 8
Joined: Sun Sep 21, 2014 9:38 pm
Been thanked: 2 times

Re: Witcher 3 save files

Post by RedEyeX32 » Wed Oct 28, 2015 5:10 pm

The internal files seems to be compressed, I cannot see a checksum.

Harime Nui
ultra-n00b
Posts: 6
Joined: Sat Oct 11, 2014 12:32 am
Been thanked: 2 times

Re: Witcher 3 save files

Post by Harime Nui » Sat Oct 31, 2015 10:51 pm

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:
game_breaks.jpg
Edit:
Here is a image how the header of the savefile looks like:
Image
You do not have the required permissions to view the files attached to this post.

RedEyeX32
ultra-n00b
Posts: 8
Joined: Sun Sep 21, 2014 9:38 pm
Been thanked: 2 times

Re: Witcher 3 save files

Post by RedEyeX32 » Sun Nov 01, 2015 1:44 am

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:
game_breaks.jpg
Edit:
Here is a image how the header of the savefile looks like:
Image
I was assuming that it was using LZO1X, but if it works, good job!

Harime Nui
ultra-n00b
Posts: 6
Joined: Sat Oct 11, 2014 12:32 am
Been thanked: 2 times

Re: Witcher 3 save files

Post by Harime Nui » Sun Nov 01, 2015 10:05 am

RedEyeX32 wrote:I was assuming that it was using LZO1X, but if it works, good job!
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.
I think on it's base it is called Lempel-Ziv-Welch Compression: https://www.youtube.com/watch?v=Jqc418tQDkg

Harime Nui
ultra-n00b
Posts: 6
Joined: Sat Oct 11, 2014 12:32 am
Been thanked: 2 times

Re: Witcher 3 save files

Post by Harime Nui » Thu Nov 12, 2015 8:53 pm

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?
You do not have the required permissions to view the files attached to this post.

ner0
advanced
Posts: 48
Joined: Sun Aug 28, 2011 4:47 pm
Has thanked: 24 times
Been thanked: 3 times

Re: Witcher 3 save files

Post by ner0 » Sat Jan 02, 2016 4:55 pm

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.

DanRom
ultra-n00b
Posts: 1
Joined: Mon Jun 13, 2016 9:21 am

Re: Witcher 3 save files

Post by DanRom » Mon Jun 20, 2016 7:34 pm

So, whazzup, folks?
Is there any solution for Witcher 3?

Post Reply