Page 1 of 1

[Gameplay Bug][2 units in same location][7.1.8]

Posted: Sun Jun 23, 2019 9:04 am
by Erik2
Multiplayer game where one Italian and one British unit occupy the same location at start of the turn.
double booking.jpg
double booking.jpg (189.5 KiB) Viewed 691 times

Re: [Gameplay Bug][2 units in same location][7.1.8]

Posted: Sun Jun 23, 2019 10:02 am
by Horst
It's an elusive bug. I had no luck reproducing this somehow as it happened rather rarely in my SP-sessions too. It must have something to do with failing to retreat.
This was once an error log msg when it happened:

Code: Select all

IndexOutOfRangeException: Array index is out of range.
  at RetreatHex.FindInRange (.Unit unit, .Hex attackHex, Int32 range, System.Int32& efficiencyLoss, .GameState gameState) [0x00000] in <filename unknown>:0 
  at GroundAttack.Execute (.Unit attacker, .Hex fromHex, .Hex location, .Unit defender, Boolean ambush, Int32 specialAttack, Int32 blast, Boolean simulate, .GameState gameState) [0x00000] in <filename unknown>:0 
  at Combat.CalculateDamage (.Unit attacker, .Unit defender, .Hex fromHex, .Hex location, Boolean ambush, Int32 specialAttack, Int32 blast, Boolean simulate, .GameState gameState) [0x00000] in <filename unknown>:0 
  at Combat.ResolveSingleCombat (.Unit attacker, .Unit defender, .Hex fromHex, .Hex location, Boolean ambush, Int32 specialAttack, Int32 blast, .GameState gameState) [0x00000] in <filename unknown>:0 
  at Combat.ResolveCombat (.Unit attacker, .Unit defender, .Hex fromHex, .Hex location, Boolean ambush, Int32 specialAttack, .GameState gameState) [0x00000] in <filename unknown>:0 
  at Combat.ResolveCombat (.Unit attacker, .Unit defender, .Hex location, Boolean ambush, Int32 specialAttack, .GameState gameState) [0x00000] in <filename unknown>:0 
  at ActionsNamespace.AttackUnitAction.Perform (.GameState gameState, Boolean checkVisibility, .Alliance visibilityAlliance) [0x00000] in <filename unknown>:0 
  at ActionsNamespace.Action.Perform (.GameState gameState) [0x00000] in <filename unknown>:0 
  at StateTree.BuildStateTreeWorker () [0x00000] in <filename unknown>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
ErrorLogger:HandleThreadedException(Exception)
StateTree:BuildStateTreeWorker()
StateTree:Build()
StateTree:Build(Int32&)
AITask:EvaluateFinalStateValue(SimulatedGameState, GameState, Int32&, Double, Int32)
StateTree:BuildSubTreeWorker(Boolean)
StateTree:BuildSubTreeWorker()