Page 1 of 1

Display message to players - csgo?

Posted: Sat May 10, 2014 7:16 pm
by Tuck
This code bellow seems to crash the server a few seconds after it's triggered

Syntax: Select all

SayText2(message='\x03%s\x01 has earned the achievement \x05%s' % (player.kiwi['tag'], achievement.name)).send()


https://github.com/Source-Python-Dev-Team/Source.Python/issues/4

I'm going to guess that this protobuf is the new saytext in csgo? (i remember a little about it)

However do we have something a like saytext2 that won't crash the server for a temporary fix ?

Posted: Sat May 10, 2014 7:41 pm
by satoon101
I do not crash when using SayText2, and it is not even mentioned in the thread the issue links to. I would imagine there is something else in your script causing the crash.

Posted: Sat May 10, 2014 7:58 pm
by Tuck
It's only when i use Saytext2 it does come up with some weird [] symbol infront of all names i might be using it wrong?, i'm running on linux with latest release

infront of all saytext2 messages i do like that i get [] infront of the message (no idea why)

i'll try to use the saytext 2 in a different way and see if it courses the crash ill post later.

Posted: Sat May 10, 2014 10:23 pm
by Tuck
I think my problem is i'm calling saytext2 from without main thread. doing some more testing but i'm almost sure this is it.

Posted: Sat May 10, 2014 10:47 pm
by satoon101
I get the box at the beginning of the string, too. Not sure when that started happening, but we'll look into it.