No connect to master server
Options
This error began to occur to me without touching a single line of code, I am going crazy, it does not connect with the rest of the players. Can someone ask me a solution?
OpJoinLobby is only allowed when connected to a Master Server. Current Server: MasterServer, current State: PeerCreated
error in Line ->
PhotonNetwork.ConnectUsingSettings();
0
Comments
-
Complete log:
OpJoinLobby is only allowed when connected to a Master Server. Current Server: MasterServer, current State: PeerCreated
UnityEngine.Debug:LogError(Object)
Photon.Realtime.LoadBalancingClient:DebugReturn(DebugLevel, String) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:1835)
Photon.Realtime.LoadBalancingClient:OpJoinLobby(TypedLobby) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:1084)
Photon.Pun.PhotonNetwork:JoinLobby(TypedLobby) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:1968)
PhotonManager:OnConnectedToMaster() (at Assets/ScripsROOT/Scripts/Lobby/PhotonManager.cs:160)
Photon.Realtime.ConnectionCallbacksContainer:OnConnectedToMaster() (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:3233)
Photon.Pun.PhotonNetwork:set_OfflineMode(Boolean) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:420)
Photon.Pun.PhotonNetwork:ConnectUsingSettings() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:1097)
PhotonManager:Start() (at Assets/ScripsROOT/Scripts/Lobby/PhotonManager.cs:71)0 -
Hi guys, it seems that the error has been solved by moving the line to the Awakening, I really do not get to understand the difference, I hope that the contribution serves something.
Google translate0