Matching type serial matching not working

When I use function joinRandomOrCreateRoom function with serial matchmaking mode it first lands me in the same room again then on the second call I get in the new room.

Answers

  • Hi @mohit_mittal,

    Thank you for choosing Photon!

    There is no "joinRandomOrCreateRoom", it's either JoinRandomRoom or JoinOrCreateRoom.
    My guess is that it's JoinRandomRoom since it accepts MatchmakingType.

    In order to help you we need more details:

    - client SDK used and client SDK version
    - server environment: are you connecting to Photon Cloud or to a self-hosted Photon Server?
    - what's the expected behaviour vs. actual behaviour?
    - minimal repro steps
  • edited July 3
    Hi @JohnTube Sorry, the function was 'joinRandomRoom'.
    PhotonNetwork.JoinRandomRoom(
    matchmakingParams.Hashtable,
    4,
    MatchmakingMode.SerialMatching,
    TypedLobby.Default,
    null);

    -Photon Unity Networking v1.86
    -server environment - photon cloud
    -I am in a room of 4 people , there exists another room with only one user in it. I call joinrandomroom -> i leave the current room and again join the same one. I again call joinrandomroom -> then i join the room with one user in it. It should have gone to the single user room on the first call itself.
    -repro steps - 1.have a room max capacity set to 4.
    2.make the room full with 4 people.
    3.make a new room with new user.
    4.try making any user from the first room join a random room.
  • Hi @mohit_mittal,

    -repro steps - 1.have a room max capacity set to 4.
    2.make the room full with 4 people.
    3.make a new room with new user.
    4.try making any user from the first room join a random room.
    Make sure to wait sometime between 3 and 4 so that the 2nd room is ready to be joined.
  • edited July 3
    @JohnTube

    I tried it, but still happens.
    also note that it happens only for the first time, then calling the joinrandom again the user joins the seconds room as it should.
    According to our QA team it used to work earlier, this issue is replicating in our existing app as well.
  • JohnTubeJohnTube mod
    edited July 8
    Hey @mohit_mittal,

    Could you send us a minimal repro project to [email protected]?
    Add a reference to this forum discussion in the email if you do.
Sign In or Register to comment.