Page 1 of 1

CSGO Linux - Server crash on player.kick

Posted: Wed Jun 19, 2019 1:05 pm
by velocity
When I use player.kick server crashes. I haven't tested with player.ban but I assume it is the same as the player is also kicked.

Re: CSGO Linux - Server crash on player.kick

Posted: Wed Jun 19, 2019 6:43 pm
by Ayuto
I'm unable to reproduce the issue using this snippet:

Syntax: Select all

from events import Event
from players.entity import Player

@Event('player_say')
def player_say(event):
player = Player.from_userid(event['userid'])
player.kick('blabla')
# player.kick() works as well

Re: CSGO Linux - Server crash on player.kick

Posted: Thu Jun 20, 2019 9:55 am
by velocity
It is crashing for me, I do have SourceMod with many plugins, but the kick plugin is the only source python plugin.

When I use queue_command_string("kickid ...") no crashes, but if you are unable to reproduce that's very unfortunate. I'll have to run some more tests then. Did you test with linux, csgo?

Edit:
For some reason, delaying it by 1 tick works, so player.delay(0, player.kick, args=("Dasd",)) no crash.

Re: CSGO Linux - Server crash on player.kick

Posted: Thu Jun 20, 2019 3:52 pm
by Ayuto
Does it crash if you use my snippet above? What happens if you don't use a kick message? What's the output of "sp info" and "sm plugin list"? And could you please show me your code that causes the crash?

Edit: Yes, tested it with CS:GO on Linux.