XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Fri Aug 18, 2017 11:36 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Witcher 3 save files
PostPosted: Sun Oct 18, 2015 9:36 pm 
Offline
ultra-n00b

Joined: Sat Oct 11, 2014 12:32 am
Posts: 6
Has thanked: 0 time
Have thanks: 2 times














You can make the ads go away by registering

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.

Top
 Profile  
 
 Post subject: Re: Witcher 3 save files
PostPosted: Wed Oct 28, 2015 5:10 pm 
Offline
ultra-n00b

Joined: Sun Sep 21, 2014 9:38 pm
Posts: 8
Has thanked: 0 time
Have thanks: 2 times
The internal files seems to be compressed, I cannot see a checksum.


Top
 Profile  
 
 Post subject: Re: Witcher 3 save files
PostPosted: Sat Oct 31, 2015 10:51 pm 
Offline
ultra-n00b

Joined: Sat Oct 11, 2014 12:32 am
Posts: 6
Has thanked: 0 time
Have thanks: 2 times
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:
Image


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: Witcher 3 save files
PostPosted: Sun Nov 01, 2015 1:44 am 
Offline
ultra-n00b

Joined: Sun Sep 21, 2014 9:38 pm
Posts: 8
Has thanked: 0 time
Have thanks: 2 times
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:
Image


I was assuming that it was using LZO1X, but if it works, good job!


Top
 Profile  
 
 Post subject: Re: Witcher 3 save files
PostPosted: Sun Nov 01, 2015 10:05 am 
Offline
ultra-n00b

Joined: Sat Oct 11, 2014 12:32 am
Posts: 6
Has thanked: 0 time
Have thanks: 2 times
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


Top
 Profile  
 
 Post subject: Re: Witcher 3 save files
PostPosted: Thu Nov 12, 2015 8:53 pm 
Offline
ultra-n00b

Joined: Sat Oct 11, 2014 12:32 am
Posts: 6
Has thanked: 0 time
Have thanks: 2 times
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?


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: Witcher 3 save files
PostPosted: Sat Jan 02, 2016 4:55 pm 
Offline
advanced

Joined: Sun Aug 28, 2011 4:47 pm
Posts: 47
Has thanked: 22 times
Have thanks: 3 times
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-Save-Editor/tree/master/SaveFormat
https://github.com/yole/Gibbed.RED/tree/master/Gibbed.RED.FileFormats/Save

Witcher 3 (unpacking seems to work too)
https://github.com/Atvaark/W3SavegameEditor


Best of luck, I hope more people join this effort.


Top
 Profile  
 
 Post subject: Re: Witcher 3 save files
PostPosted: Mon Jun 20, 2016 7:34 pm 
Offline
ultra-n00b

Joined: Mon Jun 13, 2016 9:21 am
Posts: 1
Has thanked: 0 time
Have thanks: 0 time
So, whazzup, folks?
Is there any solution for Witcher 3?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group