Does Photon consider platform on which game is being played for matchmaking?

Options
JoinRoom(byRoomName) is not working all the properties and roomoptions are same still return no match found why?

public void OnPlayButton()
    {
        loadingText.enabled = true;
        playButton.GetComponent<Animator>().enabled = false;
        PhotonNetwork.JoinRandomRoom();
      //  print("sdf");

    } 

public void Onclick_JoinRoom()  {
        RoomOptions ro = new RoomOptions();
        ro.MaxPlayers = 4;
        //PhotonNetwork.JoinOrCreateRoom(JoinRoomInput.text, ro, TypedLobby.Default);
        PhotonNetwork.JoinRoom(JoinRoomInput.text);

    }

    public void Onclick_CreateRoom()
    {
        PhotonNetwork.CreateRoom(CreateRoomInput.text, new RoomOptions { MaxPlayers = 4 }, TypedLobby.Default);
    }

public override void OnJoinRandomFailed(short returnCode, string message)
    {
   
        base.OnJoinRandomFailed(returnCode, message);
       
        PhotonNetwork.CreateRoom(null, new RoomOptions { MaxPlayers = 4 },TypedLobby.Default);
        //PhotonNetwork.CreateRoom("Room_1", new RoomOptions { MaxPlayers = 4 }, null);

    }

Best Answer

  • SaadAli2019
    Answer ✓
    Options

    JoinRoom(byRoomName) is not working all the properties and roomoptions are same still return no match found why?

    
    public void OnPlayButton()
        {
            loadingText.enabled = true;
            playButton.GetComponent<Animator>().enabled = false;
            PhotonNetwork.JoinRandomRoom();
          //  print("sdf");
    
        } 
    
    public void Onclick_JoinRoom()  {
            RoomOptions ro = new RoomOptions();
            ro.MaxPlayers = 4;
            //PhotonNetwork.JoinOrCreateRoom(JoinRoomInput.text, ro, TypedLobby.Default);
            PhotonNetwork.JoinRoom(JoinRoomInput.text);
    
        }
    
        public void Onclick_CreateRoom()
        {
            PhotonNetwork.CreateRoom(CreateRoomInput.text, new RoomOptions { MaxPlayers = 4 }, TypedLobby.Default);
        }
    
    public override void OnJoinRandomFailed(short returnCode, string message)
        {
       
            base.OnJoinRandomFailed(returnCode, message);
           
            PhotonNetwork.CreateRoom(null, new RoomOptions { MaxPlayers = 4 },TypedLobby.Default);
            //PhotonNetwork.CreateRoom("Room_1", new RoomOptions { MaxPlayers = 4 }, null);
    
        }
    
    SOLVED : it was a region problem

Answers

  • SaadAli2019
    Answer ✓
    Options

    JoinRoom(byRoomName) is not working all the properties and roomoptions are same still return no match found why?

    
    public void OnPlayButton()
        {
            loadingText.enabled = true;
            playButton.GetComponent<Animator>().enabled = false;
            PhotonNetwork.JoinRandomRoom();
          //  print("sdf");
    
        } 
    
    public void Onclick_JoinRoom()  {
            RoomOptions ro = new RoomOptions();
            ro.MaxPlayers = 4;
            //PhotonNetwork.JoinOrCreateRoom(JoinRoomInput.text, ro, TypedLobby.Default);
            PhotonNetwork.JoinRoom(JoinRoomInput.text);
    
        }
    
        public void Onclick_CreateRoom()
        {
            PhotonNetwork.CreateRoom(CreateRoomInput.text, new RoomOptions { MaxPlayers = 4 }, TypedLobby.Default);
        }
    
    public override void OnJoinRandomFailed(short returnCode, string message)
        {
       
            base.OnJoinRandomFailed(returnCode, message);
           
            PhotonNetwork.CreateRoom(null, new RoomOptions { MaxPlayers = 4 },TypedLobby.Default);
            //PhotonNetwork.CreateRoom("Room_1", new RoomOptions { MaxPlayers = 4 }, null);
    
        }
    
    SOLVED : it was a region problem