Thank you!
For easy reference, here are the steps to fix your soldiers if you're playing a saved game from a time before when the new weight system was implemented. I assume your saved game is slot0.savx and that you have no slot1.savx (or that if you do have a slot1.savx you can overwrite it):
- Go to your save-game dir:
cd ~/.ufoai/2.5-dev/base/save
- You need to extract the XML from the binary save-game file:
~/ufoai/src/tools/savegametool.pl -x slot0.savx slot1.xml
- The XML file is badly formatted and unreadable. You can easily reformat it nicely using tidy. The problem is that the save-game file starts with a 180-byte-long binary header which tidy will discard, so you will need to prepend it back into the file once you're done working on it. For now, make the XML readable, so run:
tidy -xml -w 0 slot1.xml > slot1.tidy.xml
- Open slot1.tidy.xml in a text editor and find the soldier section:
<employees type="soldier">
- Each soldier is stored in that section. Add about 15 to the initial value for each soldier in a line that looks like this for experienced soldiers:
<skill type="power" initial="23" experience="4572" improve="9" />
or like this for new soldiers:
<skill type="power" initial="23" />
Save the file, overwriting slot1.tidy.xml
- Now you have to add back the binary header:
head -c180 slot1.xml > slot1.savx
cat slot1.tidy.xml >> slot1.savx
- Remove the trash
rm -v *.xml
Be realistic with the strength values to keep the game challenging and fun.