[Dev 2513] Error: attempt to index local 'entity' - on_game_loaded

just got this when I loaded my game today

develop-2513 (x64)
radiant/modules/entities.luac:86: attempt to index local 'entity' (a nil value)
stack traceback:
	radiant/modules/events.luac:68: in function <radiant/modules/events.luac:65>
	radiant/modules/entities.luac:86: in function 'get_world_grid_location'
	stonehearth/services/server/town/town.luac:97: in function '?'
	stonehearth/services/server/town/town.luac:30: in function '_restore_saved_calls'
	stonehearth/services/server/town/town.luac:11: in function '_on_game_loaded'
	stonehearth/services/server/town/town.luac:9: in function 'obj'
	radiant/modules/events.luac:15: in function 'self'
	radiant/modules/events.luac:80: in function <radiant/modules/events.luac:78>
	[C]: in function 'xpcall'
	radiant/modules/events.luac:78: in function <radiant/modules/events.luac:70>

I found related topics only for older game versions and I got this in 2494 too

about this town:

  • no active building jobs
  • 1 active mine
  • no enemies
  • farmer and trapper active, rest sleeping, looting, patroling, idle

edit:
here is the save file:
https://www.dropbox.com/s/vo7xn2zs3tkyni7/1437906658705.zip?dl=0

I just save/loaded the game right away and the error didn’t pop up again… the game was in pause the whole time so nothing (should have) changed since the error occured so I don’t understand what’s causing it :confused:

develop 2521 - same error on load my game. :
develop-2521 (x64)
radiant/modules/entities.luac:86: attempt to index local ‘entity’ (a nil value)
stack traceback:
radiant/modules/events.luac:68: in function <radiant/modules/events.luac:65>
radiant/modules/entities.luac:86: in function 'get_world_grid_location’
stonehearth/services/server/town/town.luac:97: in function '?'
stonehearth/services/server/town/town.luac:30: in function '_restore_saved_calls’
stonehearth/services/server/town/town.luac:11: in function '_on_game_loaded’
stonehearth/services/server/town/town.luac:9: in function 'obj’
radiant/modules/events.luac:15: in function 'self’
radiant/modules/events.luac:80: in function <radiant/modules/events.luac:78>
[C]: in function 'xpcall’
radiant/modules/events.luac:78: in function <radiant/modules/events.luac:70>

and after 5s a new error :
develop-2521 (x64)
…earth/services/server/calendar/calendar_service.luac:91: attempt to call method ‘is_dead’ (a nil value)
stack traceback:
radiant/modules/events.luac:68: in function ‘is_dead’
…earth/services/server/calendar/calendar_service.luac:91: in function ‘_reset_all_alarms’
…earth/services/server/calendar/calendar_service.luac:111: in function 'fn’
radiant/modules/events.luac:79: in function <radiant/modules/events.luac:78>
[C]: in function 'xpcall’
radiant/modules/events.luac:78: in function 'trigger’
radiant/modules/events.luac:97: in function '_update’
radiant/server.luac:19: in function <radiant/server.luac:17>

I dont build using the design building before the save. I have one worker / job and 1 soldat and 2 simple worker… (It is a new game in develop 2521)

I used command loot a lot and created 1 party with 1 guy.

–> need to retry a new game…

1 Like

Same error for 2521. Newly reinstalled game. First time opening, playing, saving since the reinstall. Got this error loading the first save, autosave wasn’t active

1 Like

Does anyone have a save where this is happening?

Fixed for the next patch. Thanks guys!

1 Like

I am dying for the next path…
If only i have a next version in the same time of the Desktop Tuesday :slight_smile:
But i know…but even so…