I keep checking the MFPS version 1.75. And I found a suspicious error that also appears in my current game... When masterclient (Player 1) exits and the room is passed to another player (Player2), then Player2 is fine. Player 1 comes in, everything is fine, but sometimes there are errors about PhotonView bots. If Player2 (MasterClient) exits and then re-enters, then it constantly gets errors related to photonview bots and they twitch on the spot and do nothing. How do I solve this? Tested on a clean version of MFPS 1.75, photon latest version, unity 2020.1 release.
Error PhotonMono
Code: Select all
InvalidOperationException: Duplicate key 2
ExitGames.Client.Photon.NonAllocDictionary`2[K,V].Add (K key, V val) (at <a497a6f18e1f4b419421b940add27a6e>:0)
Photon.Pun.PhotonNetwork.RegisterPhotonView (Photon.Pun.PhotonView netView) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs:1011)
Photon.Pun.PhotonView.set_ViewID (System.Int32 value) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonView.cs:253)
Photon.Pun.PhotonNetwork.NetworkInstantiate (Photon.Pun.InstantiateParameters parameters, System.Boolean sceneObject, System.Boolean instantiateEvent) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:2506)
Photon.Pun.PhotonNetwork.NetworkInstantiate (ExitGames.Client.Photon.Hashtable networkEvent, Photon.Realtime.Player creator) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:2439)
Photon.Pun.PhotonNetwork.OnEvent (ExitGames.Client.Photon.EventData photonEvent) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs:2195)
Photon.Realtime.LoadBalancingClient.OnEvent (ExitGames.Client.Photon.EventData photonEvent) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:3142)
ExitGames.Client.Photon.PeerBase.DeserializeMessageAndCallback (ExitGames.Client.Photon.StreamBuffer stream) (at <a497a6f18e1f4b419421b940add27a6e>:0)
ExitGames.Client.Photon.EnetPeer.DispatchIncomingCommands () (at <a497a6f18e1f4b419421b940add27a6e>:0)
ExitGames.Client.Photon.PhotonPeer.DispatchIncomingCommands () (at <a497a6f18e1f4b419421b940add27a6e>:0)
Photon.Pun.PhotonHandler.Dispatch () (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:208)
Photon.Pun.PhotonHandler.FixedUpdate () (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:142)
Code: Select all
PhotonView ID duplicate found: 21. New: View 21 on AISoldier2(Clone) (scene) old: View 21 on BOT Karl (scene). Maybe one wasn't destroyed on scene load?! Check for 'DontDestroyOnLoad'. Destroying old entry, adding new.
UnityEngine.Debug:LogError(Object)
Photon.Pun.PhotonNetwork:RegisterPhotonView(PhotonView) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs:1000)
Photon.Pun.PhotonView:set_ViewID(Int32) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonView.cs:253)
Photon.Pun.PhotonNetwork:NetworkInstantiate(InstantiateParameters, Boolean, Boolean) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:2506)
Photon.Pun.PhotonNetwork:NetworkInstantiate(Hashtable, Player) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:2439)
Photon.Pun.PhotonNetwork:OnEvent(EventData) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs:2195)
Photon.Realtime.LoadBalancingClient:OnEvent(EventData) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:3142)
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:208)
Photon.Pun.PhotonHandler:FixedUpdate() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:142)
Code: Select all
Received RPC "RpcFire" for viewID 2 but this PhotonView does not exist! Was remote PV. Remote called. By: #05 'Comp' Maybe GO was destroyed but RPC not cleaned up.
UnityEngine.Debug:LogWarning(Object)
Photon.Pun.PhotonNetwork:ExecuteRpc(Hashtable, Player) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs:396)
Photon.Pun.PhotonNetwork:OnEvent(EventData) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs:2158)
Photon.Realtime.LoadBalancingClient:OnEvent(EventData) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:3142)
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:208)
Photon.Pun.PhotonHandler:FixedUpdate() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:142)
Code: Select all
Received OnSerialization for view ID 59. We have no such PhotonView! Ignore this if you're joining or leaving a room. State: Joined
UnityEngine.Debug:LogWarning(Object)
Photon.Pun.PhotonNetwork:OnSerializeRead(Object[], Player, Int32, Int16) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs:1762)
Photon.Pun.PhotonNetwork:OnEvent(EventData) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs:2190)
Photon.Realtime.LoadBalancingClient:OnEvent(EventData) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:3142)
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:208)
Photon.Pun.PhotonHandler:FixedUpdate() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:142)