How to edit savgame file

For topics that do not fit in another sub-forum.

Moderators: Oberlus, Oberlus

Post Reply
Message
Author
husky0001
Space Krill
Posts: 3
Joined: Thu Apr 21, 2016 2:48 pm

How to edit savgame file

#1 Post by husky0001 » Thu Apr 21, 2016 3:15 pm

Maybe there is an answer already here, but I could not find it.

So how to edit a sav file? When I open in Notepad++ i just get lot of hieroglyphs and nulnulnul i such characters. What software(s)/tool(s) is/are needed to see savegame data as something "normal" and to change it?

Reason why I ask is because AI is cheating and I need some edge. I really don't have anything against really strong AI, but here is just plain cheating. After lots of games that reached up to about 300 turns, and one AI always have 3 times more ships than me (others are not the problem), I really got tired and started small game with just 10 systems and just one AI.

This AI starts with just one ship, that looks exactly like mine (MARK I), and kills my fleets that are several time bigger. I have to produce 4 Mark I to kill its 1. This is just plain stupid ratio.

User avatar
MatGB
Creative Contributor
Posts: 3310
Joined: Fri Jun 28, 2013 11:45 pm

Re: How to edit savgame file

#2 Post by MatGB » Thu Apr 21, 2016 6:14 pm

The AI does not, and cannot, cheat, it is given zero advantages over you other than occasional random chance better early system grabs(1). That's a deliberate design goal of the game, if you're sure it's otherwise it's a bug, and we need savegames and evidence.

However...

I've never tried this, but if you tell your game to save games in XML format and not Binary format (in Options), then it'll create larger, human readable save files.

One observation: check that the AI in question isn't starting as an Eaxaw species, or using Mu Ursh to build its ships. And that you're not using Gysache or similar to build yours. What you describe in the combat should not be happening, on the other hand you're playing with an older version (Mark 1s were renamed Frigates since the last official Release) and there may have been a previously unreported glitch.

When you're done with your current game, download the most recent Test version, it's stable enough and has had a lot of changes including improved introductory/help stuff.



(1): By this I mean that it's always possible one player starts with a better selection of nearby planets to colonise and/or nearby natives that are more useful, but this shouldn't be game breakingly out of kilter.
Mat Bowles

Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.

defaultuser
Vacuum Dragon
Posts: 605
Joined: Wed Aug 26, 2015 6:15 pm

Re: How to edit savgame file

#3 Post by defaultuser » Thu Apr 21, 2016 7:46 pm

I would suggest that you post a save file from a game that demonstrates the combat result you are seeing, and the version of course, then people could take a look and explain it. As Mat notes, the AIs don't have cheat boosts (the lazy way to improve AIs).

As far as an AI having more resources, you're probably just getting outplayed. In particular, new players often waste resources building poor warships before they are needed rather than developing their area. That's also a problem I tend to see with "Maniacal" AIs. It sometime annoys me when I take over their area and see good colonizable worlds that weren't developed because they were trying to attack others.

husky0001
Space Krill
Posts: 3
Joined: Thu Apr 21, 2016 2:48 pm

Re: How to edit savgame file

#4 Post by husky0001 » Sun Apr 24, 2016 5:00 pm

I'm playing v0.4.3-6281. There is no option to save as xml, or any other option. After I updated to 4.5 there is option for that.

Here is sav file just before battle. It is 5th turn from the begining. I have one Mark I as human, enemy, Eaxaw, have 3 Mark 4 ships. There is apsolutely no way that I can reach that kind of fleet in 5 turns.
Attachments

[The extension sav has been deactivated and can no longer be displayed.]


husky0001
Space Krill
Posts: 3
Joined: Thu Apr 21, 2016 2:48 pm

Re: How to edit savgame file

#5 Post by husky0001 » Sun Apr 24, 2016 5:15 pm

Here is another example. Again I am human, turn 19 and have 4 Mark 1 ships right next to enemy system. Enemy, gysache, has 1 Mark 1 and 1 Colony.

I attack and after 2 turn, my fleet is destroyed completely. If ratio was reversed my Mark 1 certainly can't kill 4 Mark 1's from enemy.
Attachments

[The extension sav has been deactivated and can no longer be displayed.]


User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 12374
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: How to edit savgame file

#6 Post by Geoff the Medio » Sun Apr 24, 2016 5:57 pm

v0.4.3 is two and a half years old... whatever issues it had with balance are probably very out-of-date, and not really worth investigating. Update to a newer build.

If the combat result is in v0.4.5, can you post a screenshot of the combat report event log? Accessed by clicking the link in the sitrep line about the combat, then going to the log tab. If it's v0.4.3, then, as above, you'll really need to update to get any meaningful support...
Attachments
combat_log.png
combat log from sitrep link
combat_log.png (86.38 KiB) Viewed 1085 times

User avatar
Bromstarzan
Dyson Forest
Posts: 203
Joined: Sun Feb 28, 2016 9:56 pm
Location: Sweden

Re: How to edit savgame file

#7 Post by Bromstarzan » Sun Apr 24, 2016 7:25 pm

Perhaps you're taken out by the combined forces of the enemy's system shields/defences + warships (if you attack them at their homeworld etc.)? Hard to say unless you provide the combat log as Geoff suggested.
| i7 2600K quad@3.40Ghz | GTX 560 Ti | RAM: 16GB | PSU: 750w | W7 x64 | LG1680x1050+Acer 1280x1024 |

User avatar
Vezzra
Release Manager, Design
Posts: 4892
Joined: Wed Nov 16, 2011 12:56 pm
Location: Sol III

Re: How to edit savgame file

#8 Post by Vezzra » Sun Apr 24, 2016 7:51 pm

Well, he provided two savegames, so it should be possible to take a look ourselves. @husky0001, which version/build exactly did you use for those games? The 0.4.5 stable release, a recent test build, or 0.4.3?

User avatar
MatGB
Creative Contributor
Posts: 3310
Joined: Fri Jun 28, 2013 11:45 pm

Re: How to edit savgame file

#9 Post by MatGB » Sun Apr 24, 2016 7:54 pm

Ah, no.

In 0.4.3, Eaxaw didn't get the weapons bonus, instead they started the game with lasers unlocked and an additional laser armed warship. That was stupidly powerful, but it wasn't an AI cheat, it was something any Eaxaw player could get.

We changed it for a reason and the current system is much more balanced.

Regarding the second save, 4 Mark 1 ships have been built. That's back in teh days before weapon refinements, ergo that's 3 ships that were already obsolete before they were finished.

0.4.3 also predates the combat changes, the outnumbering player always had an advantage, but planetary defences and similar could deal with an attacking fleet really easily, IIRC M1s back then didn't even have armour so that's a ship per turn destroyed by the defences.

All of which is to say: they were known balance bugs that were removed from the game 2 years ago and are no longer relevent (worth noting that some Linux distros may still be on 0.4.3 in their repos, for some reason 0.4.4 never got picked up at all and not all have switched to 0.4.5 yet).
Mat Bowles

Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.

LienRag
Space Krill
Posts: 2
Joined: Fri May 17, 2019 5:03 pm

Re: How to edit savgame file

#10 Post by LienRag » Fri May 17, 2019 5:33 pm

I like the idea of "Space Monsters" and want to add a few nests to a seed-generated game I've played (probably a Snowlake nest near my starting planet and a Kraken nest farther) so I tried to open the saved game as explained here after verifying that the "create binary saves" was unchecked. I do see some XML but most of the file is under a "compressed" XML tag and unreadable.

Is there a way to uncompress and modify it? Or is there a better way to edit a galactic map?

Ophiuchus
Programmer
Posts: 780
Joined: Tue Sep 30, 2014 10:01 am
Location: Wall IV

Re: How to edit savgame file

#11 Post by Ophiuchus » Fri May 17, 2019 8:32 pm

LienRag wrote:
Fri May 17, 2019 5:33 pm
Is there a way to uncompress and modify it? Or is there a better way to edit a galactic map?
I think there is no better way. There is an option for non-binary save files. Load your game, change the setting and save again. Good luck
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.

Furthermore, I propse... we should default to four combat rounds instead of three ...for the good of playerkind.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 12374
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: How to edit savgame file

#12 Post by Geoff the Medio » Sun May 19, 2019 7:47 pm

At least if you update to a newer version, there is also an option to enable/disable compression for XML saves.
xml_compression_option.png
option to enable / disable xml compression in save file
xml_compression_option.png (69.83 KiB) Viewed 6 times

Post Reply