Hi,
For my game, I have a main menu scene which calls connectusingsettings on load.
after joining a room, i load my game scene using LoadLevel.
In this game scene, i have a button called disconnect which brings the player out of the game scene and back to the main menu scene.
After I use LeaveRoom, I transition to the main menu scene in the OnLeftRoom function.
The problem is after I transition to the main menu scene, I see the following lines of log from the console and subsequently, i get timeout disconnect.
I have even tried to disconnect from the server entirely but I will still get the similar lines of debug statements.
What does this mean?
This is my disconnect functions
For my game, I have a main menu scene which calls connectusingsettings on load.
after joining a room, i load my game scene using LoadLevel.
In this game scene, i have a button called disconnect which brings the player out of the game scene and back to the main menu scene.
After I use LeaveRoom, I transition to the main menu scene in the OnLeftRoom function.
The problem is after I transition to the main menu scene, I see the following lines of log from the console and subsequently, i get timeout disconnect.
OpSetPropertiesOfRoom()
UnityEngine.Debug:Log(Object)
Photon.Realtime.LoadBalancingClient:DebugReturn(DebugLevel, String) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:2130)
Photon.Realtime.LoadBalancingPeer:OpSetPropertiesOfRoom(Hashtable, Hashtable, WebFlags) (at Assets/Photon/PhotonRealtime/Code/LoadbalancingPeer.cs:695)
Photon.Realtime.Room:SetCustomProperties(Hashtable, Hashtable, WebFlags) (at Assets/Photon/PhotonRealtime/Code/Room.cs:385)
Photon.Pun.PhotonNetwork:SetLevelInPropsIfSynced(Object) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs:2043)
Photon.Pun.PhotonNetwork:NewSceneLoaded() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs:1341)
Photon.Pun.<>c:<Start>b__13_0(Scene, LoadSceneMode) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:125)
UnityEngine.SceneManagement.SceneManager:Internal_SceneLoaded(Scene, LoadSceneMode)
UnityEngine.Debug:Log(Object)
Photon.Realtime.LoadBalancingClient:DebugReturn(DebugLevel, String) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:2130)
Photon.Realtime.LoadBalancingPeer:OpSetPropertiesOfRoom(Hashtable, Hashtable, WebFlags) (at Assets/Photon/PhotonRealtime/Code/LoadbalancingPeer.cs:695)
Photon.Realtime.Room:SetCustomProperties(Hashtable, Hashtable, WebFlags) (at Assets/Photon/PhotonRealtime/Code/Room.cs:385)
Photon.Pun.PhotonNetwork:SetLevelInPropsIfSynced(Object) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs:2043)
Photon.Pun.PhotonNetwork:NewSceneLoaded() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs:1341)
Photon.Pun.<>c:<Start>b__13_0(Scene, LoadSceneMode) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:125)
UnityEngine.SceneManagement.SceneManager:Internal_SceneLoaded(Scene, LoadSceneMode)
Resending: CMD(5 ch#/sq#/usq#: 255/6/0 r#/st/tt:1/8144/18144). times out after: 309 sent: 8144 now: 8514 rtt/var: 89/55 last recv: 1150
UnityEngine.Debug:Log(Object)
Photon.Realtime.LoadBalancingClient:DebugReturn(DebugLevel, String) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:2130)
ExitGames.Client.Photon.EnetPeer:SendOutgoingCommands() (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/EnetPeer.cs:808)
ExitGames.Client.Photon.PhotonPeer:SendOutgoingCommands() (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/PhotonPeer.cs:1555)
Photon.Pun.PhotonHandler:LateUpdate() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:170)
UnityEngine.Debug:Log(Object)
Photon.Realtime.LoadBalancingClient:DebugReturn(DebugLevel, String) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:2130)
ExitGames.Client.Photon.EnetPeer:SendOutgoingCommands() (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/EnetPeer.cs:808)
ExitGames.Client.Photon.PhotonPeer:SendOutgoingCommands() (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/PhotonPeer.cs:1555)
Photon.Pun.PhotonHandler:LateUpdate() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:170)
Timeout-disconnect! Command: CMD(5 ch#/sq#/usq#: 255/6/0 r#/st/tt:7/13580/18144) now: 18546 challenge: 3dcce11b
UnityEngine.Debug:LogWarning(Object)
Photon.Realtime.LoadBalancingClient:DebugReturn(DebugLevel, String) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:2126)
ExitGames.Client.Photon.EnetPeer:SendOutgoingCommands() (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/EnetPeer.cs:775)
ExitGames.Client.Photon.PhotonPeer:SendOutgoingCommands() (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/PhotonPeer.cs:1555)
Photon.Pun.PhotonHandler:LateUpdate() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:170)
UnityEngine.Debug:LogWarning(Object)
Photon.Realtime.LoadBalancingClient:DebugReturn(DebugLevel, String) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:2126)
ExitGames.Client.Photon.EnetPeer:SendOutgoingCommands() (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/EnetPeer.cs:775)
ExitGames.Client.Photon.PhotonPeer:SendOutgoingCommands() (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/PhotonPeer.cs:1555)
Photon.Pun.PhotonHandler:LateUpdate() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:170)
I have even tried to disconnect from the server entirely but I will still get the similar lines of debug statements.
What does this mean?
This is my disconnect functions
public void DisconnectPlayer() { Destroy(PhotonRoom.photonRoom.gameObject); //StartCoroutine(DisconnectAndLoad()); PhotonNetwork.LeaveRoom(); } public override void OnLeftRoom() { base.OnLeftRoom(); //StartCoroutine(DisconnectAndLoad()); sceneFader.FadeTo(MultiplayerSettings.multiplayerSettings.menuScene); }