Unable to perform Region Change
Options
Hi everyone, hope someone can help me, I'm really desperate.
I just released my game which uses a custom backend for matchmaking and PUN for Unity Synchronization. I'm on PUN v1.87.
I just figured this configuration leads to problems when connecting my users in different regions. Shame on my.
I'm attempting to implement a switch from one player to another player's region once they are matched. However I can't get it to work.
I'm performing
However, PUN is not joining the Lobby on the new server at all.
I tried to perform
Unlike I'm doing something really wrong this seems like a bug. I really hope it's not because I really don't want to upgrade.
Any help is appreciated!
I just released my game which uses a custom backend for matchmaking and PUN for Unity Synchronization. I'm on PUN v1.87.
I just figured this configuration leads to problems when connecting my users in different regions. Shame on my.
I'm attempting to implement a switch from one player to another player's region once they are matched. However I can't get it to work.
I'm performing
PhotonNetwork.Disconnect();and in
OnDisconnectedFromPhotonI'm calling
PhotonNetwork.ConnectToRegion(regionToConnect, gameVersion);under certain conditions. This works fine.,
However, PUN is not joining the Lobby on the new server at all.
OnConnectedToMasterServerand
OnJoinedLobbyare NOT called after ConnectToRegion (OnJoinedLobby is called on game start with the player's default region).
I tried to perform
JoinLobbybut nothing happens at all. When I attempt to join or create a room I'm getting an error message that that's not possible (Not connected to master or ready error message). My connectionStatusDetailed is "Connected to Master Server".
Unlike I'm doing something really wrong this seems like a bug. I really hope it's not because I really don't want to upgrade.
Any help is appreciated!
0
Comments
-
I fixed this using
PhotonHandler.BestRegionCodeInPreferences
. After I got everything worked, I figured out that there's a PUN 1 Documentation here: https://doc.photonengine.com/en-us/pun/v1/connection-and-authentication/regions
So it seems the preferred way is to userOverrideBestCloudServer(CloudRegionCode region)
. But my way works as well and I'm not touching this again0