Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Viewing all articles
Browse latest Browse all 8947

Photon OnPremise Server

$
0
0
Hi, I am supporting the development of a multiplayer application in, of course, Unity. Up to this point, the devs have been using Photon Cloud on the backend for multi-player and voice. I'll have plenty of questions about implementing voice, but I am concerned now with an exception being thrown when we attempt to connect to the new OnPremise server. So far, we've changed the connection settings in the PhotonServerSettings Inspector window. We aren't using name server, are leaving the appid realtime and voiceid to random numbers, setting a version number = 1, running in the background and setting the IP and port numbers for the OnPremise server. I should add that when I run the Stardust test client, it is able to connect to the server just fine with 3 to 5 connections, and i am using loadbalancing though I only have 1 box hosting the server. Here is the exception being thrown. Any ideas would be greatly appreciated: IndexOutOfRangeException: Index was outside the bounds of the array. ExitGames.Client.Photon.Protocol16.SerializeDictionaryHeader (ExitGames.Client.Photon.StreamBuffer writer, System.Object dict, System.Boolean& setKeyType, System.Boolean& setValueType) (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/Protocol16.cs:1048) ExitGames.Client.Photon.Protocol16.SerializeDictionaryHeader (ExitGames.Client.Photon.StreamBuffer writer, System.Type dictType) (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/Protocol16.cs:1038) ExitGames.Client.Photon.Protocol16.SerializeDictionaryHeader (ExitGames.Client.Photon.StreamBuffer writer, System.Object dict, System.Boolean& setKeyType, System.Boolean& setValueType) (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/Protocol16.cs:1082) ExitGames.Client.Photon.Protocol16.SerializeDictionary (ExitGames.Client.Photon.StreamBuffer dout, System.Collections.IDictionary serObject, System.Boolean setType) (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/Protocol16.cs:1030) ExitGames.Client.Photon.Protocol16.Serialize (ExitGames.Client.Photon.StreamBuffer dout, System.Object serObject, System.Boolean setType) (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/Protocol16.cs:627) ExitGames.Client.Photon.Protocol16.SerializeObjectArray (ExitGames.Client.Photon.StreamBuffer dout, System.Collections.IList objects, System.Boolean setType) (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/Protocol16.cs:1000) ExitGames.Client.Photon.Protocol16.Serialize (ExitGames.Client.Photon.StreamBuffer dout, System.Object serObject, System.Boolean setType) (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/Protocol16.cs:619) ExitGames.Client.Photon.Protocol16.SerializeHashTable (ExitGames.Client.Photon.StreamBuffer dout, ExitGames.Client.Photon.Hashtable serObject, System.Boolean setType) (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/Protocol16.cs:1017) ExitGames.Client.Photon.Protocol16.Serialize (ExitGames.Client.Photon.StreamBuffer dout, System.Object serObject, System.Boolean setType) (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/Protocol16.cs:604) ExitGames.Client.Photon.Protocol16.SerializeParameterTable (ExitGames.Client.Photon.StreamBuffer stream, System.Collections.Generic.Dictionary`2[TKey,TValue] parameters) (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/Protocol16.cs:527) ExitGames.Client.Photon.Protocol16.SerializeOperationRequest (ExitGames.Client.Photon.StreamBuffer stream, System.Byte operationCode, System.Collections.Generic.Dictionary`2[TKey,TValue] parameters, System.Boolean setType) (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/Protocol16.cs:442) ExitGames.Client.Photon.EnetPeer.SerializeOperationToMessage (System.Byte opCode, System.Collections.Generic.Dictionary`2[TKey,TValue] parameters, ExitGames.Client.Photon.EgMessageType messageType, System.Boolean encrypt) (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/EnetPeer.cs:1095) ExitGames.Client.Photon.EnetPeer.EnqueueOperation (System.Collections.Generic.Dictionary`2[TKey,TValue] parameters, System.Byte opCode, ExitGames.Client.Photon.SendOptions sendParams, ExitGames.Client.Photon.EgMessageType messageType) (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/EnetPeer.cs:936) ExitGames.Client.Photon.PhotonPeer.SendOperation (System.Byte operationCode, System.Collections.Generic.Dictionary`2[TKey,TValue] operationParameters, ExitGames.Client.Photon.SendOptions sendOptions) (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/PhotonPeer.cs:1505) Photon.Realtime.LoadBalancingPeer.OpRaiseEvent (System.Byte eventCode, System.Object customEventContent, Photon.Realtime.RaiseEventOptions raiseEventOptions, ExitGames.Client.Photon.SendOptions sendOptions) (at Assets/DownloadedAssets/Photon/PhotonRealtime/Code/LoadbalancingPeer.cs:864) Photon.Realtime.LoadBalancingClient.OpRaiseEvent (System.Byte eventCode, System.Object customEventContent, Photon.Realtime.RaiseEventOptions raiseEventOptions, ExitGames.Client.Photon.SendOptions sendOptions) (at Assets/DownloadedAssets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:1603) Photon.Pun.PhotonNetwork.RaiseEventInternal (System.Byte eventCode, System.Object eventContent, Photon.Realtime.RaiseEventOptions raiseEventOptions, ExitGames.Client.Photon.SendOptions sendOptions) (at Assets/DownloadedAssets/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:2193) Photon.Pun.PhotonNetwork.SendInstantiate (Photon.Pun.InstantiateParameters parameters, System.Boolean sceneObject) (at Assets/DownloadedAssets/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:2523) Photon.Pun.PhotonNetwork.NetworkInstantiate (Photon.Pun.InstantiateParameters parameters, System.Boolean sceneObject, System.Boolean instantiateEvent) (at Assets/DownloadedAssets/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:2447) Photon.Pun.PhotonNetwork.Instantiate (System.String prefabName, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation, System.Byte group, System.Object[] data) (at Assets/DownloadedAssets/Photon/PhotonUnityNetworking/Code/PhotonNetwork.cs:2297) NetworkMesherHelpers.NetworkModel.GenerateNetworkMesh (System.String nodePath, System.String linkPath, System.String statPath, System.String alertPath) (at Assets/Scripts/NetworkMesherHelpers/NetworkModel.cs:603) GameManager.OnJoinedRoom () (at Assets/Scripts/Management/GameManager.cs:28) Photon.Realtime.MatchMakingCallbacksContainer.OnJoinedRoom () (at Assets/DownloadedAssets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:3348) Photon.Realtime.LoadBalancingClient.OnEvent (ExitGames.Client.Photon.EventData photonEvent) (at Assets/DownloadedAssets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:2476) ExitGames.Client.Photon.PeerBase.DeserializeMessageAndCallback (ExitGames.Client.Photon.StreamBuffer stream) (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/PeerBase.cs:633) ExitGames.Client.Photon.EnetPeer.DispatchIncomingCommands () (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/EnetPeer.cs:545) ExitGames.Client.Photon.PhotonPeer.DispatchIncomingCommands () (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/PhotonPeer.cs:1473) Photon.Pun.PhotonHandler.FixedUpdate () (at Assets/DownloadedAssets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:130)

Viewing all articles
Browse latest Browse all 8947

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>