Author Topic: [Resolved] Enemy unable to flee: B&E mission  (Read 11112 times)

ushas

  • Hero Member
  • *****
  • Posts: 661
[Resolved] Enemy unable to flee: B&E mission
« on: June 04, 2017, 11:09:04 PM »
(v16, linux, HB, 24 July, map 4 conf 2: B&E mission)

Looks like the game will freeze when enemies try to flee this map, see the attached image where the Mafia guy ended reaching the wall. In the log it says like he fled but he didn't. Well, the battle area is closed. Despite the self-preservation call he cannot into scaling wall.

Some log output:
Code: [Select]
BattleControlScript.EndCharacterTurn. An enemy HAS just fled.
BattleControlScript.FindNextActiveCharacter. AI character at pos 8 is combat capable?: True is involved in combat:? True
CharMainScript.CheckIfBleedingReturnKilledAndApplyDamage. Method called. Checking for: Dino Genovese
CharacterMainScript.CalculateHealthPercent. Health percent: 0.8363636
CharacterMainScript.CalculateHealthPercent. Health percent: 0.8363636
CharacterMainScript.HandleWoundedState. Health %: 0.8363636 < Heavy: 0.25 < Light: 0.5
CharacterContainer.SetWoundedState. Method called. Wounded state is: 0
CharacterMainScript.ReduceHP. No status effects to apply
CharMainScript.ReduceHP. This character is in combat. Updating combatant icons
Item.ApplyDeteriorationFromUse. Method called. Item condition %: 1
CombatQueueManager.UpdateCombatantIcon. Method called for character ID: 9 health is: 46

NullReferenceException: Object reference not set to an instance of an object
  at CombatQueueManager.UpdateCombantantIcon (Int32 characterIDIn, Single currentHealthIn, Int32 currentMaxHealthIn, Single healthPercentIn) [0x00000] in <filename unknown>:0
  at CharacterMainScript.ReduceHP (Single hpIn, Int32 minLethalityIn, Int32 armourDamageTypeIn, Int32 injuryDamageTypeIn, System.Collections.Generic.List`1 appliedStatusEffectsIn, Boolean attackIsCriticalIn, .CharacterMainScript attackerScriptIn, Boolean isFireDamageIn, Boolean isMessageSent) [0x00000] in <filename unknown>:0
  at CharacterMainScript.CheckIfFireDamagReturnKilledAndApplyDamage () [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 

An interesting thing is that this happens to me on danger 2 & 3 tiles but not when I undertook this mission on danger 1 tile (enemies fleeing just fine). Still, I dunno if really related to danger or number of enemies. Other things to consider: enemies being on fire, potentially blocking the path (not sure how big the fleeing area is), smoke...
« Last Edit: July 26, 2017, 10:38:58 AM by Daithi »

Daithi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1250
Re: Enemy unable to flee: B&E mission
« Reply #1 on: June 07, 2017, 12:30:05 PM »
Looks like some issue with accessing the character icons. I'll recreate and figure out what's going wrong.

Daithi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1250
Re: [Fix Req] Enemy unable to flee: B&E mission
« Reply #2 on: June 20, 2017, 11:48:04 AM »
Haven't been able to replicate this so far. Can I ask how many party members you had, and whether you launched from console?

Daithi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1250
Re: [Fix Req] Enemy unable to flee: B&E mission
« Reply #3 on: June 20, 2017, 01:20:20 PM »
Ran another test: full party, danger level 2, forced all to flee, no crashes. Will keep an eye out for this bug when testing.

ushas

  • Hero Member
  • *****
  • Posts: 661
Re: [Fix Req -NR] Enemy unable to flee: B&E mission
« Reply #4 on: June 20, 2017, 08:43:17 PM »
Uff, must have been tricky to force them all flee.

It was 3 party members. I thought it happened initially naturally on danger 3 tile, but wasn't paying attention to the distinction at the time yet, so it's possible it was the console all the time.

Loaded autosave I sent you via e-mail while back. Got it on the first try on danger 2 tile using console. Probably unrelated: it hadn't stopped at the fleeing unit's turn, but on the next one's who was due to have health reduced from fire.

Daithi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1250
Re: [Fix Req -NR] Enemy unable to flee: B&E mission
« Reply #5 on: July 26, 2017, 10:38:31 AM »
Very high probability this relates to combat queue issue, which is fixed.