Guild icon
Teeworlds
IRC / bridge
One-way IRC channel bridge. If you want to be able to send messages to IRC, contact @Dune or @heinrich5991. https://www.teeworlds.com/?page=docs&wiki=rules/irc_rules
Between 2020-07-15 00:00:00Z and 2020-07-16 00:00:00Z
Avatar
[quakenet] ChillerDragon BOT 2020-07-15 08:40:55Z
oh thats bad @jxsl13 yea i wait for the first message which gives me ip and then assign the name of the next message to it
08:41
id*
08:42
oh hm looking at my code it could still work
08:42
[server]: player is ready. ClientID=0 addr=172.20.10.9:52244 tells you a new player joined
08:43
[game]: team_join player='0:ChillerDragon' team=0 then you parse id here and assign the player a name
08:43
so order doesnt matter since both include ids
Avatar
it might work. as id is shared
08:44
yeah
Avatar
[quakenet] ChillerDragon BOT 2020-07-15 08:46:16Z
the big trap is tho that the second message does not gurantee to have a name
08:46
in like 1 out of 1000 it is a invalid name
Avatar
Really? I thought that log message couldn't happen before we already have startinfo
Avatar
[quakenet] ChillerDragon BOT 2020-07-15 08:48:40Z
[2020-07-13 12:14:40][server]: player is ready. ClientID=2 addr=XXX.XXX.XXX.XXX:44228 [2020-07-13 12:14:40][game]: Teams are balanced (red=2 blue=1) [2020-07-13 12:14:40][game]: kill killer=&#3...
08:48
this is one is easy because there is another message clearing it up
08:49
but i already had cases with team_join connecting followed by pickup message with name and nothing inbetween
08:49
if i remember correctly
08:50
@Learath2 its super rare my server crashed like twice because of that since its running
08:51
maybe not 1 of 1000 but 1 of 5000 idk
Avatar
Oh this is completely luck based
08:52
ENTERGAME happens before STARTINFO
Avatar
[quakenet] ChillerDragon BOT 2020-07-15 08:53:25Z
yea thats not too nice :/
Avatar
Actually, no I don't see why that's happening
08:56
ENTERGAME won't happen before you get a SV_READYTOENTER which you won't get before you send STARTINFO
Avatar
I might guess that it's simply an empty nickname?
Avatar
[quakenet] ChillerDragon BOT 2020-07-15 11:49:12Z
no but there are no name changes in 0.7 @jxsl13 so it can not be first a empty nickname interpreted as (connecting) and then a different name
Avatar
hm, read the logs in the issue.
13:23
team_join message might be sent to the logs too early.
Exported 27 message(s)