The Witcher 2

File information

Last updated

Original upload

Created by

Yovaneth

Uploaded by

Yovaneth

Virus scan

Safe to use

Tags for this mod

About this mod

Corrects a problem with decompressing gamesaves.

Permissions and credits
Looking at the code for Gibbed.RED.Unpack I've come to the conclusion that rather than a bug, Rick never intended Gibbed.RED.Unpack to deal with Witcher 2 gamesaves. Consequently, any attempt to decompress a gamesave without an output path resulted in the original gamesave being overwritten with the decompressed version. If you added an output path then the decompressed gamesave was allocated to the Great Bitbucket In The Sky and it's a bit difficult to read that.

So, this is not a bugfix but an extension of the original Gibbed.RED.Unpack routine. I have not corrected the GBITS output path problem because I wanted to make minimal changes to Rick's original code. What I have done is to check for the type of file being unpacked and if it's identified as a gamesave, it is decompressed to a folder local to the original file i.e.

\My Documents\Witcher 2\gamesaves\AutoSave_0013.sav

will be decompressed to

\My Documents\Witcher 2\gamesaves\Autosave_0013\AutoSave_0013.sav

or if you move a gamesave to e.g.

\Documents\Witcher2Tools\Gibbed.RED.Unpack

it will be decompressed to

\Documents\Witcher2Tools\Gibbed.RED.Unpack\<gamesave_name>\<gamesave_name>.sav<br><br>This should work from both drag'n'drop and also the command line.<br><br>With apologies to those that can read: THIS DOES NOT WORK FROM THE COMMAND LINE IF YOU ADD AN OUTPUT PATH. DO NOT ADD AN OUTPUT PATH IF USING THE COMMAND LINE.<br><br>For users, back up your existing Gibbed.RED.Unpack.exe and then overwrite Gibbed.RED.Unpack.exe with the enclosed version.<br><br>For programmers, the changed source code is also included in the archive. Go to <installation path>\Witcher2Tools\Gibbed.RED.Unpack and back up the original program.cs file, then copy in the new one.<br><br>-Y-</installation></gamesave_name></gamesave_name>