[Ack] [R118] Error Attempt to index field


#1

Summary: When reloading the game from this save file the following error occurs: "attempt to index field ‘farm_tilled_region’ " Before this occurred I had moved my fields from one location to another.

Steps to reproduce:

  1. Not sure how I got to this state, Save file attached.

Expected Results: game would load no errors.

Actual Results: This particular save loads with this error every time.

Attachments:
SAVE FILE


#2

The same thing was happening to me last night.


#3

Hmmm…are you sure you’re running the very latest Stonehearth? We fixed that in R118, and your save loads correctly on my version. (You can check your stonehearth.log file for the version no., at the very top of the log).


#4

2014-Aug-12 12:54:08.090572logger initialized
2014-Aug-12 12:54:08.092572 | 1 | app | Stonehearth Version 0.1.0.118
2014-Aug-12 12:54:08.252581 | 1 | app | Running Stonehearth server on port 60468
2014-Aug-12 12:54:08.298584 | 0 | mod stonehearth.world_generation | initialize not implemented for world generation service!
2014-Aug-12 12:54:08.307584 | 0 | mod town | initialize not implemented for town service!
2014-Aug-12 12:54:16.774068 | 0 | simulation.core | starting loadin…
2014-Aug-12 12:54:16.921077 | 1 | dm.store | load progress 11%…
2014-Aug-12 12:54:16.979080 | 1 | dm.store | load progress 22%…
2014-Aug-12 12:54:17.038083 | 1 | dm.store | load progress 33%…
2014-Aug-12 12:54:17.104087 | 1 | dm.store | load progress 44%…
2014-Aug-12 12:54:17.163091 | 1 | dm.store | load progress 55%…
2014-Aug-12 12:54:17.224094 | 1 | dm.store | load progress 66%…
2014-Aug-12 12:54:17.302099 | 1 | dm.store | load progress 77%…
2014-Aug-12 12:54:17.396104 | 1 | dm.store | load progress 88%…
2014-Aug-12 12:54:17.473108 | 1 | dm.store | load progress 99%…
2014-Aug-12 12:54:17.479109 | 1 | dm.store | load objects finished!

2014-Aug-12 12:54:19.817242 | 0 | mod stonehearth.world_generation | initialize not implemented for world generation service!
2014-Aug-12 12:54:19.824243 | 0 | mod town | initialize not implemented for town service!
2014-Aug-12 12:54:19.827243 | 1 | lua.code | generating traceback…
2014-Aug-12 12:54:19.827243 | 0 | lua.code | – Script Error (lua) Begin -------------------------------
2014-Aug-12 12:54:19.827243 | 0 | lua.code | stonehearth/components/farmer_field/farmer_crop.lua:41: attempt to index field ‘farm_tilled_region’ (a nil value)
2014-Aug-12 12:54:19.827243 | 0 | lua.code | stack traceback:
2014-Aug-12 12:54:19.827243 | 0 | lua.code | [C]: ?
2014-Aug-12 12:54:19.827243 | 0 | lua.code | stonehearth/components/farmer_field/farmer_crop.lua:41: in function <stonehearth/components/farmer_field/farmer_crop.lua:40>
2014-Aug-12 12:54:19.827243 | 0 | lua.code | – Lua Error End -------------------------------
2014-Aug-12 12:54:19.827243 | 1 | lua.code | generating traceback…
2014-Aug-12 12:54:19.827243 | 0 | lua.code | – Script Error (native) Begin -------------------------------
2014-Aug-12 12:54:19.827243 | 0 | lua.code | c++ exception: lua runtime error
2014-Aug-12 12:54:19.827243 | 0 | lua.code | stack traceback:
2014-Aug-12 12:54:19.827243 | 0 | lua.code | – Lua Error End -------------------------------
2014-Aug-12 12:54:19.829243 | 1 | lua.code | generating traceback…
2014-Aug-12 12:54:19.829243 | 0 | lua.code | – Script Error (lua) Begin -------------------------------
2014-Aug-12 12:54:19.829243 | 0 | lua.code | stonehearth/components/farmer_field/farmer_crop.lua:41: attempt to index field ‘farm_tilled_region’ (a nil value)
2014-Aug-12 12:54:19.829243 | 0 | lua.code | stack traceback:
2014-Aug-12 12:54:19.829243 | 0 | lua.code | [C]: ?
2014-Aug-12 12:54:19.829243 | 0 | lua.code | stonehearth/components/farmer_field/farmer_crop.lua:41: in function <stonehearth/components/farmer_field/farmer_crop.lua:40>
2014-Aug-12 12:54:19.829243 | 0 | lua.code | – Lua Error End -------------------------------
2014-Aug-12 12:54:19.829243 | 1 | lua.code | generating traceback…
2014-Aug-12 12:54:19.829243 | 0 | lua.code | – Script Error (native) Begin -------------------------------
2014-Aug-12 12:54:19.829243 | 0 | lua.code | c++ exception: lua runtime error
2014-Aug-12 12:54:19.829243 | 0 | lua.code | stack traceback:
2014-Aug-12 12:54:19.829243 | 0 | lua.code | – Lua Error End -------------------------------
2014-Aug-12 12:54:19.832243 | 1 | lua.code | generating traceback…
2014-Aug-12 12:54:19.832243 | 0 | lua.code | – Script Error (lua) Begin -------------------------------
2014-Aug-12 12:54:19.832243 | 0 | lua.code | stonehearth/components/farmer_field/farmer_crop.lua:41: attempt to index field ‘farm_tilled_region’ (a nil value)
2014-Aug-12 12:54:19.832243 | 0 | lua.code | stack traceback:
2014-Aug-12 12:54:19.832243 | 0 | lua.code | [C]: ?
2014-Aug-12 12:54:19.832243 | 0 | lua.code | stonehearth/components/farmer_field/farmer_crop.lua:41: in function <stonehearth/components/farmer_field/farmer_crop.lua:40>
2014-Aug-12 12:54:19.832243 | 0 | lua.code | – Lua Error End -------------------------------
2014-Aug-12 12:54:19.832243 | 1 | lua.code | generating traceback…
2014-Aug-12 12:54:19.832243 | 0 | lua.code | – Script Error (native) Begin -------------------------------
2014-Aug-12 12:54:19.832243 | 0 | lua.code | c++ exception: lua runtime error
2014-Aug-12 12:54:19.833243 | 0 | lua.code | stack traceback:
2014-Aug-12 12:54:19.833243 | 0 | lua.code | – Lua Error End -------------------------------
2014-Aug-12 12:54:21.008311 | 0 | simulation.core | done loadin…
2014-Aug-12 12:54:21.021311 | 2 | client | load game
2014-Aug-12 12:54:21.021311 | 0 | client | starting loadin… "J:/Steam\steamapps\common\Stonehearth\saved_games\1407851474293"
2014-Aug-12 12:54:21.050313 | 1 | dm.store | load progress 11%…
2014-Aug-12 12:54:21.055313 | 1 | dm.store | load progress 22%…
2014-Aug-12 12:54:21.060314 | 1 | dm.store | load progress 33%…
2014-Aug-12 12:54:21.066314 | 1 | dm.store | load progress 44%…
2014-Aug-12 12:54:21.071314 | 1 | dm.store | load progress 55%…
2014-Aug-12 12:54:21.076314 | 1 | dm.store | load progress 66%…
2014-Aug-12 12:54:21.081315 | 1 | dm.store | load progress 77%…
2014-Aug-12 12:54:21.086315 | 1 | dm.store | load progress 88%…
2014-Aug-12 12:54:21.091315 | 1 | dm.store | load progress 99%…
2014-Aug-12 12:54:21.091315 | 1 | dm.store | load objects finished!

2014-Aug-12 12:54:21.209322 | 0 | client | done loadin…
2014-Aug-12 12:54:21.210322 | 1 | renderer.renderer | invalid visible region reference: object://game/187080
2014-Aug-12 12:54:21.210322 | 1 | renderer.renderer | invalid explored region reference: object://game/187081
2014-Aug-12 12:54:21.304327 | 1 | renderer.renderer | invalid visible region reference: object://game/187080
2014-Aug-12 12:54:21.304327 | 1 | renderer.renderer | invalid explored region reference: object://game/187081
2014-Aug-12 12:54:21.404333 | 1 | renderer.renderer | invalid visible region reference: object://game/187080
2014-Aug-12 12:54:21.404333 | 1 | renderer.renderer | invalid explored region reference: object://game/187081
2014-Aug-12 12:54:21.504339 | 1 | renderer.renderer | invalid visible region reference: object://game/187080
2014-Aug-12 12:54:21.504339 | 1 | renderer.renderer | invalid explored region reference: object://game/187081
2014-Aug-12 12:54:21.604345 | 1 | renderer.renderer | invalid visible region reference: object://game/187080
2014-Aug-12 12:54:21.604345 | 1 | renderer.renderer | invalid explored region reference: object://game/187081
2014-Aug-12 12:54:21.704350 | 1 | renderer.renderer | invalid visible region reference: object://game/187080
2014-Aug-12 12:54:21.704350 | 1 | renderer.renderer | invalid explored region reference: object://game/187081
2014-Aug-12 12:54:21.804356 | 1 | renderer.renderer | invalid visible region reference: object://game/187080
2014-Aug-12 12:54:21.804356 | 1 | renderer.renderer | invalid explored region reference: object://game/187081


#5

Agh, my bad–my fix didn’t get in for 118, sorry :stuck_out_tongue: Next version will have it–thanks for the report!