stujones11 / shooter

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

Crash when killed by granade #34

Closed BrunoMine closed 5 years ago

BrunoMine commented 5 years ago

The first time I threw a grenade in a clean place. The explosion was normal. Then I threw the grenade at another player and took the error.

Shooter mod branch: master Minetest version: 5.0.0-dev

2019-03-23 18:37:47: ACTION[Server]: 222s takes shooter_grenade:grenade from creative inventory
2019-03-23 18:37:49: ACTION[Server]: 222s uses shooter_grenade:grenade, pointing at [nothing]
2019-03-23 18:37:53: ACTION[Server]: 222s uses shooter_grenade:grenade, pointing at [nothing]
2019-03-23 18:37:54: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'shooter_grenade' in callback luaentity_Step(): .../minetest-master/bin/../mods/shooter/shooter/api.lua:212: attempt to index local 'ent' (a nil value)
2019-03-23 18:37:54: ERROR[Main]: stack traceback:
2019-03-23 18:37:54: ERROR[Main]:   .../minetest-master/bin/../mods/shooter/shooter/api.lua:212: in function 'punch_object'
2019-03-23 18:37:54: ERROR[Main]:   .../minetest-master/bin/../mods/shooter/shooter/api.lua:381: in function 'blast'
2019-03-23 18:37:54: ERROR[Main]:   ...-master/bin/../mods/shooter/shooter_grenade/init.lua:49: in function <...-master/bin/../mods/shooter/shooter_grenade/init.lua:40>
BrunoMine commented 5 years ago

With rocket gun is the same problem

2019-03-23 18:43:33: ACTION[Server]: target uses shooter_rocket:rocket_gun, pointing at [nothing]
2019-03-23 18:43:34: ACTION[Server]: target uses shooter_rocket:rocket_gun_loaded, pointing at [nothing]
2019-03-23 18:43:36: ACTION[Server]: target uses shooter_rocket:rocket_gun, pointing at [nothing]
2019-03-23 18:43:37: ACTION[Server]: target uses shooter_rocket:rocket_gun_loaded, pointing at [nothing]
2019-03-23 18:43:38: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'shooter_rocket' in callback luaentity_Step(): .../minetest-master/bin/../mods/shooter/shooter/api.lua:212: attempt to index local 'ent' (a nil value)
2019-03-23 18:43:38: ERROR[Main]: stack traceback:
2019-03-23 18:43:38: ERROR[Main]:   .../minetest-master/bin/../mods/shooter/shooter/api.lua:212: in function 'punch_object'
2019-03-23 18:43:38: ERROR[Main]:   .../minetest-master/bin/../mods/shooter/shooter/api.lua:381: in function 'blast'
2019-03-23 18:43:38: ERROR[Main]:   ...t-master/bin/../mods/shooter/shooter_rocket/init.lua:55: in function <...t-master/bin/../mods/shooter/shooter_rocket/init.lua:46>
stujones11 commented 5 years ago

Thanks for the report, hopefully this should be fixed by ae2bb7fd6bed2ebb461b5ba1b892c721a5b9f817 ?

Edit: Force pushed a correction. Edit 2: Another force pushed improvement

BrunoMine commented 5 years ago

Is Grappling gun useless?

BrunoMine commented 5 years ago

You push into master branch. Then i use this for test now

BrunoMine commented 5 years ago

Thanks for the report, hopefully this should be fixed by ae2bb7f ?

Fixed!

stujones11 commented 5 years ago

Is Grappling gun useless?

It was working last time I tested it, will check it again

PS: Thanks for the update :)