Matchmaking
Options
Hello. We have an online game, rooms 5x5 players
There is such a problem
When all rooms are full, we create a new room.
And if 2 players click Play at the same time, 2 new rooms will be created, so new players will be divided into 2 rooms.
How to solve this problem locally, without server logic? Any ideas?
There is such a problem
When all rooms are full, we create a new room.
And if 2 players click Play at the same time, 2 new rooms will be created, so new players will be divided into 2 rooms.
How to solve this problem locally, without server logic? Any ideas?
0
Comments
-
Hi @valentinez,
Thank you for choosing Photon!
This is the expected behaviour yes.
You can delay the second player's attempt to join the room.
This issue won't be relevant once you have enough CCU/Players.0 -
How do I know which player to enter the room later? If they both come in later, the situation will be the same.JohnTube said:Hi @valentinez,
Thank you for choosing Photon!
This is the expected behaviour yes.
You can delay the second player's attempt to join the room.
This issue won't be relevant once you have enough CCU/Players.
Maybe there is an opportunity to get room statistics from a room? Then it would be possible after the end of the match to connect to another room, thus combining half-empty rooms.0 -
You can use App or Lobby Stats to know that the room is created.
You can also useJoinOrCreate
instead ofJoin
orCreate
from both players.0