Archery bug in my save file

I’m not sure why, but my archer decided they were frozen. I initially sent them to attack the crypt with my party, and I got a small error about them not being able to shoot the crypt with their bow. So after that, I closed it and kept fighting. They were fighting initially, and we killed a few cultists. My base got attacked by a Varanus, so I pulled everybody back with the move command, but now I get this error every time I load the save and try to move my archer.

develop-2924 (x64)
@stonehearth/components/ai/ai_component.lua:566: (3655 Luca Yiss) has not yielded after 10 ai spins. Are they in a bad state? Last abort reason: Target out of ranged weapon range or not in sight
stack traceback:
radiant/modules/common.lua:237: in function ‘report_traceback’
radiant/modules/common.lua:456: in function ‘verify’
stonehearth/components/ai/ai_component.lua:566: in function <stonehearth/components/ai/ai_component.lua:524>
[C]: in function ‘xpcall’
radiant/modules/common.lua:257: in function ‘xpcall’
stonehearth/components/ai/ai_component.lua:524: in function ‘_thread_main’
stonehearth/services/server/threads/thread.lua:249: in function <stonehearth/services/server/threads/thread.lua:246>
[C]: in function ‘xpcall’
radiant/modules/common.lua:257: in function ‘xpcall’
stonehearth/services/server/threads/thread.lua:246: in function ‘f’
radiant/lib/env.lua:15: in function <radiant/lib/env.lua:14>

Steps to reproduce:

  1. Load save file.
  2. Try to move the party with a command, or the archer specifically with a command.
  3. Get the lua error.

Attaching the save file so you guys can see what’s going on. (8.0 MB)

Version Number and Mods in use:
dev 2924

System Information:
Super Fancy.

Edit: After I reloaded 4 times, the archer finally moved. It’s a miracle! Also I stopped getting the error. Weird.

Edit #2: Just kidding. It happened right after I posted again. Same error.

I think he REALLY wants to break this fence.

Now these two really want in on the action.


I think the problem is that archers try to melee attack buildings or objects, but they can’t physically melee attack things. It could be a range problem, or it could be a physical inability to melee attack. Lemme know what the actual problem is. They also get in the way of other hearthlings that melee attack, so that could be a problem.

You can probably fix it by having archers attack buildings from a distance, or not having them target them at all.

A post was merged into an existing topic: Engine error with archer (ai spins: target out of range or sight)