OpenXcom Forum

OpenXcom => Troubleshooting => Topic started by: BBHood217 on December 26, 2016, 02:56:41 am

Title: Cannot load battlescape saves
Post by: BBHood217 on December 26, 2016, 02:56:41 am
Ever since the latest nightly (2016-12-24), I've been unable to load any battlescape saves; it always crashes with a segmentation error whenever I try.  This happens both with mods (all I run is Area 51, though) and without mods.
Title: Re: Cannot load battlescape saves
Post by: Hobbes on December 26, 2016, 07:49:25 pm
Just checked and this issue happens even without any mods enabled, as I got the same error when tryin to load a save.
Title: Re: Cannot load battlescape saves
Post by: Solarius Scorch on December 26, 2016, 09:00:25 pm
Maybe it's an anti-save-scumming feature? :D
Title: Re: Cannot load battlescape saves
Post by: hellrazor on December 26, 2016, 09:02:05 pm
Line 508 and 509 in SaveBattleGame have the wrong scope.
They should be handled in the above "if", like in the old version.
This leads to the fact that the YAML node pointer is empty.
The pointer should only be emptied if there no mapsize bigger 0, indicating a battlescape save.

If this is right i do not know but _nodes.clear(), was before only called in the if statement.
Same goes for _mapDataSets.clear();

Edit: the forloop one line 504 also has wrong scope, being outside the above if.
Title: Re: Cannot load battlescape saves
Post by: Hobbes on December 26, 2016, 09:29:59 pm
Maybe it's an anti-save-scumming feature? :D

Why stop there?

*Bluescreen*

"You have savescummed for the last time. Formatting C:\ has just begun. Have a nice day"
Title: Re: Cannot load battlescape saves
Post by: SIMON BAILIE on December 26, 2016, 10:08:57 pm
I'm getting the same thing as well-see attached.
Title: Re: Cannot load battlescape saves
Post by: SupSuper on December 27, 2016, 01:41:48 am
Consider it a Christmas gift. ;)
Anyways it's fixed now, next time use the bug tracker so I actually get notified.