Footman Attacking Food

Summary:
After encountering a UI error my footman was attacked by goblins. Mid fight he became hungry, and when he killed all goblins and returned to town he began attacking all food in the stockpiles until everything was destroyed. The UI bug in question was when I was switching between work benches quickly which I believe was already here.

Steps to reproduce:
Ignored UI error and kept playing to deal with goblin attack.
Footman is hungry while fighting goblins.
After fight he returns home.
After saving and reloading to attempt to fix UI issue when reloading town footman goes crazy and begins attacking all food sources one at a time while still hungry.
Stare confused and horrified as all food in village is destroyed.
Attempt to stop him with no success by activating town defense mode, messing with party settings, and reloading several times.
Give up and submit bug report.

Error Report: Engine Failure

release-453 (x64)
stonehearth/ai/observers/find_target_observer.luac:87: assertion failed!
stack traceback: [C]: ? [C]: in function 'assertā€™
stonehearth/ai/observers/find_target_observer.luac:87: in function ā€˜_find_targetā€™ stonehearth/ai/observers/find_target_observer.luac:56: in function ā€˜_check_for_targetā€™ stonehearth/ai/observers/find_target_observer.luac:8: in function <stonehearth/ai/observers/find_target_observer.luac:8>

1 Like

Creepy but funny bug xD
i would get really amazed if it happened to me :o

@ZephyrFox
Does the footman attack every time you load up that save game?
If so, I would love to have the save.
This one sounds particularly amazing/horrifying.
Thanks for reporting this
-Yang

2 Likes

Have you Tried to demote the defector?

1 Like

@yshan
I have the save file but new users canā€™t upload attachments it says. When I get the ability Iā€™ll be happy to upload the file. The incident happens constantly on this file after he defeats the goblins he instantly runs over to a berry basket and starts attacking it. Sometimes he stops after a few baskets sometimes he keeps going til everything is dead.
@Oldra

Aye, when I depromoted and repromoted him he went straight back to attacking the food.

1 Like

if you want you could upload it to a site such as dropbox or googledrive (just to name a few) and provide us with the download link.

[quote=ā€œZephyrFox, post:5, topic:16730ā€]
When I get the ability Iā€™ll be happy to upload the file.
[/quote]well this is what you gotta do to be able to upload stuff,

(taken from the main discourses ā€œwhat do user trust levels doā€)

Good idea!

Iā€™m not too experienced with dropbox but hereā€™s the link (I thinkā€¦) let me know if it doesnā€™t work. ^^

https://www.dropbox.com/s/wxkpzabbb2mfx66/Stonehearth_Bugged_Footman.zip?dl=0

Heā€™ll finish off the goblins, a daily update happens, then he returns to town and assaults some berry baskets and either keeps going, or stops after destroying the ones outside of the stockpile. The second one seems more common.

3 Likes

@ZephyrFox
Hi!
Okay I loaded up the save and saw the footman kill 2 baskets that were marked as enemy baskets (they have a red outline when you select them). Iā€™ve circled them below.

If the footman only attacks these 2 and then goes back to work, then thatā€™s okay (in the next release, he shouldnā€™t attack them at all). This is because right now, food containers have health and if thereā€™s an enemy object that has health, footmen will consider them attack targets. In the next release, food containers will no longer have health, so even enemy food baskets shouldnā€™t be attackable.

It sounds like from your experience, sometimes the footman tries to attack any food, even food that is friendly to you (have a white border when you hover over them), which is a problem. I havenā€™t been able to get that to happen. Do you remember if you did anything else in between? Or should it just be load up the save and watch in horror?

Thanks for getting me the save
-Yang

3 Likes

What can you say, Some people donā€™t like to eat their vegetablesā€¦

4 Likes

its the berries manā€¦ after awhile they just get to youā€¦

3 Likes

@yshan
I did some testing with the file and it doesnā€™t seem to want to do it again. Maybe the glitch happened before I saved this one? I made this by using an auto-save that happened just before and then making a normal save. For some reason reloading the save seems to somewhat fix it. But in the original scenario he didnā€™t stop I got a large number of error pop ups and he went berserk. I tried to save the file at that point but the save screen froze and the file never saved I was forced to kill the game with task manager. I reloaded the auto-save hoping to salvage the game and assumed he was still attacking the whole stock again after seeing him hit the berries. So itā€™s entirely possible the reload fixed the major issue along with the UI. I hope that helps some. Sorry I cant provide the original but there was nothing I could do.

I did notice if you loot the enemy baskets before the footman can get to them they will reset back to freindly and heā€™ll leave them alone. Itā€™s the only thing of note I could get to happen.

do you know what error it was? if the ui stopped working iā€™m slightly suspicious that it was the ā€œprune_dead_listenersā€ that you get when a footmen kills a goblin/enemyā€¦

@8BitCrab

I canā€™t remember, I didnā€™t take a very long look but I think it said engine failure. I closed it thinking it was another problem with the UI

1 Like

ā€œFootman! Stop playing with your vegetables and eat them!ā€