minetest-mods/castle_gates

gate_functions.lua:149: in function 'get_door_layout' leads to core.check_player_privs expects a player or playername as argument.

Bastrabun opened this issue · 1 comments

On two separate occasions, some action related to castle_gates lead to a nullref. Unfortunately I don't know, what exactly the player did or what castle_gates node was involved.

First:

2021-01-20 02:38:02: ERROR[Main]: ServerError: AsyncErr: environment_Step: Runtime error from mod '' in callback environment_Step(): ...tlive1/.minetest/mods/monitoring/metrictypes/counter.lua:42: core.check_player_privs expects a player or playername as argument.
2021-01-20 02:38:02: ERROR[Main]: stack traceback:
2021-01-20 02:38:02: ERROR[Main]: 	[C]: in function 'error'
2021-01-20 02:38:02: ERROR[Main]: 	...mtlive1/5.3.0/Minetest_live/bin/../builtin/game/misc.lua:11: in function 'f'
2021-01-20 02:38:02: ERROR[Main]: 	...tlive1/.minetest/mods/monitoring/metrictypes/counter.lua:42: in function 'check_player_privs'
2021-01-20 02:38:02: ERROR[Main]: 	...e/mtlive1/.minetest/mods/castle_gates/gate_functions.lua:149: in function 'get_door_layout'
2021-01-20 02:38:02: ERROR[Main]: 	...e/mtlive1/.minetest/mods/castle_gates/gate_functions.lua:330: in function 'trigger_gate'
2021-01-20 02:38:02: ERROR[Main]: 	...e/mtlive1/.minetest/mods/castle_gates/gate_functions.lua:395: in function 'func'
2021-01-20 02:38:02: ERROR[Main]: 	...ive1/5.3.0/Minetest_live/bin/../builtin/common/after.lua:20: in function 'globalstep'
2021-01-20 02:38:02: ERROR[Main]: 	...mtlive1/.minetest/mods/monitoring/builtin/globalstep.lua:32: in function <...mtlive1/.minetest/mods/monitoring/builtin/globalstep.lua:24>
2021-01-20 02:38:02: ERROR[Main]: 	...ve1/5.3.0/Minetest_live/bin/../builtin/game/register.lua:429: in function <...ve1/5.3.0/Minetest_live/bin/../builtin/game/register.lua:413>
2021-01-20 02:38:02: ERROR[Main]: stack traceback:

Second:

021-02-06 11:00:25: ERROR[Main]: ServerError: AsyncErr: environment_Step: Runtime error from mod '' in callback environment_Step(): ...tlive1/.minetest/mods/monitoring/metrictypes/counter.lua:42: core.check_player_privs expects a player or playername as argument.
2021-02-06 11:00:25: ERROR[Main]: stack traceback:
2021-02-06 11:00:25: ERROR[Main]: 	[C]: in function 'error'
2021-02-06 11:00:25: ERROR[Main]: 	...mtlive1/5.3.0/Minetest_live/bin/../builtin/game/misc.lua:11: in function 'f'
2021-02-06 11:00:25: ERROR[Main]: 	...tlive1/.minetest/mods/monitoring/metrictypes/counter.lua:42: in function 'check_player_privs'
2021-02-06 11:00:25: ERROR[Main]: 	...e/mtlive1/.minetest/mods/castle_gates/gate_functions.lua:149: in function 'get_door_layout'
2021-02-06 11:00:25: ERROR[Main]: 	...e/mtlive1/.minetest/mods/castle_gates/gate_functions.lua:330: in function 'trigger_gate'
2021-02-06 11:00:25: ERROR[Main]: 	...e/mtlive1/.minetest/mods/castle_gates/gate_functions.lua:395: in function 'func'
2021-02-06 11:00:25: ERROR[Main]: 	...ive1/5.3.0/Minetest_live/bin/../builtin/common/after.lua:20: in function 'globalstep'
2021-02-06 11:00:25: ERROR[Main]: 	...mtlive1/.minetest/mods/monitoring/builtin/globalstep.lua:32: in function <...mtlive1/.minetest/mods/monitoring/builtin/globalstep.lua:24>
2021-02-06 11:00:25: ERROR[Main]: 	...ve1/5.3.0/Minetest_live/bin/../builtin/game/register.lua:429: in function <...ve1/5.3.0/Minetest_live/bin/../builtin/game/register.lua:413>
2021-02-06 11:00:25: ERROR[Main]: stack traceback:

For my reference 189

21b5a6c

EDIT: Feel free to @ me when you find such errors if nobody seems to be active.