View Issue Details

IDProjectCategoryLast Update
0027638AI War 2Bug - GameplayNov 15, 2022 11:57 am
ReporterLord Of Nothing Assigned ToDismiss  
Status resolvedResolutionfixed 
Product Version5.523 Customizable Ship Materials (Via Mods) 
Summary0027638: Auto-place all of something in the build menu by double clicking it! from patch 5.523 fails and throws errors as necro
DescriptionAs the title. To observe this in action, start a new necro game and double click any building that can be constructed. Noticed after accidental double click in current game. It will fail and throw an error.

Error log from two tries:
11/15/2022 3:45:40 PM 5.523 SINGLEP Error on image button click: System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.Core.PlacementCondition.GetEntitySpawnPoint_CenterEntity (Arcen.AIW2.Core.GameEntityTypeData ToSpawn, Arcen.AIW2.Core.Planet ToSpawnOn, Arcen.AIW2.Core.GameEntity_Base Center, System.Int32 MinDistance, System.Int32 MaxDistance, Arcen.AIW2.Core.ArcenHostOnlySimContext Context, Arcen.Universal.FInt InnerVarianceAdd, Arcen.Universal.FInt InnerVarianceSub, System.Int32 AbsoluteMaxDistance, Arcen.AIW2.Core.StateOfMatterTypeData StateOfMatter, Arcen.Universal.List`1[T] RequirementsOrNull, Arcen.AIW2.Core.PlacementDistanceAutoModifier PlacementModifier, System.Int32 Tries, System.Boolean Trace) [0x00024] in <7df844b9ffec4ee3ad032854eaddf193>:0
  at Arcen.AIW2.Core.PlacementCondition.PlaceUnitsUpToCap_AroundEntity (Arcen.AIW2.Core.ArcenHostOnlySimContext Context, Arcen.AIW2.Core.FleetMembership FleetMem, Arcen.AIW2.Core.Planet SpawnPlanet, Arcen.AIW2.Core.GameEntity_Squad CenterEntity, Arcen.AIW2.Core.StateOfMatterTypeData StateOfMatter, System.Int32 TargetAmountToExist, System.Boolean StillHasToBeBuilt, System.Boolean Trace) [0x00016] in <7df844b9ffec4ee3ad032854eaddf193>:0
  at Arcen.AIW2.External.DirectBuild_FleetMembership.HandleButtonClick (Arcen.AIW2.Core.DirectBuildable& buildable, MouseHandlingInput input) [0x000cb] in <973fc683c48e4f7091b536bc4069ab90>:0
  at Arcen.AIW2.Core.DirectBuildable.HandleButtonClick (MouseHandlingInput input) [0x00001] in <7df844b9ffec4ee3ad032854eaddf193>:0
  at Arcen.AIW2.External.Window_InGameSidebarDirectBuild+btnDirectPlacement.HandleClick (MouseHandlingInput input) [0x0005b] in <973fc683c48e4f7091b536bc4069ab90>:0
  at Arcen.Universal.ArcenUI_ImageButton.OnClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00029] in <9ad4a0e6f2b044e08dd8cc79b3fbab56>:0
  at Arcen.Universal.ArcenUI_ImageButton.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00015] in <9ad4a0e6f2b044e08dd8cc79b3fbab56>:0
11/15/2022 3:45:43 PM 5.523 SINGLEP DELAYED24 TID40 Host Resetting Necromancer Empire index 1 build thought to 0
11/15/2022 3:46:36 PM 5.523 SINGLEP DELAYED25 TID35 Host Resetting Necromancer Empire index 1 build thought to 0
11/15/2022 3:46:39 PM 5.523 SINGLEP Error on image button click: System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.Core.PlacementCondition.GetEntitySpawnPoint_CenterEntity (Arcen.AIW2.Core.GameEntityTypeData ToSpawn, Arcen.AIW2.Core.Planet ToSpawnOn, Arcen.AIW2.Core.GameEntity_Base Center, System.Int32 MinDistance, System.Int32 MaxDistance, Arcen.AIW2.Core.ArcenHostOnlySimContext Context, Arcen.Universal.FInt InnerVarianceAdd, Arcen.Universal.FInt InnerVarianceSub, System.Int32 AbsoluteMaxDistance, Arcen.AIW2.Core.StateOfMatterTypeData StateOfMatter, Arcen.Universal.List`1[T] RequirementsOrNull, Arcen.AIW2.Core.PlacementDistanceAutoModifier PlacementModifier, System.Int32 Tries, System.Boolean Trace) [0x00024] in <7df844b9ffec4ee3ad032854eaddf193>:0
  at Arcen.AIW2.Core.PlacementCondition.PlaceUnitsUpToCap_AroundEntity (Arcen.AIW2.Core.ArcenHostOnlySimContext Context, Arcen.AIW2.Core.FleetMembership FleetMem, Arcen.AIW2.Core.Planet SpawnPlanet, Arcen.AIW2.Core.GameEntity_Squad CenterEntity, Arcen.AIW2.Core.StateOfMatterTypeData StateOfMatter, System.Int32 TargetAmountToExist, System.Boolean StillHasToBeBuilt, System.Boolean Trace) [0x00016] in <7df844b9ffec4ee3ad032854eaddf193>:0
  at Arcen.AIW2.External.DirectBuild_FleetMembership.HandleButtonClick (Arcen.AIW2.Core.DirectBuildable& buildable, MouseHandlingInput input) [0x000cb] in <973fc683c48e4f7091b536bc4069ab90>:0
  at Arcen.AIW2.Core.DirectBuildable.HandleButtonClick (MouseHandlingInput input) [0x00001] in <7df844b9ffec4ee3ad032854eaddf193>:0
  at Arcen.AIW2.External.Window_InGameSidebarDirectBuild+btnDirectPlacement.HandleClick (MouseHandlingInput input) [0x0005b] in <973fc683c48e4f7091b536bc4069ab90>:0
  at Arcen.Universal.ArcenUI_ImageButton.OnClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00029] in <9ad4a0e6f2b044e08dd8cc79b3fbab56>:0
  at Arcen.Universal.ArcenUI_ImageButton.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00015] in <9ad4a0e6f2b044e08dd8cc79b3fbab56>:0
11/15/2022 3:46:41 PM 5.523 SINGLEP DELAYED26 TID19 Host Resetting Necromancer Empire index 1 build thought to 0
TagsNo tags attached.

Activities

Lord Of Nothing

Nov 15, 2022 10:53 am

reporter   ~0067344

Last edited: Nov 15, 2022 10:56 am

Additional note: Looks like the same thing happens with battlestation/citadel turrets when playing as a normal human empire on planets without a human command station.

BadgerBadger

Nov 15, 2022 11:06 am

manager   ~0067345

Suggested this is related to "Auto-place all of something in the build menu by right clicking or double clicking it!"

Dismiss

Nov 15, 2022 11:57 am

developer   ~0067346

Previous behavior which was also odd was, it would build non-sniper turrets around the AI command station if there was one on the planet. Now it builds them around the battlestation if there is no HUMAN command station. For necro it builds necropolis buildings around the necropolis. For actually building a necropolis it does nothing (as before).

Issue History

Date Modified Username Field Change
Nov 15, 2022 10:51 am Lord Of Nothing New Issue
Nov 15, 2022 10:53 am Lord Of Nothing Note Added: 0067344
Nov 15, 2022 10:56 am Lord Of Nothing Note Edited: 0067344
Nov 15, 2022 11:05 am BadgerBadger Assigned To => Dismiss
Nov 15, 2022 11:05 am BadgerBadger Status new => assigned
Nov 15, 2022 11:06 am BadgerBadger Note Added: 0067345
Nov 15, 2022 11:57 am Dismiss Status assigned => resolved
Nov 15, 2022 11:57 am Dismiss Resolution open => fixed
Nov 15, 2022 11:57 am Dismiss Note Added: 0067346