Poikilos / mock_tnt

This Minetest mod creates propulsive, blinding, but non-damaging TNT that still adds to gameplay as an alternative to disabling TNT.
MIT License
0 stars 0 forks source link

Crashes on explosion of mob #4

Open Poikilos opened 9 months ago

Poikilos commented 9 months ago

nil is sent to vector.add in calc_velocity

2024-01-21 17:21:18: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod '' in callback node_on_timer(): /home/owner/finetest-rsync/bin/../builtin/common/vector.lua:100: attempt to perform arithmetic on local 'b' (a nil value)
2024-01-21 17:21:18: ERROR[Main]: stack traceback:
2024-01-21 17:21:18: ERROR[Main]:   /home/owner/finetest-rsync/bin/../builtin/common/vector.lua:100: in function 'add'
2024-01-21 17:21:18: ERROR[Main]:   ...n/../games/bucket_game/mods/coderbuild/mock_tnt/init.lua:126: in function 'calc_velocity'
2024-01-21 17:21:18: ERROR[Main]:   ...n/../games/bucket_game/mods/coderbuild/mock_tnt/init.lua:175: in function 'entity_physics'
2024-01-21 17:21:18: ERROR[Main]:   ...n/../games/bucket_game/mods/coderbuild/mock_tnt/init.lua:379: in function 'boom'
2024-01-21 17:21:18: ERROR[Main]:   ...n/../games/bucket_game/mods/coderbuild/mock_tnt/init.lua:485: in function <...n/../games/bucket_game/mods/coderbuild/mock_tnt/init.lua:484>
Poikilos commented 9 months ago

May still crash:

2024-01-28 11:21:24: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'coderfruit' in callback node_on_timer(): Runtime error from mod 'coderfruit' in callback luaentity_Punch(): .../../games/bucket_game/mods/coderfood/coderfruit/init.lua:161: attempt to in
2024-01-28 11:21:24: ERROR[Main]: dex local 'inv' (a nil value)
2024-01-28 11:21:24: ERROR[Main]: stack traceback:
2024-01-28 11:21:24: ERROR[Main]:   .../../games/bucket_game/mods/coderfood/coderfruit/init.lua:161: in function <.../../games/bucket_game/mods/coderfood/coderfruit/init.lua:156>
2024-01-28 11:21:24: ERROR[Main]:   [C]: in function 'punch'
2024-01-28 11:21:24: ERROR[Main]:   ...n/../games/bucket_game/mods/coderbuild/mock_tnt/init.lua:189: in function 'entity_physics'
2024-01-28 11:21:24: ERROR[Main]:   ...n/../games/bucket_game/mods/coderbuild/mock_tnt/init.lua:388: in function 'boom'
2024-01-28 11:21:24: ERROR[Main]:   ...n/../games/bucket_game/mods/coderbuild/mock_tnt/init.lua:494: in function <...n/../games/bucket_game/mods/coderbuild/mock_tnt/init.lua:493>
2024-01-28 11:21:24: ERROR[Main]: stack traceback:
2024-01-28 11:21:24: ERROR[Main]:   [C]: in function 'punch'
2024-01-28 11:21:24: ERROR[Main]:   ...n/../games/bucket_game/mods/coderbuild/mock_tnt/init.lua:189: in function 'entity_physics'
2024-01-28 11:21:24: ERROR[Main]:   ...n/../games/bucket_game/mods/coderbuild/mock_tnt/init.lua:388: in function 'boom'
2024-01-28 11:21:24: ERROR[Main]:   ...n/../games/bucket_game/mods/coderbuild/mock_tnt/init.lua:494: in function <...n/../games/bucket_game/mods/coderbuild/mock_tnt/init.lua:493>