I've been workin gwith MFPS recently and everything worked perfectly when testing with bots! When I started testing with actual multiplayer a problem occured... The one that tries to join a room gets an error... Any help is appreciated... Thank you!
Code: Select all
InvalidCastException: Specified cast is not valid.
bl_WaitingRoom.OnEventCustom (ExitGames.Client.Photon.EventData data) (at Assets/MFPS/Scripts/Network/Waiting Room/bl_WaitingRoom.cs:164)
Photon.Realtime.LoadBalancingClient.OnEvent (ExitGames.Client.Photon.EventData photonEvent) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:3215)
ExitGames.Client.Photon.PeerBase.DeserializeMessageAndCallback (ExitGames.Client.Photon.StreamBuffer stream) (at <93d7bfaf6a774f5fac24d79468df113d>:0)
ExitGames.Client.Photon.EnetPeer.DispatchIncomingCommands () (at <93d7bfaf6a774f5fac24d79468df113d>:0)
ExitGames.Client.Photon.PhotonPeer.DispatchIncomingCommands () (at <93d7bfaf6a774f5fac24d79468df113d>:0)
Photon.Pun.PhotonHandler.Dispatch () (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:223)
Photon.Pun.PhotonHandler.FixedUpdate () (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:149)