Thanks for the great game!
I have consistent crash on my game, seems it connected to auto-scout (I didn't find out which of my scout though).
Here crash log
Code: Select all
Distant Worlds - Crash Dump - Version 1.0.3.3
2:13:11 AM Thursday, April 14, 2022
System.AggregateException: One or more errors occurred. ---> System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at DistantWorlds.Types.IndexedList`1.Add(T item)
at DistantWorlds.Types.Ship.GenerateProximityExclusionZones(ShipList ships, StellarObject capital, Boolean& withinProximityExclusionZones, StarSystemList& proximityCenters, List`1& proximityDistances)
at DistantWorlds.Types.Ship.CheckAssignScout(Empire empire)
at DistantWorlds.Types.Ship.CheckAutoAssignMission(ShipMissionType previousMissionType, Int64 starDate, DateTime time, Design design, ShipHull shipHull, Empire empire, Location location, BattleTactics tactics)
at DistantWorlds.Types.Ship.DoTasks(DateTime time, Galaxy galaxy, Boolean inView)
at DistantWorlds.Types.GameClient.ProcessLogicBlocks(Galaxy galaxy, DateTime time, Int32 shipStartIndex, Int32 shipEndIndex, Int32 creatureStartIndex, Int32 creatureEndIndex, Int32 locationStartIndex, Int32 locationEndIndex)
at DistantWorlds.Types.GameClient.AddClientTask(Galaxy galaxy, DateTime time)
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
at DistantWorlds.Types.Galaxy.ProcessTasks()
at DistantWorlds2.DWGame.Update(GameTime gameTime)
---> (Inner Exception #0) System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at DistantWorlds.Types.IndexedList`1.Add(T item)
at DistantWorlds.Types.Ship.GenerateProximityExclusionZones(ShipList ships, StellarObject capital, Boolean& withinProximityExclusionZones, StarSystemList& proximityCenters, List`1& proximityDistances)
at DistantWorlds.Types.Ship.CheckAssignScout(Empire empire)
at DistantWorlds.Types.Ship.CheckAutoAssignMission(ShipMissionType previousMissionType, Int64 starDate, DateTime time, Design design, ShipHull shipHull, Empire empire, Location location, BattleTactics tactics)
at DistantWorlds.Types.Ship.DoTasks(DateTime time, Galaxy galaxy, Boolean inView)
at DistantWorlds.Types.GameClient.ProcessLogicBlocks(Galaxy galaxy, DateTime time, Int32 shipStartIndex, Int32 shipEndIndex, Int32 creatureStartIndex, Int32 creatureEndIndex, Int32 locationStartIndex, Int32 locationEndIndex)
at DistantWorlds.Types.GameClient.AddClientTask(Galaxy galaxy, DateTime time)
at System.Threading.Tasks.Task.Execute()<---
Further info follows:
System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at DistantWorlds.Types.IndexedList`1.Add(T item)
at DistantWorlds.Types.Ship.GenerateProximityExclusionZones(ShipList ships, StellarObject capital, Boolean& withinProximityExclusionZones, StarSystemList& proximityCenters, List`1& proximityDistances)
at DistantWorlds.Types.Ship.CheckAssignScout(Empire empire)
at DistantWorlds.Types.Ship.CheckAutoAssignMission(ShipMissionType previousMissionType, Int64 starDate, DateTime time, Design design, ShipHull shipHull, Empire empire, Location location, BattleTactics tactics)
at DistantWorlds.Types.Ship.DoTasks(DateTime time, Galaxy galaxy, Boolean inView)
at DistantWorlds.Types.GameClient.ProcessLogicBlocks(Galaxy galaxy, DateTime time, Int32 shipStartIndex, Int32 shipEndIndex, Int32 creatureStartIndex, Int32 creatureEndIndex, Int32 locationStartIndex, Int32 locationEndIndex)
at DistantWorlds.Types.GameClient.AddClientTask(Galaxy galaxy, DateTime time)
at System.Threading.Tasks.Task.Execute()
--- COMPLETE ---
Seems something has dublicated id in my game.
If needed I could attach my save file right before game crash, which should be reproduced if you don't change scouts' behaviour.
Best regards, Ed.