Author Topic: [Confirm Fix] Survivalist stuck in flee on Emilia's mission  (Read 1216 times)

ushas

  • Hero Member
  • *****
  • Posts: 661
(v16, linux, HB)

Sam was minding his business in the corner with a precision rifle and this one came to box him. So we shoot him with a gun and next time he changes his mind and is about to flee...

1. There is a game freeze (-> restart) at the turn of this survivalist unit when decides to flee. The game shows the flag underneath, but stops at that.

There are many errors in the log. This one near the end is perhaps happening close to the point of freeze:
Code: [Select]
CharacterMainScript.CheckIfShouldFlee.Conor Karlsson flee chance: 20 will flee: 20
 
CombatQueueManager.SetFleeingIcon. Character ID: 5

NullReferenceException: Object reference not set to an instance of an object
  at CombatQueueManager.EnableFleeingIcon (Int32 characterIDIn) [0x00000] in <filename unknown>:0
  at CharacterAIScript.Runaway () [0x00000] in <filename unknown>:0
  at CharacterAIScript.CheckIfShouldFlee () [0x00000] in <filename unknown>:0
  at CharacterAIScript.InvokeGetPossibleOrdersForTurn (Single delayIn) [0x00000] in <filename unknown>:0
  at BattleControlScript.CheckIfPlayerOrAITurn () [0x00000] in <filename unknown>:0
  at BattleControlScript.FindNextActiveCharacter () [0x00000] in <filename unknown>:0
  at BattleControlScript.EndCharacterTurn (Boolean requestedByPlayerIn) [0x00000] in <filename unknown>:0
  at CharacterAIScript.EndCharacterTurn () [0x00000] in <filename unknown>:0
  at CharacterAIScript.RemoveFleeingCharacterFromPlay () [0x00000] in <filename unknown>:0
  at CharacterMovementScript.HandleEndOfMovement () [0x00000] in <filename unknown>:0
  at CharacterMovementScript.HandleMovement () [0x00000] in <filename unknown>:0
  at CharacterMovementScript.Update () [0x00000] in <filename unknown>:0


2. Before the above, at the Sam's turn I also got the tooltip not-showing. Not sure if or how related to the one reported by Nomad. Practically, during Sam's turn pointing a mouse over this same unit will show nothing. But eventually the game recovers when I point on another enemy and from that point on it works correctly again. No leaving the battle screen before.


3. In the log, during the Sam's turn there are many errors following the line "This character is strafing to fire from tile". Not sure why he would do that, as I think the situation didn't warrant it. In game there wasn't any strafing done I think.
Code: [Select]
BattleControlScript.CalculateShotDifficultyFromDistance. This shot(1) is inside effective range(10). Final difficulty from distance: 11

BattleControlScript.GetShotDifficultyFromDirectionalCover. This character is strafing to fire from tile
 
ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
  at System.Collections.Generic.List`1[TileScript].get_Item (Int32 index) [0x00000] in <filename unknown>:0
  at BattleControlScript.CalculateShotDifficulty (.CharacterMainScript attackerScriptIn, .CharacterMainScript defenderScriptIn, Int32 tileDistanceIn) [0x00000] in <filename unknown>:0
  at BattleControlScript.GetRangedChanceToHit (.CharacterMainScript attackerScriptIn, Vector2 attackerTilePos, .CharacterMainScript defenderScriptIn, Int32 distanceModifierIn, Int32 thisAttackUseModePosIn, Single bodyPartCTHMultiplierIn, Boolean clampCTHIn) [0x00000] in <filename unknown>:0
  at BattleControlScript.DetermineMouseOverAction (Boolean isAnimationTrigger, Boolean drawPathIn, Boolean shotgunFireModeUpdateCoverAndCharInfoIn) [0x00000] in <filename unknown>:0
  at BattleControlScript.ReportPlayerInput (Vector2 mouseGridPositionIn, Boolean isRightClickIn, Boolean isAnimationTrigger, Boolean drawPathIn, Boolean shotgunFireModeUpdateCoverAndCharInfoIn) [0x00000] in <filename unknown>:0
  at MouseTrackerScript.Update () [0x00000] in <filename unknown>:0
 


4. A black dustbin object from the picture (and another next to it) is having clipping issue, the front shield icons being inside.
« Last Edit: July 26, 2017, 09:36:32 AM by Daithi »

Daithi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1249
Re: Survivalist stuck in flee on Emilia's mission
« Reply #1 on: May 22, 2017, 01:47:00 PM »
Seems fleeing is against the survivalist nature. Have noticed some issues with the stafing mechanic - hopefully this will help to narrow down the problem. Were you using shotgun, by any chance?

ushas

  • Hero Member
  • *****
  • Posts: 661
Re: [Fix Req] Survivalist stuck in flee on Emilia's mission
« Reply #2 on: May 22, 2017, 08:52:22 PM »
Forgot to mention, one of his colleagues already fled a turn or two before. No problem with leaving the map. Appears we are terrifying even to survivalists. 8)

No shotgun. Initially, Sam was using precision rifle, switched and used General Arms Patriot when the foe came close. Till that moment everything was ok. 

Tried to redo the mission before, but they are not easy to lure. Didn't recreate. One more thing: when an enemy is killed right in that spot (the same tile coordinates), seems the game doesn't let you shoot around the corner  like it's not available anymore. But I'm not sure about this.

Daithi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1249
Re: [Fix Req] Survivalist stuck in flee on Emilia's mission
« Reply #3 on: July 26, 2017, 09:36:19 AM »
Potentially linked to insufficient error checking on the combatant queue.