pandorabox-io / pandorabox_custom

pandorabox server customization mod
https://pandorabox.io
MIT License
4 stars 8 forks source link

Attempting to fire a cannon w/ the new "spacecannon_unrestircted" priv now crashes the entire server. #38

Closed dennisjenkins75 closed 3 years ago

dennisjenkins75 commented 3 years ago

https://pandorabox.io/crashlogs/crash_2021-03-06_17-07.txt

Tl;DR: "attempt to call field 'check_player_priv' (a nil value)"

Context: https://github.com/pandorabox-io/pandorabox_custom/commit/863fd6e987533fb54d5fc690331acc4eb7f7efc9

2021-03-06 17:07:31: ERROR[Main]: ServerError: AsyncErr: environment_Step: Runtime error from mod 'afkkick' in callback environment_Step(): /data/world//worldmods/pandorabox_custom/spacecannon.lua:3: attempt to call field 'check_player_priv' (a nil value)
2021-03-06 17:07:31: ERROR[Main]: stack traceback:
2021-03-06 17:07:31: ERROR[Main]:   /data/world//worldmods/pandorabox_custom/spacecannon.lua:3: in function 'can_shoot'
2021-03-06 17:07:31: ERROR[Main]:   /data/world//worldmods/spacecannon/util.lua:42: in function 'fire'
2021-03-06 17:07:31: ERROR[Main]:   /data/world//worldmods/spacecannon/cannon.lua:115: in function 'action_on'
2021-03-06 17:07:31: ERROR[Main]:   /data/world//worldmods/spacecannon/digiline.lua:51: in function 'digiline_handler_fire'
2021-03-06 17:07:31: ERROR[Main]:   /data/world//worldmods/spacecannon/digiline.lua:80: in function 'action'
2021-03-06 17:07:31: ERROR[Main]:   /data/world//worldmods/digicontrol/override.lua:45: in function 'transmit'
2021-03-06 17:07:31: ERROR[Main]:   /data/world//worldmods/digicontrol/override.lua:78: in function 'receptor_send'
2021-03-06 17:07:31: ERROR[Main]:   ...orld//worldmods/mesecons/mesecons_luacontroller/init.lua:724: in function <...orld//worldmods/mesecons/mesecons_luacontroller/init.lua:718>
2021-03-06 17:07:31: ERROR[Main]:   /data/world//worldmods/mesecons/mesecons/actionqueue.lua:137: in function 'old_execute'
2021-03-06 17:07:31: ERROR[Main]:   /data/world//worldmods/mesecons_debug/overrides.lua:7: in function 'f'
2021-03-06 17:07:31: ERROR[Main]:   /data/world//worldmods/monitoring/metrictypes/counter.lua:42: in function 'execute'
2021-03-06 17:07:31: ERROR[Main]:   /data/world//worldmods/mesecons/mesecons/actionqueue.lua:111: in function </data/world//worldmods/mesecons/mesecons/actionqueue.lua:73>
2021-03-06 17:07:31: ERROR[Main]:   /usr/local/share/minetest/builtin/game/register.lua:422: in function </usr/local/share/minetest/builtin/game/register.lua:406>
2021-03-06 17:07:31: ERROR[Main]: stack traceback:
S-S-X commented 3 years ago

Fixed. Edit. commit: https://github.com/pandorabox-io/pandorabox_custom/commit/778b6e8b8c3badb7da0cb3447a5f91b58228e601

BuckarooBanzay commented 3 years ago

ugh :facepalm: i've made the same mistake a few days back :confounded: thanks @S-S-X, @dennisjenkins75 :+1: