Fallow to crop error

To replicate error:

  1. on a new plot have farmer start creating a fallow field
  2. change field to turnip or other crop while farmer is turning the grass to a fallow
  3. Error as below:

develop-2598 (x64)stonehearth/components/farmer_field/farmer_crop.luac:69: attempt to index local ‘dirt_plot’ (a nil value)stack traceback:
[C]: ?
stonehearth/components/farmer_field/farmer_crop.luac:69: in function ‘_clear_field’
stonehearth/components/farmer_field/farmer_crop.luac:57: in function ‘change_default_crop’
…/components/farmer_field/farmer_field_component.luac:67: in function <…/components/farmer_field/farmer_field_component.luac:64>

And:

develop-2598 (x64)c++ exception: lua runtime errorstack traceback:

Seams like its still an issue in 2603 (x64)

develop-2603 (x64)stonehearth/components/farmer_field/farmer_crop.luac:69: attempt to index local ‘dirt_plot’ (a nil value)stack traceback:
[C]: ?
stonehearth/components/farmer_field/farmer_crop.luac:69: in function ‘_clear_field’
stonehearth/components/farmer_field/farmer_crop.luac:57: in function ‘change_default_crop’
…/components/farmer_field/farmer_field_component.luac:67: in function <…/components/farmer_field/farmer_field_component.luac:64>

develop-2603 (x64)c++ exception: lua runtime errorstack traceback:

i had less problems with only silk weed and flowers causing the error but that could be luck as it was not every time.

1 Like

Thanks for reporting @David_P, and welcome to the forum :smile: !

Still an issue on Release 472

darn he beat me to the punch :sweat_smile:

1 Like

@David_P - Thanks for the detailed steps! This has been fixed for the next build.

1 Like