Bug: When joining multiple game rooms cannot toggle spectator status in the oldest room
Posted: 14 Jun 2021, 06:21
1- 1.6.20
2-
- Join a non game room.
- Create a game room, be a player.
- Create a second room, be a spectator.
- Try to switch to be a spectator in the first game room.
The client calls server.switchPlayer, with the roomId we want to switch. The server doesn't reply with expected onPlayerChanged event at all.
If in the first game room the player is a spectator when at launch or if no younger rooms are open, N additional rooms can be toggled with freedom and spectating or becoming a player can be effectively restricted or allowed with custom logic. All events are sent and received. As soon as that oldest room is set to a player again, they cannot switch to spectator.
4- Copy and paste the SmartFoxClient debug output obtained by turning on the debug flag.
Haven't done this yet, production server.
2-
- Join a non game room.
- Create a game room, be a player.
- Create a second room, be a spectator.
- Try to switch to be a spectator in the first game room.
The client calls server.switchPlayer, with the roomId we want to switch. The server doesn't reply with expected onPlayerChanged event at all.
If in the first game room the player is a spectator when at launch or if no younger rooms are open, N additional rooms can be toggled with freedom and spectating or becoming a player can be effectively restricted or allowed with custom logic. All events are sent and received. As soon as that oldest room is set to a player again, they cannot switch to spectator.
4- Copy and paste the SmartFoxClient debug output obtained by turning on the debug flag.
Haven't done this yet, production server.