Engine Error when Kobold archers kill Poyos

resolved

#1

Summary:
Get this engine error when Kobold archer kills a Poyo

develop-2955 (x64)
stonehearth/ai/observers/find_target_observer.lua:197: attempt to index local ‘target’ (a nil value)
stack traceback:
[C]: ?
stonehearth/ai/observers/find_target_observer.lua:197: in function '_update_highest_scored_target’
stonehearth/ai/observers/find_target_observer.lua:152: in function '_update_all_target_scores’
stonehearth/ai/observers/find_target_observer.lua:243: in function '_on_grid_location_changed’
stonehearth/ai/observers/find_target_observer.lua:253: in function '_changed_cb’
radiant/modules/filtered_trace.lua:12: in function <radiant/modules/filtered_trace.lua:7>

Steps to reproduce:

  1. get poyos
  2. have a raid of kobold archers kill one

Expected Results:
no error
Actual Results:
engine error
Notes:

Attachments:

Version Number and Mods in use:
latest steam unstable build, 2955. no mods
System Information:


Engine Error: find_target_observer.lua:197: attempt to index local 'target' during Little Stone Golem raid
#2

Thanks! This will be fixed for the next patch.


#3

Summary:
Little Stone Golem daily raid, targeted my Trapper, and then this error happened. Gameplay proceeded unhindered.

Error Dialog:
develop-2955 (x64)
stonehearth/ai/observers/find_target_observer.lua:197: attempt to index local ‘target’ (a nil value)
stack traceback:
[C]: ?
stonehearth/ai/observers/find_target_observer.lua:197: in function '_update_highest_scored_target’
stonehearth/ai/observers/find_target_observer.lua:152: in function '_update_all_target_scores’
stonehearth/ai/observers/find_target_observer.lua:243: in function '_on_grid_location_changed’
stonehearth/ai/observers/find_target_observer.lua:253: in function '_changed_cb’
radiant/modules/filtered_trace.lua:12: in function <radiant/modules/filtered_trace.lua:7>

Attachments:
stonehearth.log (606.0 KB zipped)

Version Number and Mods in use:
A16 D2955 (x64)


#4

This is the same issue that was addressed here.
http://discourse.stonehearth.net/t/engine-error-when-kobold-archers-kill-poyos/21924

http://discourse.stonehearth.net/t/engine-error-when-
http://discourse.stonehearth.net/users/Albertkobold-archers-kill-poyos/21924


#5

@8BitCrab @jomaxro – Merge em up! :slight_smile: