Author Topic: [Resolved] Partial freeze at enemy spawn  (Read 3189 times)

ushas

  • Hero Member
  • *****
  • Posts: 661
[Resolved] Partial freeze at enemy spawn
« on: August 14, 2017, 12:17:47 PM »
Totally forgot to report this. Sorry!

Setup: v18, linux, Vi, danger 3, Mafia, ChinaTown2, config:0, 2 party members

I had Ray at the end of queue and upon ending the turn via the button the game doesn't seem to respond. Even when clicked several times.

In the log there was this issue:
Code: [Select]
BattleControlScript.EndTurn: Method called
BattleControlScript.GetNumberOfEnemiesThatCanBeSpawnedBeforeMaxInstantiatedEnemiesExceeded. Max instantiated enemies: 7 current enemies: 6
BattleControlScript.HandleEndOfTurnEnemySpawning. Number of enemies before exceeding max instantiated: 1
BattleControlScript.HandleEndOfTurnEnemySpawning. Number of enemies to spawn: 1 number of spawn tiles: 10
BattleControlScript.HandleEndOfTurnEnemySpawning: SPAWNING ENEMY
BattleControlScript.SpawnStandardOrEscortEnemy. Method called. Number of enemies to spawn: 1
IndexOutOfRangeException: Array index is out of range.
  at MapDataScript.DoesTileContainUnit (Int32 xCoordIn, Int32 zCoordIn) [0x00000] in <filename unknown>:0
  at BattleControlScript.SpawnStandardOrEscortEnemy (Int32 numberOfEnemiesToSpawnIn, Boolean isFleeingEnemyIn) [0x00000] in <filename unknown>:0
  at BattleControlScript.HandleEndOfTurnEnemySpawning () [0x00000] in <filename unknown>:0
  at BattleControlScript.EndTurn () [0x00000] in <filename unknown>:0
  at BattleControlScript.EndCharacterTurn (Boolean requestedByPlayerIn) [0x00000] in <filename unknown>:0
  at UIManagerScript.HandleEndTurnButtonPress () [0x00000] in <filename unknown>:0
  at UnityEngine.Events.InvokableCall.Invoke (System.Object[] args) [0x00000] in <filename unknown>:0
  at UnityEngine.Events.InvokableCallList.Invoke (System.Object[] parameters) [0x00000] in <filename unknown>:0
  at UnityEngine.Events.UnityEventBase.Invoke (System.Object[] parameters) [0x00000] in <filename unknown>:0
  at UnityEngine.Events.UnityEvent.Invoke () [0x00000] in <filename unknown>:0
  at UnityEngine.UI.Button.Press () [0x00000] in <filename unknown>:0
  at UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00000] in <filename unknown>:0
  at UnityEngine.EventSystems.ExecuteEvents.Execute (IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00000] in <filename unknown>:0
  at UnityEngine.EventSystems.ExecuteEvents.Execute[IPointerClickHandler] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.EventFunction`1 functor) [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)
UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMousePress(MouseButtonEventData)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent(Int32)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent()
UnityEngine.EventSystems.StandaloneInputModule:Process()
UnityEngine.EventSystems.EventSystem:Update()

However, the game then continues when I end the turn using the shortcut key. Happened several times during the battle. Can't rule out other aspects, like timing. There is danger that such issue may lead players think the game is frozen.

As this happened some time back it's very fuzzy, but will try to dig if needed. Anyway, it's not the best to pile up bugs at this point I guess. Good luck with the release!

PS: Possibly somehow related to the queue error I encountered while back on the same map, see confused queue thread. Though there wasn't any queue desync this time.
« Last Edit: August 24, 2017, 02:15:53 PM by Daithi »

Daithi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1250
Re: Partial freeze at enemy spawn
« Reply #1 on: August 24, 2017, 02:15:32 PM »
Had this happen earlier - added code to remove any tiles outside the map bounds.