I don't think this bug is resolved yet!

Continuing the discussion from [Known Issue - Farmers Will Not Harvest - Develop-2795]

Summary: 2 mods ago, mod 2795, people were reporting a fix on the way. mod 2797 is when i began experiencing this issue. with mod 2795, my people were noticeably inefficient at harvesting food, but i still gained 200

Steps to reproduce:

  1. upgrade to mod 2797
  2. not sure; could be anything or even nothing else
  3. restarting program causes error message to pop up
  4. issue persists despite restarting Stonehearth or resetting UI.
    [perhaps resetting the memory cache(clearing off the metaphorical workbench) would work]

Expected Results: new mod! lots of fixes! farmers said to harvest things after loading file.

Actual Results: my lack of food becoming more and more apparent

Notes: restarting program causes error message to pop up
issue persists despite restarting Stonehearth or resetting UI.
[perhaps resetting the memory cache(clearing off the metaphorical workbench) would work]
bug briefly appears fixed by deleting and re-establishing farms; not so.
the farmers will establish the farm, and then go back to not harvesting them, again.
afterwards, farmers get stuck replanting the same square infinitely. it began with one. changing his job fixed it, but when he became a farmer again, he continued his unproductivity. others were eventually sucked into the loop.

Attachments: afterwards, farmers get stuck replanting the same square infinitely. it began with one. changing his job fixed it, but when he became a farmer again, he continued his unproductivity. others were eventually sucked into the loop.

develop-2797 (x64)
stonehearth/services/server/ai/compound_action.lua:356: placeholder BACK(3).destination.get_component(BACK(3).destination, stonehearth:farmer_field_layer).get_farmer_field(BACK(3).destination.get_component(BACK(3).destination, stonehearth:farmer_field_layer)).crop_at(BACK(3).destination.get_component(BACK(3).destination, stonehearth:farmer_field_layer).get_farmer_field(BACK(3).destination.get_component(BACK(3).destination, stonehearth:farmer_field_layer)), PREV.location) failed to return a value in “harvest field” action
stack traceback:
[C]: in function ‘error’
stonehearth/services/server/ai/compound_action.lua:356: in function ‘_replace_placeholders’
stonehearth/services/server/ai/compound_action.lua:266: in function ‘_start_thinking_on_frame’
stonehearth/services/server/ai/compound_action.lua:245: in function <stonehearth/services/server/ai/compound_action.lua:235>
[C]: in function ‘start_thinking’
stonehearth/services/server/ai/compound_action.lua:267: in function ‘_start_thinking_on_frame’
stonehearth/services/server/ai/compound_action.lua:245: in function <stonehearth/services/server/ai/compound_action.lua:235>
[C]: in function ‘set_think_output’
stonehearth/services/server/ai/compound_action.lua:291: in function ‘_set_think_output’
stonehearth/services/server/ai/compound_action.lua:226: in function ‘_start_thinking_on_frame’
stonehearth/services/server/ai/compound_action.lua:245: in function <stonehearth/services/server/ai/compound_action.lua:235>

[C]: ?
[C]: ?
[C]: in function ‘run’
stonehearth/components/ai/ai_component.lua:500: in function <stonehearth/components/ai/ai_component.lua:485>
[C]: in function ‘xpcall’
stonehearth/components/ai/ai_component.lua:485: in function ‘_thread_main’
stonehearth/services/server/threads/thread.lua:212: in function <stonehearth/services/server/threads/thread.lua:209>
[C]: in function ‘xpcall’
stonehearth/services/server/threads/thread.lua:209: in function ‘f’
radiant/lib/env.lua:15: in function <radiant/lib/env.lua:14>

stonehearth/services/server/ai/placeholders.lua:19: attempt to call local ‘obj’ (a table value)
stack traceback:
stonehearth/services/server/ai/placeholders.lua:19: in function ‘__eval’
stonehearth/services/server/ai/compound_action.lua:354: in function ‘_replace_placeholders’
stonehearth/services/server/ai/compound_action.lua:266: in function ‘_start_thinking_on_frame’
stonehearth/services/server/ai/compound_action.lua:245: in function <stonehearth/services/server/ai/compound_action.lua:235>
[C]: in function ‘start_thinking’
stonehearth/services/server/ai/compound_action.lua:267: in function ‘_start_thinking_on_frame’
stonehearth/services/server/ai/compound_action.lua:245: in function <stonehearth/services/server/ai/compound_action.lua:235>
[C]: in function ‘set_think_output’
stonehearth/services/server/ai/compound_action.lua:291: in function ‘_set_think_output’
stonehearth/services/server/ai/compound_action.lua:226: in function ‘_start_thinking_on_frame’
stonehearth/services/server/ai/compound_action.lua:245: in function <stonehearth/services/server/ai/compound_action.lua:235>

[C]: ?
[C]: ?
[C]: in function ‘run’
stonehearth/components/ai/ai_component.lua:500: in function <stonehearth/components/ai/ai_component.lua:485>
[C]: in function ‘xpcall’
stonehearth/components/ai/ai_component.lua:485: in function ‘_thread_main’
stonehearth/services/server/threads/thread.lua:212: in function <stonehearth/services/server/threads/thread.lua:209>
[C]: in function ‘xpcall’
stonehearth/services/server/threads/thread.lua:209: in function ‘f’
radiant/lib/env.lua:15: in function <radiant/lib/env.lua:14>

IN CONJUNCTION WITH

develop-2797 (x64)
stonehearth/ai/actions/call_method.lua:35: attempt to call field ‘?’ (a nil value)
stack traceback:
stonehearth/ai/actions/call_method.lua:35: in function <stonehearth/ai/actions/call_method.lua:26>
[C]: ?
[C]: ?
[C]: in function ‘run’
stonehearth/services/server/ai/compound_action.lua:394: in function <stonehearth/services/server/ai/compound_action.lua:388>
[C]: ?
[C]: ?
[C]: in function ‘run’
…tonehearth/services/server/tasks/run_task_action.lua:143: in function <…tonehearth/services/server/tasks/run_task_action.lua:141>
[C]: ?
[C]: ?

[C]: ?
[C]: ?
[C]: in function ‘run’
stonehearth/components/ai/ai_component.lua:500: in function <stonehearth/components/ai/ai_component.lua:485>
[C]: in function ‘xpcall’
stonehearth/components/ai/ai_component.lua:485: in function ‘_thread_main’
stonehearth/services/server/threads/thread.lua:212: in function <stonehearth/services/server/threads/thread.lua:209>
[C]: in function ‘xpcall’
stonehearth/services/server/threads/thread.lua:209: in function ‘f’
radiant/lib/env.lua:15: in function <radiant/lib/env.lua:14>

Version Number and Mods in use: Alpha 14 (Dev. 2797) x64 build
MODS: radiant.smod
rayya’s_children.smod
rayya’s_children_ui.smod
stonehearth.smod

System Information: 8x Intel(R) Core™ i7-6700K CPU
Display: 1768x992 (NIVIDIA Corporation)
GeForce GTX 970 PCIe/SSE2
4.4.0 NIVIDIA 344.75
installed memory: 16GB RAM
64-bit operating system

hi @Smiley8716
This can happen if the farms got into a bad state because of the previous build. Sorry to ask this, but can you remove your farms (using the red “remove” button) and then recreate them? The issue should go away after that – all the new farms should work.

Thanks
-Yang

5 Likes