Assertion Failed bug on Building Teardown

Summary:
I commanded my hearthlings to teardown a fully built clay-roofed stone building and recieved a bug. I am running Bastioneers, more fences, and debugtools mods, but I don’t think they’re relevant to this bug
Steps to reproduce:

  1. Build a clay and stone building
  2. Select to remove it
  3. Recieve this error:
release-504 (x64)
radiant/modules/entities.lua:22: assertion failed: Attempting to create an entity without a uri. If it is a temporary entity that shouldn't be saved, use stonehearth:object:transient
stack traceback:
	[C]: in function 'error'
	radiant/modules/common.lua:422: in function 'assert'
	radiant/modules/entities.lua:22: in function 'create_entity'
	...th/ai/actions/teardown_structure_adjacent_action.lua:61: in function <...th/ai/actions/teardown_structure_adjacent_action.lua:50>
	[C]: ?
	[C]: ?
	[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]: in function 'run'
	stonehearth/components/ai/ai_component.lua:533: in function <stonehearth/components/ai/ai_component.lua:518>
	[C]: in function 'xpcall'
	radiant/modules/common.lua:234: in function 'xpcall'
	stonehearth/components/ai/ai_component.lua:518: in function '_thread_main'
	stonehearth/services/server/threads/thread.lua:249: in function <stonehearth/services/server/threads/thread.lua:246>
	[C]: in function 'xpcall'
	radiant/modules/common.lua:234: in function 'xpcall'
	stonehearth/services/server/threads/thread.lua:246: in function 'f'
	radiant/lib/env.lua:15: in function <radiant/lib/env.lua:14>

I’m deep into this save, so there might be a lot leading up to this bug, I could post a save or a building template but I’m not sure what you need. :smiley:

Looks like an with bildung something but it cant find the Uri… So it looks like an issue of one of the mods :wink:

I know this Error to Good when i FAIL at modding xD

I got this error when removing a building that they had stopped building

release-519 (x64)
radiant/modules/entities.lua:22: assertion failed: Attempting to create an entity without a uri. If it is a temporary entity that shouldn't be saved, use stonehearth:object:transient
stack traceback:
	[C]: in function 'error'
	radiant/modules/common.lua:422: in function 'assert'
	radiant/modules/entities.lua:22: in function 'create_entity'
	...th/ai/actions/teardown_structure_adjacent_action.lua:61: in function <...th/ai/actions/teardown_structure_adjacent_action.lua:50>
	[C]: ?
	[C]: ?
	[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]: in function 'run'
	stonehearth/components/ai/ai_component.lua:533: in function <stonehearth/components/ai/ai_component.lua:518>
	[C]: in function 'xpcall'
	radiant/modules/common.lua:234: in function 'xpcall'
	stonehearth/components/ai/ai_component.lua:518: in function '_thread_main'
	stonehearth/services/server/threads/thread.lua:249: in function <stonehearth/services/server/threads/thread.lua:246>
	[C]: in function 'xpcall'
	radiant/modules/common.lua:234: in function 'xpcall'
	stonehearth/services/server/threads/thread.lua:246: in function 'f'
	radiant/lib/env.lua:15: in function <radiant/lib/env.lua:14>

Hi there,
Thank you for reporting this.
It seems like hearthlings do not know how to teardown clay houses. Or houses made of any resource other than stone or wood.
I am putting in a fix now, though it will require modders to update their mods for any custom resources they might add to the game.
Thanks
-Yang

2 Likes

EDIT: hum this second post happened when I was mining… I was not tearing anything down at that time :expressionless:

huh… @Fralee the error you just posted was the same as the one over here you posted earlier.

1 Like

Neat! Glad you found a fix! :slightly_smiling: