View Issue Details

IDProjectCategoryLast Update
0023170AI War 2Crash/ExceptionApr 28, 2020 10:24 am
ReporterArc-3N-4B Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version2.031 Faction Color Choice 
Fixed in Version2.032 Savegame Hotfix 
Summary0023170: Game saved immediately prior to update will not load.
DescriptionSummary describes it - instead of loading the game, which was stopped and saved via Save and Exit immediately prior to updating [update hit mid-playthrough], it gives an exception and does not load. The autosave additionally does not load. All saves and debug log attached.
TagsNo tags attached.

Relationships

related to 0023171 resolvedChris_McElligottPark Game won't load save file - Steam 

Activities

Arc-3N-4B

Apr 27, 2020 9:49 pm

reporter  

ArcenDebugLog.txt (459,037 bytes)
1.save (559,892 bytes)
1.savemet (95 bytes)
Autosave.1800.save (550,556 bytes)

BadgerBadger

Apr 27, 2020 10:17 pm

manager   ~0056949

Last edited: Apr 27, 2020 10:18 pm

This is a save game from the beta, right?

The error is

4/27/2020 7:53:47 PM Planet deserialization error at stage 15000, error: System.FormatException: string length expected was: 37708
  at Arcen.Universal.ArcenDeserializationBuffer.ReadString () [0x000ea] in <caafb75a2d1e45a6a812e75cd43349f5>:0
  at Arcen.Universal.ArcenExternalData.DeserializeFrom (System.Object ParentObject, Arcen.Universal.ArcenDeserializationBuffer Buffer) [0x0000b] in <caafb75a2d1e45a6a812e75cd43349f5>:0
  at Arcen.Universal.ArcenExternalDataLookup.DeserializeFrom (System.Object ParentObject, Arcen.Universal.ArcenDeserializationBuffer Buffer) [0x00017] in <caafb75a2d1e45a6a812e75cd43349f5>:0
  at Arcen.AIW2.Core.Planet.DeserializeFrom (Arcen.AIW2.Core.Galaxy ForGalaxy, Arcen.Universal.ArcenDeserializationBuffer Buffer, System.Boolean LoadAsTemplate, System.Boolean HideErrors) [0x00693] in <3d12868c9e714c15b9b92f7966309c05>:0

Chris, for serialization, there are a bunch of changes to save games in DLC2 because I'm not trying to be save compatible there yet (I'm planning on starting to do that once I have the core of the Dark Zenith serialization fields figured out).

The changes I'm worried about from my end are a change in the Galaxy serialization (a new boolean field, "NewPlanetsSpawned") and this change on the Planet object

              public static Planet DeserializeFrom( Galaxy ForGalaxy, ArcenDeserializationBuffer Buffer, bool LoadAsTemplate, bool HideErrors )

....
                if ( Buffer.FromGameVersion.GetGreaterThanOrEqualTo( 2, 031 ) ) <=== this is the only change in this code path
                    result.OverrideScienceAmount = Buffer.ReadInt32(); ....

                debugStage = 15000;
                result.ExternalData.DeserializeFrom( result, Buffer );

A bit of debug testing suggests that this happens for the very first planet (in Autosave.1800, this is "Clinda")

I did try some old save games, but I didn't try a super recent one.

Arc-3N-4B

Apr 27, 2020 10:32 pm

reporter   ~0056950

I am currently opted out of all beta programs on Steam. I saw an update had hit, so I saved my game, exited, let Steam update, and tried to reload, running into this planet deserialization error.

BadgerBadger

Apr 28, 2020 12:09 am

manager   ~0056951

Last edited: Apr 28, 2020 12:11 am

So potentially any changes during the beta could have been the problem, not just the most recent patch (as I was worried about in my previous comment). That's very helpful.

Chris, I've thrown this one at you for now. If you're super busy then I can take a look at it tomorrow evening.

Chris_McElligottPark

Apr 28, 2020 10:11 am

administrator   ~0056952

I'll see what I can see -- thanks.

Chris_McElligottPark

Apr 28, 2020 10:24 am

administrator   ~0056955

Thank you! Sorry about this.

* When a savegame fails to deserialize, it now mentions what version it was serialized as, and what it's trying to deserialize into. This takes some guesswork out on our part.

* Fixed a bug where savegames made in 2.026 could not be loaded in 2.031. A few weeks ago we had some internal confusion over version numbering that led to this. The fix will make all mainline 2.026 savegames function again, and anything saved in 2.025 or prior was already fine.
** It's possible that a very few savegames from the beta branch that were saved in an "alternate timeline" sort of 2.026 will now fail to load, but there should be a handful of those at most, and mostly in the hands of our developers or most-core testers. And for most of them, their saves were already on 2.029, which again would not have been affected previously or now.

Issue History

Date Modified Username Field Change
Apr 27, 2020 9:49 pm Arc-3N-4B New Issue
Apr 27, 2020 9:49 pm Arc-3N-4B File Added: ArcenDebugLog.txt
Apr 27, 2020 9:49 pm Arc-3N-4B File Added: 1.save
Apr 27, 2020 9:49 pm Arc-3N-4B File Added: 1.savemet
Apr 27, 2020 9:49 pm Arc-3N-4B File Added: Autosave.1800.save
Apr 27, 2020 9:49 pm Arc-3N-4B File Added: Autosave.1800.savemet
Apr 27, 2020 10:17 pm BadgerBadger Note Added: 0056949
Apr 27, 2020 10:18 pm BadgerBadger Note Edited: 0056949
Apr 27, 2020 10:32 pm Arc-3N-4B Note Added: 0056950
Apr 28, 2020 12:09 am BadgerBadger Note Added: 0056951
Apr 28, 2020 12:10 am BadgerBadger Assigned To => Chris_McElligottPark
Apr 28, 2020 12:10 am BadgerBadger Status new => assigned
Apr 28, 2020 12:10 am BadgerBadger Note Edited: 0056951
Apr 28, 2020 12:11 am BadgerBadger Note Edited: 0056951
Apr 28, 2020 10:11 am Chris_McElligottPark Note Added: 0056952
Apr 28, 2020 10:12 am BadgerBadger Relationship added related to 0023171
Apr 28, 2020 10:24 am Chris_McElligottPark Status assigned => resolved
Apr 28, 2020 10:24 am Chris_McElligottPark Resolution open => fixed
Apr 28, 2020 10:24 am Chris_McElligottPark Fixed in Version => 2.032 Savegame Hotfix
Apr 28, 2020 10:24 am Chris_McElligottPark Note Added: 0056955