Error - attempt to index local 'entity (a nil value) - in function 'get_player_id'

just got thise error, not exactly sure how and why It popped up

develop-2697 (x64)
co-routine failed: radiant/modules/entities.luac:88: attempt to index local 'entity' (a nil value)
stack traceback:
	radiant/modules/entities.luac:88: in function 'get_player_id'
	...h/services/server/population/population_service.luac:11: in function 'get_population'
	...onehearth/services/server/player/player_service.luac:14: in function 'get_kingdom' in function '_classify_entity_in_camp_region' in function '_test_camp' in function '?'
	radiant/modules/common.luac:107: in function 'invoke'
	...r/controllers/util/choose_location_outside_town.luac:24: in function '_try_location'
	...r/controllers/util/choose_location_outside_town.luac:60: in function '_try_finding_location_thread'
	...r/controllers/util/choose_location_outside_town.luac:31: in function 'f'
	radiant/lib/env.luac:8: in function <radiant/lib/env.luac:8>

Thanks! This has been fixed for the next build.


not a problem=]

is clay going tro be a supply that’s going to show up in a merchants store? haven’t been able to get any as of yet

latest alpha
I’ve had this game on 8 hrs.I’ve had many memory leaks.
The game has always fixed those with save and reload method.
At some point hearthlings failed to place a bed.I got a error code.
I continued to play until at 29 hearthlings the workers and only workers went idle.
They will eat and sleep.
The trappers AI is funky sometimes with only job checked traps full he will go do other things.
The trapper wants to chop harvest and haul items.
Steps to reproduce:

  1. This is hard to reproduce because you realy have to tax the system and play for along while.
  2. I did however and its here again.

Expected Results:
Hearthlings to use the AI in therapist as well as build.
Actual Results:
workers went braindead will still move.I Guess they more or less space out anything thats not eating or sleeping.Trapper not to go chop wood or haul junk around.
The game was realy smooth!I managed to keep memory usuage down to 2.5GB or less by saving and reloading!cpu usuage 72%highest on launch the rest of the time at and around 50%.
Dual core testing 3.8ghz is still 100% cpu with all nonessential programs and processes trimmed off.(a little laggy but actualy palyable!)

Versions and Mods:
Latest steam.No mods
System Information:
Win 10 16GB quadcore 3.8ghz all drivers up to date.
Save upload on the way!

Heres the save also I have a bed placement issue on this that maybe unreleated.
The bed is ghost and will not place.

Hey @bloodist, this error was fixed in the latest build (2699). Going to mark as resloved for now. Please post in this thread again if you receive the same error in the latest build. PS. Please write the actual develop version in your post instead of “Latest Steam”. While we can see the exact version in your images, with the rapid cycle of releases during this stage of Alpha 13, “latest” is not correct for very long.


Thats very funny!I was just playing this game today and they released something while I was the download 9hrs ago.I’m grabing the new 1 now ty!

1 Like

I’m going to have to write another report for the trapper and bed issue.Which I just managed to reproduce again.

Sorry…but yes please write a separate report for each issue!