stujones11 / shooter

First Person Shooter Mod for Minetest
Other
30 stars 18 forks source link

server crash #11

Closed ghost closed 8 years ago

ghost commented 8 years ago

2016-03-28 14:17:10: ACTION[Server]: slt right-clicks object 17610: LuaEntitySAO at (-672,-1501,-450) 2016-03-28 14:17:16: ERROR[Main]: ServerError: Lua: Runtime error from mod 'shooter' in callback luaentity_Rightclick(): ...ome/ubuntu/minetest/bin/../builtin/common/v$ 2016-03-28 14:17:16: ERROR[Main]: stack traceback: 2016-03-28 14:17:16: ERROR[Main]: ...ome/ubuntu/minetest/bin/../builtin/common/vector.lua:100: in function 'subtract' 2016-03-28 14:17:16: ERROR[Main]: /home/ubuntu/.minetest/mods/shooter/turret.lua:94: in function </home/ubuntu/.minetest/mods/shooter/turret.lua:82>

stujones11 commented 8 years ago

Can you post a few more lines of the traceback? It looks like a problem with the turret.

stujones11 commented 8 years ago

Actually, there is no need, it's just hidden by the markdown formatting. Clearly player:getpos() is returning 'nil' for some reason, I will add a check for that asap. Thank you for reporting the issue.

stujones11 commented 8 years ago

This issue should now be fixed, please let me know if you have any further problems with it.