Scripts to edit save files.
perl.
On Linux can redirect stdio to output like below.
On Windows, if using PowerShell, have to direct it not to mess up your line endings.
Code: Select all
perl .\translate2.pl .\0_Slot4.gksave | Out-File hello.dat -Encoding ascii
perl .\untranslate.pl .\hello.dat | Out-File .\0_Slot4.gksave -Encoding oem
Usage like:
Backup your save first!
cp -v 0_Slot5.gksave 0_Slot5.gksave.bak
perl ./translate2.pl 0_Slot5.gksave > toedit.dat
Now edit the JSON in toedit.dat. Have to be careful editing JSON as syntax errors or (I think) un-sane values will cause a load failure.
perl ./untranslate.pl toedit.dat > 0_Slot5.gksave.edited
Now copy the last file above over your save if you dare. It worked for me editing number of prognosticars, servitors, and wound recovery times.
translate2.pl
old_https://pastebin.com/tZKb2K1T
Version works on Windows with ActiveState perl
[Link]
untranslate.pl
old_https://pastebin.com/D8ENuZjS
Version works on Windows with ActiveState perl
[Link]
Standard disclaimer: Not responsible for usage. You can see the source. Quick and dirty. In retrospect, I shouldn't have written this in perl.