Shepherd wont restock/feed animals

Everytime I start my game I get this error and my shepherd wont feed the animals. I have food and he is set to only do his job. This is the error, it seems related.

release-949 (x64)[M]
stonehearth/services/server/ai/ai_service.lua:559: table index is nil
stack traceback:
	[C]: ?
	stonehearth/services/server/ai/ai_service.lua:559: in function 'filter_from_key'
	.../ai/actions/wait_for_empty_pasture_trough_action.lua:58: in function '_on_feed_changed'
	.../ai/actions/wait_for_empty_pasture_trough_action.lua:44: in function <.../ai/actions/wait_for_empty_pasture_trough_action.lua:37>
	[C]: in function 'start_thinking'
	stonehearth/services/server/tasks/task_action.lua:102: in function '_start_stop_thinking'
	stonehearth/services/server/tasks/task_action.lua:175: in function <stonehearth/services/server/tasks/task_action.lua:174>
	[C]: ?
	[C]: in function 'trigger'
	radiant/modules/events.lua:63: in function '_update'
	radiant/server.lua:67: in function <radiant/server.lua:64>

got the same problem

1 Like

Same here. Wanted to start a dairy farm burt all my cows just keep on dying! I only depend on grass to feed my animals!

1 Like

How do you copy and paste the error? because I got something similar

Hello everyone! ACE knows about this problem and we are currently working on solving the issue. Sorry about the trouble you’re having!


I just used the copy to clipboard and then pasted in a Preformatted text (Ctrl + Shift + c) on windows.

Oh didn’t realize it was an ACE bug sorry to post in general support. Is there any workaround, if not that’s fine.

Currently experiencing the same problem. No error message, but the shepherd isn’t feeding - subsequently the shepherd is also not advancing experience and can no longer get to level 2 to the stage of making poyo/sheep pastures.

if you have debug tools you can probaly paste down some food with those.
otherwise, i’d use a difference strategy to feed my town untill ACE fixes it :stuck_out_tongue:

This bug is fixe on the newest ACE version but you should probably have to demote (promote to worker) and then promote your shepherd again for it to work!

You might also need to replace your troughs :merry:

Sorry about that!

Let us know if it works then and if not, make sure you do have the updated version and report it on the ACE thread :heart:


I have a feeling the issue with not feeding is due to pasture beds - I had pasture beds in & the animals would do nothing but sleep to death & the shepherds wouldn’t feed them - I’ve removed the pasture beds & now the animals are at least eating the grass - I’ve demoted & promoted the shepherds but they still just sit by the fire :confused: I’m using the Northern Alliance & a “few” mods

1 Like

This issue is fixed in ACE’s latest version

Animals will only stick to their beds if the weather is bad (damages them), but they’ll prefer to face the weather and eat rather than starve if they get hungry. Pastures should be now functioning correctly.

1 Like

As far as I know I’m using ACE’s latest version - I’ll check when I get home - thanks :slight_smile: