Join room in specific lobby

Options
I joining lobby with
TypedLobby lobby = new TypedLobby("*", LobbyType.Default);
PhotonNetwork.JoinLobby(lobby); 
and then joining room with PhotonNetwork.JoinRoom(**);
But Photon does not join lobby, is there a way to join room in specific lobby or better way to join lobby?

Comments

  • THMMeep
    Options
    PhotonNetwork.JoinLobby(TypedLobby.Default);
    Can be used to join the default lobby

    PhotonNetwork.JoinLobby(new TypedLobby("lobby name", LobbyType.Default));
    Can be used to join a specific lobby
  • THMMeep said:

    PhotonNetwork.JoinLobby(TypedLobby.Default);
    Can be used to join the default lobby

    PhotonNetwork.JoinLobby(new TypedLobby("lobby name", LobbyType.Default));
    Can be used to join a specific lobby

    I tried it, but photon does not join lobby with PhotonNetwork.JoinLobby
  • THMMeep
    Options

    THMMeep said:

    PhotonNetwork.JoinLobby(TypedLobby.Default);
    Can be used to join the default lobby

    PhotonNetwork.JoinLobby(new TypedLobby("lobby name", LobbyType.Default));
    Can be used to join a specific lobby

    I tried it, but photon does not join lobby with PhotonNetwork.JoinLobby
    This sounds very unusual, do you have any errors you can provide?
    Are you connected to the MasterServer before calling JoinLobby?
  • THMMeep said:

    THMMeep said:

    PhotonNetwork.JoinLobby(TypedLobby.Default);
    Can be used to join the default lobby

    PhotonNetwork.JoinLobby(new TypedLobby("lobby name", LobbyType.Default));
    Can be used to join a specific lobby

    I tried it, but photon does not join lobby with PhotonNetwork.JoinLobby
    This sounds very unusual, do you have any errors you can provide?
    Are you connected to the MasterServer before calling JoinLobby?
    Yes, I'm creating new room in default lobby and special lobby and then I logging count of rooms before and after joining special lobby.

    When I'm creating room in default lobby from my first account PhotonNetwork.JoinOrCreateRoom(name, roomOptions, TypedLobby.Default);, second account see it from default and specified lobbies, but when I create room in specified lobby from first account PhotonNetwork.JoinOrCreateRoom(name, roomOptions, new TypedLobby("speclobby", LobbyType.Default));, my second account can't see any room in default and specified lobby

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @VityaSchel,

    Thank you for choosing Photon!

    Could you make sure that all clients are connected to the same virtual application (AppId, AppVersion, PUN version) and to the same servers (region)?
    Check out the full "Matchmaking Checklist".
  • JohnTube said:

    Hi @VityaSchel,

    Thank you for choosing Photon!

    Could you make sure that all clients are connected to the same virtual application (AppId, AppVersion, PUN version) and to the same servers (region)?
    Check out the full "Matchmaking Checklist".

    well, looks like I explained bad.
    Clients see rooms in default lobby but can't see rooms in specific lobby. They have same versions and connected to same servers. I can't join lobby. I created new thread where I asked how to join random room in specific lobby.
  • Okay, I debugged names of lobbies and now I actually join lobby, but there is still no my rooms :'(
  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @VityaSchel,

    You cannot create two rooms with the same name.
    You cannot create or join rooms while joined to one, you need to leave it first.

    Implement callbacks for failures and errors.
    Or add SupportLogger to see if there are errors.

    Otherwise, double-check that rooms are created visible (IsVisible).