BUG - MFPS 1.7 - REGIONS

Report bugs of MFPS 2.0 here
User avatar
MAC
Contributor
Contributor
Posts: 95
Joined: Sun May 27, 2018 7:59 am
Contact:

Hello,

On fresh install no addons can't connect, 2 errors:

Image

Code: Select all

GetRegions failed. Can't provide regions list. ReturnCode: -2: Missing value 224 (GetRegionListRequest.ApplicationId)

UnityEngine.Debug:LogError(Object)
Photon.Realtime.LoadBalancingClient:DebugReturn(DebugLevel, String) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:2297)
Photon.Realtime.LoadBalancingClient:OnOperationResponse(OperationResponse) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:2515)
ExitGames.Client.Photon.PeerBase:DeserializeMessageAndCallback(StreamBuffer)
ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()
ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()
Photon.Pun.PhotonHandler:Dispatch() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:205)
Photon.Pun.PhotonHandler:FixedUpdate() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:139)
and

Code: Select all

NullReferenceException: Object reference not set to an instance of an object
Photon.Pun.PhotonNetwork.OnOperation (ExitGames.Client.Photon.OperationResponse opResponse) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs:2270)
Photon.Realtime.LoadBalancingClient.OnOperationResponse (ExitGames.Client.Photon.OperationResponse operationResponse) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:2655)
ExitGames.Client.Photon.PeerBase.DeserializeMessageAndCallback (ExitGames.Client.Photon.StreamBuffer stream) (at <55bb4164382346dfa5f9113093df0b12>:0)
ExitGames.Client.Photon.EnetPeer.DispatchIncomingCommands () (at <55bb4164382346dfa5f9113093df0b12>:0)
ExitGames.Client.Photon.PhotonPeer.DispatchIncomingCommands () (at <55bb4164382346dfa5f9113093df0b12>:0)
Photon.Pun.PhotonHandler.Dispatch () (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:205)
Photon.Pun.PhotonHandler.FixedUpdate () (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:139)
MFPS on HDRP --) https://ka2studio.net/
User avatar
FoxArm
Member
Member
Posts: 10
Joined: Mon Apr 20, 2020 2:42 am

Same!
User avatar
Jimmy2Thumbs
Contributor
Contributor
Posts: 3
Joined: Fri Apr 17, 2020 3:15 pm

Just tried fresh instal no addons, all working

Installed cover point, same error
User avatar
FoxArm
Member
Member
Posts: 10
Joined: Mon Apr 20, 2020 2:42 am

Jimmy2Thumbs wrote: Mon Apr 20, 2020 6:14 am Just tried fresh instal no addons, all working

Installed cover point, same error
I'm having this problem without addons too.
User avatar
MAC
Contributor
Contributor
Posts: 95
Joined: Sun May 27, 2018 7:59 am
Contact:

Working now

I recreated new project -) Installing Photon FIRST --) Installing MFPS = Working

Hope it fix it for others
MFPS on HDRP --) https://ka2studio.net/
User avatar
FoxArm
Member
Member
Posts: 10
Joined: Mon Apr 20, 2020 2:42 am

Ok, I tried to create another project doing the same thing you told me. The bug happens again when switching from server USA to EU. When I start for the second time the scene MainMenu, it does not work anymore.

Help please! I need European Server
User avatar
MAC
Contributor
Contributor
Posts: 95
Joined: Sun May 27, 2018 7:59 am
Contact:

You right ..same for me..whit the 2 errors i get this warning too

Code: Select all

Failed to connect to server, cause: InvalidAuthentication
UnityEngine.Debug:LogWarning(Object)
bl_Lobby:OnDisconnected(DisconnectCause) (at Assets/MFPS/Scripts/Network/Lobby/bl_Lobby.cs:702)
Photon.Realtime.ConnectionCallbacksContainer:OnDisconnected(DisconnectCause) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:3703)
Photon.Realtime.LoadBalancingClient:OnStatusChanged(StatusCode) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:2773)
ExitGames.Client.Photon.<>c__DisplayClass104_0:<EnqueueStatusCallback>b__0()
ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()
ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()
Photon.Pun.PhotonHandler:Dispatch() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:205)
Photon.Pun.PhotonHandler:FixedUpdate() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:139)
MFPS on HDRP --) https://ka2studio.net/
User avatar
MAC
Contributor
Contributor
Posts: 95
Joined: Sun May 27, 2018 7:59 am
Contact:

Ok so..
In bl_Lobby.cs

Line 123

Delete

Code: Select all

if (!PhotonNetwork.ConnectToBestCloudServer())
                {
                    //if connect to best cloud fail
                    PhotonNetwork.ConnectUsingSettings();
                }

and replace by :

Code: Select all

  PhotonNetwork.ConnectUsingSettings();
Magic
MFPS on HDRP --) https://ka2studio.net/
User avatar
FoxArm
Member
Member
Posts: 10
Joined: Mon Apr 20, 2020 2:42 am

MAC wrote: Mon Apr 20, 2020 9:31 am Ok so..
In bl_Lobby.cs

Line 123

Delete

Code: Select all

if (!PhotonNetwork.ConnectToBestCloudServer())
                {
                    //if connect to best cloud fail
                    PhotonNetwork.ConnectUsingSettings();
                }

and replace by :

Code: Select all

  PhotonNetwork.ConnectUsingSettings();
Magic



Thank you so much for your help. It works perfectly!
User avatar
amitchai
New Member
New Member
Posts: 2
Joined: Wed Jun 03, 2020 2:44 pm

OMG finally. Thanks!
Post Reply