stream.ReceiveNext () not working when increase latency
Options
Hi,
I have 4 players working normally with my 30-50 normal latency. But when I increase latency of them all with:
PhotonNetwork.NetworkingClient.LoadBalancingPeer.IsSimulationEnabled = true;
PhotonNetwork.NetworkingClient.LoadBalancingPeer.NetworkSimulationSettings.IncomingLag = 50;
PhotonNetwork.NetworkingClient.LoadBalancingPeer.NetworkSimulationSettings.OutgoingLag = 50;
I start receiving this error msg: "InvalidCastException: Specified cast is not valid.". It's in my OnPhotonSerializeView, a normal cast that I have stream.ReceiveNext (), that usually works. It even works with 2 players, but not working with 4.
Anyone know what this could be?
I have 4 players working normally with my 30-50 normal latency. But when I increase latency of them all with:
PhotonNetwork.NetworkingClient.LoadBalancingPeer.IsSimulationEnabled = true;
PhotonNetwork.NetworkingClient.LoadBalancingPeer.NetworkSimulationSettings.IncomingLag = 50;
PhotonNetwork.NetworkingClient.LoadBalancingPeer.NetworkSimulationSettings.OutgoingLag = 50;
I start receiving this error msg: "InvalidCastException: Specified cast is not valid.". It's in my OnPhotonSerializeView, a normal cast that I have stream.ReceiveNext (), that usually works. It even works with 2 players, but not working with 4.
Anyone know what this could be?
0