Getting weird OperationResponse errors: 229 -1, 227 -1
Options
Dear community,
I am just creating a custom UI Lobby for rooms. Whenever I am trying to establish a connection to a specific region using the below code, I am getting an error in the Unity Console which says:
Operation failed: OperationResponse 229: ReturnCode: -1 (Unknown operation code 229). Parameters: {} Server: MasterServer
UnityEngine.Debug:LogError(Object)
NetworkingPeer:OnOperationResponse(OperationResponse) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:1544)
ExitGames.Client.Photon.PeerBase:DeserializeMessageAndCallback(Byte[])
ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()
ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()
PhotonHandler:Update() (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonHandler.cs:157)
So here's my connection code:
Whenever I am trying to create a room with the below code, I am getting a similiar error:
Operation failed: OperationResponse 227: ReturnCode: -1 (Unknown operation code 227). Parameters: {} Server: MasterServer
UnityEngine.Debug:LogError(Object)
NetworkingPeer:OnOperationResponse(OperationResponse) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:1544)
ExitGames.Client.Photon.PeerBase:DeserializeMessageAndCallback(Byte[])
ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()
ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()
PhotonHandler:Update() (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonHandler.cs:157)
Here's the code for room creation:
Can anybody tell me what is causing this, please?
I am just creating a custom UI Lobby for rooms. Whenever I am trying to establish a connection to a specific region using the below code, I am getting an error in the Unity Console which says:
Operation failed: OperationResponse 229: ReturnCode: -1 (Unknown operation code 229). Parameters: {} Server: MasterServer
UnityEngine.Debug:LogError(Object)
NetworkingPeer:OnOperationResponse(OperationResponse) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:1544)
ExitGames.Client.Photon.PeerBase:DeserializeMessageAndCallback(Byte[])
ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()
ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()
PhotonHandler:Update() (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonHandler.cs:157)
So here's my connection code:
[SerializeField]
Button JoinGame, HostGame;
private void Awake()
{
PhotonNetwork.autoJoinLobby = false;
}
public override void OnJoinedLobby()
{
JoinGame.interactable = true;
HostGame.interactable = true;
Debug.Log("Joined Photon Lobby");
}
public override void OnConnectedToMaster()
{
PhotonNetwork.JoinLobby();
}
// Use this for initialization
void Start () {
PhotonNetwork.ConnectToRegion(CloudRegionCode.eu,"0.1");
}
Whenever I am trying to create a room with the below code, I am getting a similiar error:
Operation failed: OperationResponse 227: ReturnCode: -1 (Unknown operation code 227). Parameters: {} Server: MasterServer
UnityEngine.Debug:LogError(Object)
NetworkingPeer:OnOperationResponse(OperationResponse) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:1544)
ExitGames.Client.Photon.PeerBase:DeserializeMessageAndCallback(Byte[])
ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()
ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()
PhotonHandler:Update() (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonHandler.cs:157)
Here's the code for room creation:
void HostGame()
{
RoomOptions roomOptions = new RoomOptions();
ExitGames.Client.Photon.Hashtable roomProperties = new ExitGames.Client.Photon.Hashtable();
roomProperties.Add("mapname",map);
roomProperties.Add("laps", laps);
roomOptions.MaxPlayers = (byte)slots;
roomOptions.PublishUserId = true;
roomOptions.EmptyRoomTtl = 12;
roomOptions.PlayerTtl = 10;
roomOptions.IsVisible = Public.isOn;
roomOptions.CustomRoomPropertiesForLobby = new string[] { "mapname", "laps" };
if (PhotonNetwork.CreateRoom(roomname, roomOptions, TypedLobby.Default)){
}
else
{
Debug.Log("Failed to create room.");
}
}
Can anybody tell me what is causing this, please?
0