3 errors when attacking crypt

I was destroying a set of 3 crypts that were placed close toeachother and I attacked the candle rather then the building itself


develop-2807 (x64)
...earth/components/attributes/attributes_component.lua:72: bad argument #1 to 'pairs' (table expected, got nil)
stack traceback:
	[C]: ?
	[C]: in function 'pairs'
	...earth/components/attributes/attributes_component.lua:72: in function <...earth/components/attributes/attributes_component.lua:70>
	[C]: in function 'add_component'
	...tonehearth/services/server/combat/combat_service.lua:69: in function 'battery'
	...h/ai/actions/combat/attack_melee_adjacent_action.lua:115: in function 'fn'
	radiant/controllers/nonpersistent_timer.lua:56: in function 'fire'
	radiant/controllers/time_tracker_controller.lua:82: in function <radiant/controllers/time_tracker_controller.lua:82>
	[C]: in function 'xpcall'
	radiant/controllers/time_tracker_controller.lua:82: in function 'set_now'
	...hearth/services/server/calendar/calendar_service.lua:374: in function '_on_event_loop'
	...hearth/services/server/calendar/calendar_service.lua:37: in function 'instance'
	radiant/modules/events.lua:226: in function <radiant/modules/events.lua:220>
	[C]: in function 'xpcall'
	radiant/modules/events.lua:220: in function 'trigger'
	radiant/modules/events.lua:283: in function '_trigger_gameloop'
	radiant/modules/events.lua:334: in function '_update'
	radiant/server.lua:62: in function <radiant/server.lua:58>

develop-2807 (x64)
c++ exception: lua runtime error
stack traceback:
	[C]: in function 'add_component'
	...tonehearth/services/server/combat/combat_service.lua:69: in function 'battery'
	...h/ai/actions/combat/attack_melee_adjacent_action.lua:115: in function 'fn'
	radiant/controllers/nonpersistent_timer.lua:56: in function 'fire'
	radiant/controllers/time_tracker_controller.lua:82: in function <radiant/controllers/time_tracker_controller.lua:82>
	[C]: in function 'xpcall'
	radiant/controllers/time_tracker_controller.lua:82: in function 'set_now'
	...hearth/services/server/calendar/calendar_service.lua:374: in function '_on_event_loop'
	...hearth/services/server/calendar/calendar_service.lua:37: in function 'instance'
	radiant/modules/events.lua:226: in function <radiant/modules/events.lua:220>
	[C]: in function 'xpcall'
	radiant/modules/events.lua:220: in function 'trigger'
	radiant/modules/events.lua:283: in function '_trigger_gameloop'
	radiant/modules/events.lua:334: in function '_update'
	radiant/server.lua:62: in function <radiant/server.lua:58>

develop-2807 (x64)
...tonehearth/services/server/combat/combat_service.lua:70: attempt to call method 'get_attribute' (a nil value)
stack traceback:
	radiant/modules/common.lua:171: in function 'get_attribute'
	...tonehearth/services/server/combat/combat_service.lua:70: in function 'battery'
	...h/ai/actions/combat/attack_melee_adjacent_action.lua:115: in function 'fn'
	radiant/controllers/nonpersistent_timer.lua:56: in function 'fire'
	radiant/controllers/time_tracker_controller.lua:82: in function <radiant/controllers/time_tracker_controller.lua:82>
	[C]: in function 'xpcall'
	radiant/controllers/time_tracker_controller.lua:82: in function 'set_now'
	...hearth/services/server/calendar/calendar_service.lua:374: in function '_on_event_loop'
	...hearth/services/server/calendar/calendar_service.lua:37: in function 'instance'
	radiant/modules/events.lua:226: in function <radiant/modules/events.lua:220>
	[C]: in function 'xpcall'
	radiant/modules/events.lua:220: in function 'trigger'
	radiant/modules/events.lua:283: in function '_trigger_gameloop'
	radiant/modules/events.lua:334: in function '_update'
	radiant/server.lua:62: in function <radiant/server.lua:58>

Interestingly… I received this same error tonight on 2807. In my case, I was somehow able to place an attack order on one of my own tombstones, or at least I think that’s what happened, which generated this same engine error. Screenshot:

2 Likes

Right now, if you give a command to attack an object with no HP, you will get an error. Looking into this. :slight_smile:

4 Likes