OnOperationResponse problem
Options
Hi Guys, i have promblem when iam try to send some operation custom with
in "LoadbalancingPeer.cs" say
PhotonNetwork.networkingPeer.OpCustom()
like this
public void OpTestRequest() { var parameter = new Dictionary<byte, object>(); parameter.Add((byte)100, "Hello World"); PhotonNetwork.networkingPeer.OpCustom(1, parameter, true); }but i have error like this
Operation failed: OperationResponse 1: ReturnCode: -2 (Unknown operation code). Parameters: {} Server: MasterServer
in "LoadbalancingPeer.cs" say
/// <summary>(-2) The operation you called is not implemented on the server (application) you connect to. Make sure you run the fitting applications.</summary> [Obsolete("Use InvalidOperation.")] public const int InvalidOperationCode = -2;what solution i can do??
0
Best Answer
-
Hi @doolangames,
You need to implement the custom operation server side and run it on your self hosted Photon Server.
See "Adding Operations".5
Answers
-
Hi @doolangames,
You need to implement the custom operation server side and run it on your self hosted Photon Server.
See "Adding Operations".5 -
Ouhhhh i will try , thanks for respond @JohnTube0