View Issue Details

IDProjectCategoryLast Update
0024877AI War 2Crash/ExceptionMay 14, 2021 10:11 am
ReporterVaos Assigned ToNRSirLimbo  
Status resolvedResolutionfixed 
Product Version2.904 Dragon Hotifx 
Fixed in Version2.909 The Hunt Intensifies 
Summary0024877: Save File Unloadable after Patch 2.904 - Civil War / Kaizer Marauders / SK Civilian / AMU
DescriptionHello,

Following the upgrade of the game to 2.904 today, my current save file cannot be launched. However, in the same campaign, older saves (from a few days ago max), can be loaded (starting from the save titled "4").
I'm not 100% sure, but the campaign was started on either 2.903 or 2.902.

I'm using the following mods :
- Kaizer Marauders
- SK Civilian Industry
- AMU

Here is attached my save folder regarding this campaign and the error message showing when I try to load the save.
Thanks for the great game and for the work regarding this issue.

Best Regards,
Vaos
TagsNo tags attached.

Activities

Vaos

May 11, 2021 1:21 pm

reporter  

CivilWar4.zip (6,314,107 bytes)

Vaos

May 11, 2021 7:12 pm

reporter   ~0061511

Actually reading the error note, it's clearly a 2.903 to 2.904 issue.

Chris_McElligottPark

May 11, 2021 9:33 pm

administrator   ~0061519

Huh -- it hit canary code, which is a good sign that maybe a faction has a serialization error. Since this is heavily modded and we're only hearing about this from one person, I'm going to guess it's one of the mods with an error in its serialization, or a compatibility change in there. Most of those are SirLimbo ones.

SirLimbo, turning on the deserialization log in debug should give you some info, if you're looking into it.

Vaos

May 13, 2021 5:19 pm

reporter   ~0061554

Hello, while running a new save with quite similar settings (Civil War, 4 AIs, Kaizer Marauders' Beacon destroyed, no Fallen Spire activated though) I had another crash happen while saving and restarting.
Something weird : I saved and restarted as I had one Fleet Transport not responding to any command (also no sounds while clicking to move).

Here's attached the save folder for the campaign, a screenshot of the error when trying to load the save, and the ArcenDebugLog.txt file.
CivilWarNewNice.zip (2,460,866 bytes)
ArcenDebugLog.txt (2,057,868 bytes)

Chris_McElligottPark

May 13, 2021 9:50 pm

administrator   ~0061556

Yep, this is a bug in that mod. I will pass it along to him:

SINGLEP Error in Marauder Planetary Deserialization exception at debug step 13300:
No DeserializeFrom_NewStyle defined for HistoryItemType Unknown /// PLEASE CONTACT -NR-SirLimbo#0021 on Discord or [email protected] and, if possible, include the ArcenDebugLog.txt file.
Any further info on reproduction of the error or prior errors is welcome.

This occurred in: HistoryItem DeserializeFrom_NewStyle(Arcen.Universal.ArcenDeserializationBuffer)

Full Stack Trace:
  at Arcen.AIW2.External.Fireteam+HistoryItem.DeserializeFrom_NewStyle (Arcen.Universal.ArcenDeserializationBuffer Buffer) [0x00176] in <b7009f9490c542eeafee316c7bd56423>:0
  at Arcen.AIW2.External.Fireteam.DeserializedIntoSelf (System.Int32 FireTeamID, Arcen.Universal.ArcenDeserializationBuffer Buffer, System.String ForDebugging_FactionName) [0x001b9] in <b7009f9490c542eeafee316c7bd56423>:0
  at KaizersMarauders.PlanetaryMarauderInfo.DeserializeFrom (Arcen.Universal.ArcenDeserializationBuffer from) [0x00226] in <d63526e83bcf4a0bab832c55336fc005>:0
5/13/2021 11:14:31 PM 2.905 SINGLEP Error at Modified Marauder Data Deserialization exception at debug step 21000:
No DeserializeFrom_NewStyle defined for HistoryItemType Unknown /// PLEASE CONTACT -NR-SirLimbo#0021 on Discord or [email protected] and, if possible, include the ArcenDebugLog.txt file.
Any further info on reproduction of the error or prior errors is welcome.

This occurred in: Void DeserializeFrom(Arcen.Universal.ArcenDeserializationBuffer)

Full Stack Trace:
  at KaizersMarauders.PlanetaryMarauderInfo.DeserializeFrom (Arcen.Universal.ArcenDeserializationBuffer from) [0x00251] in <d63526e83bcf4a0bab832c55336fc005>:0
  at KaizersMarauders.PlanetaryMarauderInfo..ctor (Arcen.Universal.ArcenDeserializationBuffer from, KaizersMarauders.ModifiedMarauderData data) [0x00117] in <d63526e83bcf4a0bab832c55336fc005>:0
  at KaizersMarauders.ModifiedMarauderData.DeserializeIntoSelf (Arcen.Universal.ArcenDeserializationBuffer from, Arcen.Universal.SerializationCommandType SerializationType) [0x0012a] in <d63526e83bcf4a0bab832c55336fc005>:0
5/13/2021 11:14:31 PM 2.905 SINGLEP Faction deserialization error at stage 17500 from serialized version 2.905 loading into new version 2.905, error: System.Exception: Canary code exception at EXTERNAL DATA - Faction (X). Code above it is the real problem.
  at Arcen.Universal.ArcenDeserializationBufferModern.ValidateCanary (System.Char ExpectedCanaryChar, System.String CanaryFieldName, Arcen.Universal.CanaryStyle Canary) [0x000bb] in <a14ee602774c4479948f35a60d60e744>:0
  at Arcen.Universal.ArcenExternalDataLookup.DeserializeExternalDataFrom (Arcen.Universal.ArcenDeserializationBuffer Buffer, System.String ExternalDataHeader, Arcen.Universal.SerializationCommandType SerializationType) [0x0056c] in <a14ee602774c4479948f35a60d60e744>:0
  at Arcen.AIW2.Core.Faction.DeserializedIntoSelf (Arcen.Universal.ArcenDeserializationBuffer Buffer, System.Boolean IsLoadingForTemplate, Arcen.Universal.SerializationCommandType SerializationCmdType) [0x00ede] in <e20a72fe2fe74c9faa3c2d6f7683581c>:0
5/13/2021 11:14:31 PM 2.905 SINGLEP The savegame you are trying to load had the following fatal error: Faction deserialization error at stage 17500 from serialized version 2.905 loading into new version 2.905, error: System.Exception: Canary code exception at EXTERNAL DATA - Faction (X). Code above it is the real problem.
  at Arcen.Universal.ArcenDeserializationBufferModern.ValidateCanary (System.Char ExpectedCanaryChar, System.String CanaryFieldName, Arcen.Universal.CanaryStyle Canary) [0x000bb] in <a14ee602774c4479948f35a60d60e744>:0
  at Arcen.Universal.ArcenExternalDataLookup.DeserializeExternalDataFrom (Arcen.Universal.ArcenDeserializationBuffer Buffer, System.String ExternalDataHeader, Arcen.Universal.SerializationCommandType SerializationType) [0x0056c] in <a14ee602774c4479948f35a60d60e744>:0
  at Arcen.AIW2.Core.Faction.DeserializedIntoSelf (Arcen.Universal.ArcenDeserializationBuffer Buffer, System.Boolean IsLoadingForTemplate, Arcen.Universal.SerializationCommandType SerializationCmdType) [0x00ede] in <e20a72fe2fe74c9faa3c2d6f7683581c>:0
5/13/2021 11:14:31 PM 2.905 SINGLEP Location 1: Go back to main menu since save load failed.
5/13/2021 11:14:31 PM 2.905 SINGLEP Failed to load save in 64.3ms

NRSirLimbo

May 14, 2021 3:10 am

developer   ~0061567

Oh boy, Serialization error. This might be related to some Serialization changes that I did before, I'll have a look.
Ofc there's also the chance that the error is somewhere before this.

NRSirLimbo

May 14, 2021 3:31 am

developer   ~0061568

I found the bug. Really stupid bug in the WrappedPlanetFaciton.SerializeTo() that I introduced with the last patch.
I'm afraid though the error isn't with the Deserialization it's with the Serialization which means that there is no way to reconstruct or fix the saves that are broken.

NRSirLimbo

May 14, 2021 3:37 am

developer   ~0061569

* AMU:
** Fixed a bug in the Serialization of AMU's WrappedPlanetFaciton. The code was set up to serialize a bool whether it was null or not, and only if it was not null it would also serialize it's planet and faction indices.
** However, it actually did the opposite: When it wasn't null it would serialize nothing more, and when it was null it would have tried to serialize -1 and -1 in an UltraEfficientStyle of 0-1023, which would cause it to fail.
** Unfortunately since this is a bug introduced to Serialization and the data required to fix the bug was never saved this cannot be reconstructed. The erroneous saves are lost forever.
*** Thanks to Vaos for reporting.

I'll test this more when I return from work, but for now I gtg.

Vaos

May 14, 2021 5:10 am

reporter   ~0061570

I've tested the fix from a save pre-beacon destruction and it doesn't crash anymore.
However, I'm seeing a weird behavior for the Marauders :
They don't fight me or the AI, only Zombies
I keep seeing flashing lights on their planets (because they are "allied" I guess ?)

I've linked my save again, maybe it's because I did not restart the game from scratch.
CivilWarNewNice2.zip (7,349,783 bytes)

Chris_McElligottPark

May 14, 2021 10:11 am

administrator   ~0061575

Thanks for the fix, SirLimbo!

Issue History

Date Modified Username Field Change
May 11, 2021 1:21 pm Vaos New Issue
May 11, 2021 1:21 pm Vaos File Added: 2021-05-11 19_19_24-AIWar2.png
May 11, 2021 1:21 pm Vaos File Added: CivilWar4.zip
May 11, 2021 7:12 pm Vaos Note Added: 0061511
May 11, 2021 9:33 pm Chris_McElligottPark Note Added: 0061519
May 11, 2021 9:33 pm Chris_McElligottPark Assigned To => NRSirLimbo
May 11, 2021 9:33 pm Chris_McElligottPark Status new => assigned
May 13, 2021 5:19 pm Vaos File Added: CivilWarNewNice.zip
May 13, 2021 5:19 pm Vaos File Added: ArcenDebugLog.txt
May 13, 2021 5:19 pm Vaos File Added: 2021-05-13 23_14_32-Window.png
May 13, 2021 5:19 pm Vaos Note Added: 0061554
May 13, 2021 9:50 pm Chris_McElligottPark Note Added: 0061556
May 14, 2021 3:10 am NRSirLimbo Note Added: 0061567
May 14, 2021 3:31 am NRSirLimbo Note Added: 0061568
May 14, 2021 3:37 am NRSirLimbo Note Added: 0061569
May 14, 2021 5:10 am Vaos File Added: CivilWarNewNice2.zip
May 14, 2021 5:10 am Vaos Note Added: 0061570
May 14, 2021 10:11 am Chris_McElligottPark Status assigned => resolved
May 14, 2021 10:11 am Chris_McElligottPark Resolution open => fixed
May 14, 2021 10:11 am Chris_McElligottPark Fixed in Version => 2.909 The Hunt Intensifies
May 14, 2021 10:11 am Chris_McElligottPark Note Added: 0061575