Source-1-Games icon indicating copy to clipboard operation
Source-1-Games copied to clipboard

[TF2] [L4D2] Casual: clients stuck on "Player Connecting" hold team slots, matches end up 2v7 or half empty

Open red556wind opened this issue 1 month ago • 62 comments

This started yesterday morning (Oct 29, CET) and it's happening across the whole of Casual. The scoreboard fills up with grayed-out "Player Connecting" entries that never turn into real players. They don't spawn. The server counts as full, so real players can't take those slots, and we end up playing 2v1, 3v1 or 2v4 with the rest slots stuck on connecting.

I'm pretty sure these are bots (headless clients that connect and never load in).

  • #5092, #5187 and #7656 are about players who are already in the server and sit in spectator or on the MOTD without picking a class, and can't be vote-kicked. These ones haven't joined yet. They're still "connecting", so there's no player to vote on.
  • #7784 is the closest one. It asks for a way to kick players who never load in. That would help, but with 10+ of them in a match nobody is going to vote them out one at a time, and the next wave just takes the same slots. The bigger problem is that they're allowed to hold a team slot at all.

My guess is that Casual puts everyone on a team before they connect, and the matchmaking system holds that slot until a timeout runs out (someone in #6969 says it's about 180 seconds). Either these clients somehow keep that timer from running out, or it doesn't apply to clients that never finish connecting. If that's right, it needs a fix on the server / matchmaking side:

  • a hard limit on how long a client can take to finish loading, even if it keeps the connection alive (long enough for slow PCs, but not unlimited)
  • free the team slot when that runs out, so a real player can take it
  • rate-limit, or give a matchmaking cooldown to, accounts/IPs that keep getting into matches and never load in

If you still think this is the same as #5092 / #5187, can you say which part? I see them as different problems.

red556wind avatar Oct 30 '26 07:10 red556wind

yep, please don't lazily mark it as a dupe @kisak-valve , it isn't a dupe, its a completely different topic / issue, though similar. almost any game i go into:

Image Image Image Image

Repurify avatar Oct 30 '26 07:10 Repurify

This does not appear to be a duplicate issue. How the game handles connecting players and lost connections are all related issues, but the cause and method of these seems to be different. "Player Connecting" is a reservation for players who have not yet joined the lobby, and the "slot reservation" system is an issue of its own.

Failed connections to the server take a long time for the slot reservation to be cleared, too long. Not to mention that there are some bot accounts with garbled usernames in Casual servers who join a server only to instantly leave.

Just like how much the "spectators can't be kicked" thing was abused in casual servers, this can be used in a similar way to block slots while not being able to report the accounts easily. I think it's worth getting it out of the way before it becomes a more exploited issue.

Professor-Heavy avatar Oct 30 '26 09:10 Professor-Heavy

This might aswell be endgame of casual of it dosent get a fix, nearly all games you join are like this.

red556wind avatar Oct 30 '26 09:10 red556wind

yep, please don't lazily mark it as a dupe

It's never lazily marked as a dupe lol

JoriKos avatar Oct 30 '26 10:10 JoriKos

4. > yep, please don't lazily mark it as a dupe

It's never lazily marked as a dupe lol

he marked mine as a dupe yesterday

Repurify avatar Oct 30 '26 10:10 Repurify

Probably because it was a duplicate

JoriKos avatar Oct 30 '26 10:10 JoriKos

6. Probably because it was a duplicate

literally outlined this same issue and he marked it as a dupe for https://github.com/ValveSoftware/Source-1-Games/issues/5092 / https://github.com/ValveSoftware/Source-1-Games/issues/5187, even though it isn't

Repurify avatar Oct 30 '26 11:10 Repurify

They're effectively the same issue, with bot accounts keeping player slots filled. The method is different, but this kind of issue is better as a comment on the original rather than a new issue each time.

JoriKos avatar Oct 30 '26 11:10 JoriKos

Same result, but not the same fix. Making spectators and classless players kickable (#5092 / #5187) wouldn't touch these, since they never finish loading in. It's the slot reservation that needs fixing. And this issue started to get very bad yesterday unlike the others

red556wind avatar Oct 30 '26 11:10 red556wind

Doesn't matter if it's the same fix though, the issues are similar enough that they could be under one big issue of bots filling up player slots and not playing, similarly how there was a mega issue for all bot crisis-related issues.

JoriKos avatar Oct 30 '26 11:10 JoriKos

Ok but due to this issue casual is unplayeble rn

red556wind avatar Oct 30 '26 11:10 red556wind

Hey.

Can confirm this is a distinct issue from #5092 or #5187, not a dupe. I've been playing the game for a long time and been seeing such "ghost" players for months already, they simply weren't as noticeable before. If my memory doesn't fail me, I first noticed such bots on the night of 13.04.26 on European servers, I assume they were just testing the concept. The main problem here, I believe, is that before this date, there was so-called "Vac3" existing in the game and it was strictly tied to the casual queue. In example, as soon as you launched the game on windows, you've received the "ServiceCall" from the steam coordinator, which is treated as the initial VAC challenge, then you should've responded with "os_version_info", "system_info" and wait for the coordinator to answer back with a module crc and the binary of it, which was loaded then in order to obtain "result_content" bytes, which coordinator verified. Only after a successful auth, you gained access to CASUAL QUEUE and ITEM DROPS. Any failure regarding it resulted in a queue auth error (CMsgPartyMMError with code 2, which is QUEUE_KICK_AUTH). Nowadays that type of authentication gone extinct and you don't even need anything aside of headless steam client, passing client version to the TF2 coordinator, sending pings to regions, starting a queue with map bits. I haven't seen a single instance of a bot like that before developers got rid of vac3 in the game.

Regarding "slot reservation", it is indeed related to this exact mechanism. As soon as the coordinator finds a match for a player, it immediately assigns them into a "lobby object", thus adding to the match's struct "CSOTFGameServerLobby", which has "repeated .CTFLobbyPlayerProto members = 2;" and "repeated .CTFLobbyPlayerProto pending_members = 49;". Seems like a good system, right? But the developers chose an odd implementation, where a client DOESN'T EVEN NEED TO CONNECT to the destination server itself via "SDR ip" or pass the "authticket" in order to be counted as a "Player". So you can simply occupy a slot for 180 seconds (3 minutes) until the coordinator eventually removes you from the "lobby object". A malicious actor can exploit this either with a headless TF2 client, which currently requires no authentication or with textmode bots. Very unfortunate!

Given all of that, I guess developers should come up with a fixes in the coordinator and SRCDS logic itself, not only game-server part. Maybe tie the slot reservation to the actual arrival at the destination server, like when the person passed the "authticket"? Game-servers and coordinator already have such mechanism because you are unable to queue in the same server as long as you're authed with it, even if you're not present in the lobby object under specific circumstances. Maybe rate-limit accounts being connected simultaneously to the TF2 gc? It's been an issue since the party-crasher incident, where bots bombed people with party invitations, using the same "headless TF2 client" setup. Or maybe even consider some form of authentication gate, since the removal of the only one "vac3" appears to drop the barrier for exploitation? Unsure if anything of that sounds "good", especially during the scary year of CVE's and people being armed with very smart frontier AI models that reverse anything, who knows.

asdhuioadsohui avatar Oct 30 '26 14:10 asdhuioadsohui

@kisak-valve Please don't treat this as a duplicate of the general "unkickable players in the scoreboard" threads since they describe an issue which happens due to a player who joins and never closes "MOTD" screen, staying in "TEAM_UNASSIGNED", so the kick controller rejects them because the team number doesn't match.

asdhuioadsohui avatar Oct 30 '26 14:10 asdhuioadsohui

Once again, the simplest fix is the best one:

Revert the game coordinator to the state before July 6th, 2016, also known as the Meet Your Match Update. Or in other words,

Bring Back Quickplay.

CowsertheKhelinace avatar Oct 30 '26 15:10 CowsertheKhelinace

15. Once again, the simplest fix is the best one: Revert the game coordinator to the state before July 6th, 2016, also known as the Meet Your Match Update. Or in other words, Bring Back Quickplay.

🤖🤖🤖

asdhuioadsohui avatar Oct 30 '26 15:10 asdhuioadsohui

@asdhuioadsohui You are incorrect: the player is never assigned to TEAM_UNASSIGNED; they are assigned to a team first, but they have a vote exception for players who aren't loaded yet. Therefore, any attempt to call a vote on a player who isn't loaded will be rejected.

Also, I'm not exactly sure, but in order to join a matchmaking server, the client needs a certificate from the game server.

programmedsun avatar Oct 30 '26 15:10 programmedsun

15. Once again, the simplest fix is the best one: Revert the game coordinator to the state before July 6th, 2016, also known as the Meet Your Match Update. Or in other words, Bring Back Quickplay.

🤖🤖🤖

The only bots here are the ones introduced by Casual Mode. Which by the way, spinbots already started showing up mere weeks after Meet Your Match launched.

CowsertheKhelinace avatar Oct 30 '26 15:10 CowsertheKhelinace

18. > > 15. Once again, the simplest fix is the best one: > > Revert the game coordinator to the state before July 6th, 2016, also known as the Meet Your Match Update. Or in other words, > > Bring Back Quickplay. > > > 🤖🤖🤖

     The only bots here are the ones introduced by Casual Mode. Which by the way, spinbots already started showing up mere weeks after Meet Your Match launched.

Quickplay is insecure compared to Matchmaking.

programmedsun avatar Oct 30 '26 15:10 programmedsun

17. @asdhuioadsohui You are incorrect: the player is never assigned to TEAM_UNASSIGNED; they are assigned to a team first, but they have a vote exception for players who aren't loaded yet. Therefore, any attempt to call a vote on a player who isn't loaded will be rejected. Also, I'm not exactly sure, but in order to join a matchmaking server, the client needs a certificate from the game server.

I'm pretty sure on the MOTD screen you're technically unassigned. Haven't confirmed it though.

zxz41 avatar Oct 30 '26 15:10 zxz41

17. @asdhuioadsohui You are incorrect: the player is never assigned to TEAM_UNASSIGNED; they are assigned to a team first, but they have a vote exception for players who aren't loaded yet. Therefore, any attempt to call a vote on a player who isn't loaded will be rejected. Also, I'm not exactly sure, but in order to join a matchmaking server, the client needs a certificate from the game server.

I've attached a magical thingy to the latest version of TF2 client and joined an official valve MM server. Until I've sent the "closedwelcomemenu" command by pressing continue on MOTD (The VGUI panel is called "info"), the "m_iTeamNum" netvar from entities datatable reported number "0", meaning I'm unassigned. As soon as I've skipped the panel, it immediately started saying "3", which is team blue.

Also you can take a look at these parts of the code:

  1. <Link removed by moderator>
  2. <Link removed by moderator>
Image

Let's keep the topic about the original issue with evil bot hosters, though.

asdhuioadsohui avatar Oct 30 '26 15:10 asdhuioadsohui