View Issue Details

IDProjectCategoryLast Update
0024186AI War 2Crash/ExceptionDec 3, 2020 9:15 am
ReporterCel Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version2.644 So Many Good Things All At Once 
Fixed in Version2.645 Hotfix 
Summary0024186: Unable to start most of the scenarios
DescriptionI'm unable to start most of the scenarios due to various bugs. I've provided example both when trying to start the game or edit it beforehand. Might have something to do with loading old values in a new game version? Only few scenarios, like "a tale of two stars" work. Custom games work fine as well.
Tags2.644, crash, scenario

Activities

Cel

Dec 3, 2020 6:52 am

reporter  

Example 3.txt (1,115 bytes)   
12/3/2020 2:42:48 PM	Start load save: C:/SteamLibrary/steamapps/common/AI War 2/GameData/QuickStarts2/2-Moderate\Security Alert.save Source1: AnythingElse Source3: LoadingQuickStart
12/3/2020 2:42:48 PM	Faction deserialization error at stage 1000 from serialized version 1.025 loading into new version 2.644, error: System.Exception: Tried to read an invalid FactionType, which means some data was read incorectly in a faction previous to this one.
  at Arcen.AIW2.Core.Faction.DeserializedIntoSelf (Arcen.Universal.ArcenDeserializationBuffer Buffer, System.Boolean IsLoadingForTemplate, SerializationCommandType SerializationCmdType) [0x0004a] in <4511db49e67c47e7a550a2b764715612>:0 
12/3/2020 2:42:48 PM	Finish load save in 20.9ms
12/3/2020 2:42:48 PM	Start Generate Partial Map with D18Swirl and seed 419611292 and planet count 100 and 24 factions (AnythingElse LoadingQuickStart)
12/3/2020 2:42:48 PM	Added the faction CPALogic.
12/3/2020 2:42:48 PM	Added the faction EnragedMacrophage.
12/3/2020 2:42:48 PM	Fixed 2574 missing planet factions.
12/3/2020 2:42:48 PM	Generate Partial Map Complete  58ms
Example 3.txt (1,115 bytes)   
Example 4.txt (2,114 bytes)   
12/3/2020 2:43:10 PM	Start load save: C:/SteamLibrary/steamapps/common/AI War 2/GameData/QuickStarts2/4-Extreme\Extreme 2.save Source1: AnythingElse Source3: LoadingQuickStart
12/3/2020 2:43:10 PM	Faction deserialization error at stage 5000 from serialized version 1.025 loading into new version 2.644, error: System.Exception: Tried to read Int16 NonNeg from old style, data, but got: -109772, which is out of range! FieldNameForErrors: FactionIndicesIAmHostileTo.Count
  at Arcen.Universal.ArcenDeserializationBufferOldStyle.ReadInt16 (Arcen.Universal.ReadStyle RStyle, System.String FieldNameForErrors) [0x000e9] in <ed960439c97f45b296de86aa512367e5>:0 
  at Arcen.AIW2.Core.Faction.DeserializedIntoSelf (Arcen.Universal.ArcenDeserializationBuffer Buffer, System.Boolean IsLoadingForTemplate, SerializationCommandType SerializationCmdType) [0x0037e] in <4511db49e67c47e7a550a2b764715612>:0 
12/3/2020 2:43:10 PM	The savegame you are trying to load had the following fatal error:  Faction deserialization error at stage 5000 from serialized version 1.025 loading into new version 2.644, error: System.Exception: Tried to read Int16 NonNeg from old style, data, but got: -109772, which is out of range! FieldNameForErrors: FactionIndicesIAmHostileTo.Count
  at Arcen.Universal.ArcenDeserializationBufferOldStyle.ReadInt16 (Arcen.Universal.ReadStyle RStyle, System.String FieldNameForErrors) [0x000e9] in <ed960439c97f45b296de86aa512367e5>:0 
  at Arcen.AIW2.Core.Faction.DeserializedIntoSelf (Arcen.Universal.ArcenDeserializationBuffer Buffer, System.Boolean IsLoadingForTemplate, SerializationCommandType SerializationCmdType) [0x0037e] in <4511db49e67c47e7a550a2b764715612>:0 
12/3/2020 2:43:10 PM	Finish load save in 11.1ms
12/3/2020 2:43:10 PM	Start Generate Partial Map with Realistic and seed 498242497 and planet count 80 and 23 factions (AnythingElse LoadingQuickStart)
12/3/2020 2:43:10 PM	Added the faction CPALogic.
12/3/2020 2:43:10 PM	Added the faction EnragedMacrophage.
12/3/2020 2:43:10 PM	Fixed 2000 missing planet factions.
12/3/2020 2:43:10 PM	Generate Partial Map Complete  103ms
Example 4.txt (2,114 bytes)   
Example 5.txt (525,730 bytes)
Example 1.txt (828 bytes)   
12/3/2020 2:16:54 PM	Start load save: C:/SteamLibrary/steamapps/common/AI War 2/GameData/QuickStarts2/1-Basic\Scenario 4 - Classic Fleet - Difficulty 6 - Double AIs - Human Resistance Fighters - Marauders.save Source1: StartingTheLobbyFromPrior Source3: LoadingQuickStart
12/3/2020 2:16:54 PM	Faction deserialization error at stage 1000 from serialized version 1.025 loading into new version 2.644, error: System.Exception: Tried to read an invalid FactionType, which means some data was read incorectly in a faction previous to this one.
  at Arcen.AIW2.Core.Faction.DeserializedIntoSelf (Arcen.Universal.ArcenDeserializationBuffer Buffer, System.Boolean IsLoadingForTemplate, SerializationCommandType SerializationCmdType) [0x0004a] in <4511db49e67c47e7a550a2b764715612>:0 
12/3/2020 2:16:54 PM	Finish load save in 15.7ms
Example 1.txt (828 bytes)   
Example 2.txt (7,016 bytes)   
12/3/2020 2:41:59 PM	Start load save: C:/SteamLibrary/steamapps/common/AI War 2/GameData/QuickStarts2/1-Basic\Helping Hands.save Source1: AnythingElse Source3: LoadingQuickStart
12/3/2020 2:41:59 PM	Faction deserialization error at stage 4000 from serialized version 2.012 loading into new version 2.644, error: System.Exception: Tried to read Int32 NonNeg from old style, data, but got: -14686684, which is out of range! FieldNameForErrors: MetalStorage
  at Arcen.Universal.ArcenDeserializationBufferOldStyle.ReadInt32 (Arcen.Universal.ReadStyle RStyle, System.String FieldNameForErrors) [0x000e4] in <ed960439c97f45b296de86aa512367e5>:0 
  at Arcen.AIW2.Core.Faction.DeserializedIntoSelf (Arcen.Universal.ArcenDeserializationBuffer Buffer, System.Boolean IsLoadingForTemplate, SerializationCommandType SerializationCmdType) [0x001ad] in <4511db49e67c47e7a550a2b764715612>:0 
12/3/2020 2:41:59 PM	Exception occurred during world deserialization:Exception
Will now log details in WorldDeserializationErrors.txt

System.Exception: ERROR: DeserializeExternalDataFrom for EXTERNAL DATA - World debugStage: 2000 Error: System.Exception: Tried to read Int32 NonNeg from old style, data, but got: -926962249, which is out of range! FieldNameForErrors: CollectionsByPatternIndex.Count
  at Arcen.Universal.ArcenDeserializationBufferOldStyle.ReadInt32 (Arcen.Universal.ReadStyle RStyle, System.String FieldNameForErrors) [0x000e4] in <ed960439c97f45b296de86aa512367e5>:0 
  at Arcen.Universal.ArcenExternalDataLookup.DeserializeExternalDataFrom (System.Object ParentObject, Arcen.Universal.ArcenDeserializationBuffer Buffer, System.String ExternalDataHeader, System.Boolean IsForPartialSyncDuringMultiplayer) [0x00010] in <ed960439c97f45b296de86aa512367e5>:0 
  at Arcen.Universal.ArcenExternalDataLookup.DeserializeExternalDataFrom (System.Object ParentObject, Arcen.Universal.ArcenDeserializationBuffer Buffer, System.String ExternalDataHeader, System.Boolean IsForPartialSyncDuringMultiplayer) [0x004b6] in <ed960439c97f45b296de86aa512367e5>:0 
  at Arcen.Universal.World.DeserializedIntoSelf (Arcen.Universal.ArcenDeserializationBuffer Buffer, System.Boolean LoadAsTemplate, System.Boolean HideErrors, System.String& ErrorText, System.Boolean DoPartialSyncForDuringGameplay) [0x00792] in <ed960439c97f45b296de86aa512367e5>:0 
  at Arcen.Universal.World.DeserializeNewWorldFrom (Arcen.Universal.ArcenDeserializationBuffer Buffer, System.Boolean LoadAsTemplate, System.Boolean HideErrors, System.String& ErrorText) [0x000ad] in <ed960439c97f45b296de86aa512367e5>:0 
  at Arcen.Universal.World.LoadWorldFromDiskInner (System.String SaveName, System.Byte[] Bytes, System.Boolean LoadAsTemplate, System.Boolean HideErrors, Arcen.Universal.GameVersion& FromGameVersion) [0x002d9] in <ed960439c97f45b296de86aa512367e5>:0 
  at Arcen.Universal.World.LoadWorldFromDiskNoCampaignNameSet (System.String FullSaveName, System.Boolean LoadAsTemplate, System.Boolean HideErrors, Arcen.Universal.GameVersion& FromGameVersion) [0x00070] in <ed960439c97f45b296de86aa512367e5>:0 
  at System.Environment.get_StackTrace () [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, System.Boolean IncludeStackTrace, Arcen.Universal.Verbosity Verbosity) [0x00000] in <ed960439c97f45b296de86aa512367e5>:0 
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, Arcen.Universal.Verbosity Verbosity) [0x00000] in <ed960439c97f45b296de86aa512367e5>:0 
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <ed960439c97f45b296de86aa512367e5>:0 
  at Arcen.Universal.World.LoadWorldExceptionHandling (System.Exception e) [0x00000] in <ed960439c97f45b296de86aa512367e5>:0 
  at Arcen.Universal.World.LoadWorldFromDiskNoCampaignNameSet (System.String FullSaveName, System.Boolean LoadAsTemplate, System.Boolean HideErrors, Arcen.Universal.GameVersion& FromGameVersion) [0x00000] in <ed960439c97f45b296de86aa512367e5>:0 
  at Arcen.Universal.Engine_Universal.LoadGameNoCampaignNameSet_NeverCallDirectly_P1 (System.String FullSaveGameName, System.Boolean LoadAsTemplate, System.Boolean HideErrors) [0x00000] in <ed960439c97f45b296de86aa512367e5>:0 
  at Arcen.AIW2.Core.Engine_AIW2.LoadGameNoCampaignNameSet (System.String FullSaveGameName, Arcen.AIW2.Core.StartWorldSource1 StartSource1, Arcen.AIW2.Core.StartWorldSource2 StartSource2) [0x00000] in <4511db49e67c47e7a550a2b764715612>:0 
  at Arcen.AIW2.External.Window_LoadQuickStartMenu+bStartGame.HandleClick_Subclass (MouseHandlingInput input) [0x00000] in <ff059b7cec5e4dc9b5cec20add79102c>:0 
  at Arcen.AIW2.External.ButtonAbstractBase.HandleClick (MouseHandlingInput input) [0x00000] in <ff059b7cec5e4dc9b5cec20add79102c>:0 
  at Arcen.Universal.ArcenUI_Button.OnClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00000] in <ed960439c97f45b296de86aa512367e5>:0 
  at Arcen.Universal.ArcenUI_Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00000] in <ed960439c97f45b296de86aa512367e5>:0 
  at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00000] in <9bb8f6e40006490da4518a3cf5afe42e>:0 
  at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) [0x00000] in <9bb8f6e40006490da4518a3cf5afe42e>:0 
  at UnityEngine.EventSystems.StandaloneInputModule.ReleaseMouse (UnityEngine.EventSystems.PointerEventData pointerEvent, UnityEngine.GameObject currentOverGo) [0x00000] in <9bb8f6e40006490da4518a3cf5afe42e>:0 
  at UnityEngine.EventSystems.StandaloneInputModule.ProcessMousePress (UnityEngine.EventSystems.PointerInputModule+MouseButtonEventData data) [0x00000] in <9bb8f6e40006490da4518a3cf5afe42e>:0 
  at UnityEngine.EventSystems.StandaloneInputModule.ProcessMouseEvent (System.Int32 id) [0x00000] in <9bb8f6e40006490da4518a3cf5afe42e>:0 
  at UnityEngine.EventSystems.StandaloneInputModule.ProcessMouseEvent () [0x00000] in <9bb8f6e40006490da4518a3cf5afe42e>:0 
  at UnityEngine.EventSystems.StandaloneInputModule.Process () [0x00000] in <9bb8f6e40006490da4518a3cf5afe42e>:0 
  at UnityEngine.EventSystems.EventSystem.Update () [0x00000] in <9bb8f6e40006490da4518a3cf5afe42e>:0 

12/3/2020 2:41:59 PM	Finish load save in 20.6ms
12/3/2020 2:41:59 PM	Start Generate Partial Map with Realistic and seed 941168337 and planet count 80 and 19 factions (AnythingElse LoadingQuickStart)
12/3/2020 2:41:59 PM	Added the faction CPALogic.
12/3/2020 2:41:59 PM	Added the faction EnragedMacrophage.
12/3/2020 2:41:59 PM	Fixed 1680 missing planet factions.
12/3/2020 2:41:59 PM	Generate Partial Map Complete  84ms
Example 2.txt (7,016 bytes)   

Chris_McElligottPark

Dec 3, 2020 8:34 am

administrator   ~0059841

Yep, this is some sort of bug with the older serialization. Thanks for the report! I'll get this sorted today.

Chris_McElligottPark

Dec 3, 2020 9:15 am

administrator   ~0059842

Thanks!

* Fixed a one-line typo with the recent changes to delayed invasion support for the nanocaust that was causing all older quickstarts and savegames that included the nanocaust to not be readable.

Issue History

Date Modified Username Field Change
Dec 3, 2020 6:52 am Cel New Issue
Dec 3, 2020 6:52 am Cel File Added: Example 3.txt
Dec 3, 2020 6:52 am Cel File Added: Example 4.txt
Dec 3, 2020 6:52 am Cel File Added: Example 5.txt
Dec 3, 2020 6:52 am Cel File Added: Example 1.txt
Dec 3, 2020 6:52 am Cel File Added: Example 2.txt
Dec 3, 2020 6:52 am Cel Tag Attached: crash
Dec 3, 2020 6:52 am Cel Tag Attached: 2.644
Dec 3, 2020 6:52 am Cel Tag Attached: scenario
Dec 3, 2020 8:34 am Chris_McElligottPark Assigned To => Chris_McElligottPark
Dec 3, 2020 8:34 am Chris_McElligottPark Status new => assigned
Dec 3, 2020 8:34 am Chris_McElligottPark Note Added: 0059841
Dec 3, 2020 9:15 am Chris_McElligottPark Status assigned => resolved
Dec 3, 2020 9:15 am Chris_McElligottPark Resolution open => fixed
Dec 3, 2020 9:15 am Chris_McElligottPark Fixed in Version => 2.645 Hotfix
Dec 3, 2020 9:15 am Chris_McElligottPark Note Added: 0059842