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?

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    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.
  • 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.

    How do I know which player to enter the room later? If they both come in later, the situation will be the same.

    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.
  • JohnTube
    JohnTube ✭✭✭✭✭
    edited February 2019
    Options
    You can use App or Lobby Stats to know that the room is created.
    You can also use JoinOrCreate instead of Join or Create from both players.