Barotrauma icon indicating copy to clipboard operation
Barotrauma copied to clipboard

people are leaving or staying in spectator after connection

Open DrBruhman opened this issue 1 year ago • 2 comments

why people are leaving or staying in spectator after connection? vanilla, respawn enabled, and working for some people, low(50-150) ping. my pub cant get population more than 4 with this phenomenon. no errors(mostly). unfun fact that most people that join and respawns correctly are ruiners.

DrBruhman avatar Feb 16 '24 20:02 DrBruhman

Thank you for the report!

I'm not entirely sure I understand the issue correctly. What do you mean by "leaving or staying in spectator" - that the players become spectators when a new round starts, or that they don't get to spawn even if they want to play as non-spectators? Do the clients randomly switch between those two, or does each client seem to get "locked" as either a spectator or non-spectator?

Are you using some kind of mods or non-default server settings?

Regalis11 avatar Feb 19 '24 12:02 Regalis11

me and my friend playing campaign on my vanilla server. sometimes randoms connect and join mid-round on shuttle but mostly they just stay in spectator mode from my perspective(tab menu), and stays in that state for couple minutes before leaving. probably its issue from their side, but it happens too often. or they just pressed spectator flag for some reason idk. next time this happens i should contact them and ask

DrBruhman avatar Feb 21 '24 06:02 DrBruhman

I believe I found the cause to this. Seems that the server interprets the response to the "do you wait for the next round to respawn" as "do you want to spectate". Fixed in https://github.com/FakeFishGames/Barotrauma-development/commit/5965a1a17bf87b5926a130f855afbabbcf08fe48 (commit in our private repo).

Regalis11 avatar Mar 15 '24 12:03 Regalis11

Tested, working correctly. Closing.

Rokvach avatar May 29 '24 03:05 Rokvach