CSGO Linux - Server crash on player.kick

Please post any questions about developing your plugin here. Please use the search function before posting!
User avatar
velocity
Senior Member
Posts: 187
Joined: Sat May 10, 2014 6:17 pm

CSGO Linux - Server crash on player.kick

Postby velocity » Wed Jun 19, 2019 1:05 pm

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.
User avatar
Ayuto
Project Leader
Posts: 2029
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: CSGO Linux - Server crash on player.kick

Postby Ayuto » Wed Jun 19, 2019 6:43 pm

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
User avatar
velocity
Senior Member
Posts: 187
Joined: Sat May 10, 2014 6:17 pm

Re: CSGO Linux - Server crash on player.kick

Postby velocity » Thu Jun 20, 2019 9:55 am

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.
User avatar
Ayuto
Project Leader
Posts: 2029
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: CSGO Linux - Server crash on player.kick

Postby Ayuto » Thu Jun 20, 2019 3:52 pm

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.

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 7 guests