[Room Joining Problem] Random Player Can't Join A Hashable Room

Options
why is this not letting the second player join the room that someone else created
ExitGames.Client.Photon.Hashtable expectedCustomRoomProperties = new ExitGames.Client.Photon.Hashtable() { { "1 Vs 1", 1 } };
PhotonNetwork.JoinRandomRoom(expectedCustomRoomProperties, 2);

RoomOptions roomOptions = new RoomOptions();
roomOptions.CustomRoomProperties = new ExitGames.Client.Photon.Hashtable() { { "1 Vs 1", 1 } };
roomOptions.MaxPlayers = 2;
PhotonNetwork.CreateRoom(null, roomOptions);

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    edited May 2020
    Options
    Hi @GalacticFalcon,

    Thank you for choosing Photon!
    If you are doing random matchmaking using room properties as a filter make sure to set the keys of those properties to be visible from the lobby when creating the room.
    source
    roomOptions.CustomRoomPropertiesForLobby = new[] { "1 Vs 1"  };
    
  • GalacticFalcon
    Options
    @JohnTube Thank You That Worked <3