Help, JoinRandom(), get OperationResponse 226: ReturnCode: 32764 (Game closed).

riovoxtools
edited May 31 in Photon Server

I follow the steps below, it have a problem:JoinRandom, get OperationResponse 226: ReturnCode: 32764 (Game closed). 

Step 1. crete room:

RoomOptions roomOptions = new RoomOptions();

roomOptions.MaxPlayers = (byte)maxPlayers;

roomOptions.IsVisible = true;

roomOptions.IsOpen = true;

roomOptions.CustomRoomProperties = customroomproperties;

roomOptions.CustomRoomPropertiesForLobby = roomPropertiesList.ToArray();

roomOptions.PublishUserId = true;

roomOptions.PlayerTtl = -1;

roomOptions.EmptyRoomTtl = 0;

roomOptions.CleanupCacheOnLeave = false;

roomOptions.Plugins = new string[] { "XXGame" };

PhotonNetwork.CreateRoom(roomName, roomOptions, null);

Step 2.JoinRandomRoom:

PhotonNetwork.JoinRandomRoom();

Step 3: set isvisible/isopen on self-host server photon v5 

           if(PluginHost.GameProperties.ContainsKey((byte)GameParameter.IsVisible))

            {

              bool isVisible = (bool)PluginHost.GameProperties[(byte)GameParameter.IsVisible];

              if (isVisible)

              {

                PluginHost.SetProperties(0, new Hashtable() { { (byte)GameParameter.IsVisible, false } }, null, true);

              }

            }

            5 secondes later : PluginHost.SetProperties(0, new Hashtable() { { (byte)GameParameter.IsOpen, false } }, null, true);

Step 4: Quit the room

      PhotonNetwork.DestroyPlayerObjects(PhotonNetwork.player.ID);

      PhotonNetwork.LeaveRoom(false);

Step 5: join another room: call PhotonNetwork.JoinRandomRoom();

  Get error: OperationResponse 226: ReturnCode: 32764 (Game closed). Parameters: {} Server: GameServer

    32764 (Game closed) error is in callback OnPhotonJoinRoomFailed .

The OnPhotonRandomJoinFailed( object[] codeAndMsg ) is never call after (Game Closed)-error.

Step 6: Join another room again: call PhotonNetwork.JoinRandomRoom();

Get error: OperationResponse 226: ReturnCode: 32758 (Game does not exist). Parameters: {} Server: GameServer

I can't join any other room more.


Please help


   

Answers

This discussion has been closed.