Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playerkiller crashing server #9

Closed
9joshua opened this issue Aug 20, 2018 · 3 comments
Closed

Playerkiller crashing server #9

9joshua opened this issue Aug 20, 2018 · 3 comments

Comments

@9joshua
Copy link

9joshua commented Aug 20, 2018

When the playerkiller is activated my server crashes and Minetest says an internal server error occurred. From the logs...

2018-08-19 19:59:09: ERROR[Main]: ServerError: AsyncErr: environment_Step: Runtime error from mod '*builtin*' in callback environment_Step(): ...s/MoreMesecons-master/moremesecons_playerkiller/init.lua:33: attempt to concatenate local 'nearest' (a userdata value)
2018-08-19 19:59:09: ERROR[Main]: stack traceback:
2018-08-19 19:59:09: ERROR[Main]: 	...s/MoreMesecons-master/moremesecons_playerkiller/init.lua:33: in function 'action_on'
2018-08-19 19:59:09: ERROR[Main]: 	...minetest_game/mods/mesecons-master/mesecons/internal.lua:190: in function <...minetest_game/mods/mesecons-master/mesecons/internal.lua:183>
2018-08-19 19:59:09: ERROR[Main]: 	...etest_game/mods/mesecons-master/mesecons/actionqueue.lua:93: in function 'execute'
2018-08-19 19:59:09: ERROR[Main]: 	...etest_game/mods/mesecons-master/mesecons/actionqueue.lua:84: in function <...etest_game/mods/mesecons-master/mesecons/actionqueue.lua:61>
2018-08-19 19:59:09: ERROR[Main]: 	/usr/share/games/minetest/builtin/game/register.lua:420: in function </usr/share/games/minetest/builtin/game/register.lua:400>
2018-08-19 19:59:09: ERROR[Main]: stack traceback:
@HybridDog
Copy link
Collaborator

HybridDog commented Aug 20, 2018

paly2, I think there should be nearest:get_player_name().

nearest:set_hp(0)
minetest.log("action", "Player "..owner.." kills player "..nearest.." using a MoreMesecons Player Killer.")

2b19f4a#diff-3051ac1ea99e03afbe02c1dec38adbe9

@paly2
Copy link
Collaborator

paly2 commented Aug 20, 2018

Oh yeah definitely (I don't see how I can have left such an enormous mistake)

@paly2 paly2 closed this as completed in 2b2faec Aug 20, 2018
@9joshua
Copy link
Author

9joshua commented Aug 20, 2018

Just confirming this fixed the problem. Thanks for the fast response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants