PhotonNetwork.JoinRandomRoom(): ReturnCode: 32760 (No match found). Parameters: {}
Options
Every time I call joinRandomRoom() it is saying Game is not available,
I cannot find open rooms, so it is creating new room. but I have many opened clients, I tested with many open rooms for testing.
This is my below code to create room.. and I am not closing room, it is open only...
anything below lead to this issue..?
RoomOptions tempRoomOptns = new RoomOptions();
tempRoomOptns.MaxPlayers = (byte)maxPhotonRealPlayers;
tempRoomOptns.PlayerTtl = 60000;//1Min.
tempRoomOptns.EmptyRoomTtl = 10000;
tempRoomOptns.PublishUserId = true;
//PhotonNetwork.autoCleanUpPlayerObjects = false;
//tempRoomOptns.CleanupCacheOnLeave = false;
PhotonNetwork.CreateRoom(randomRoomName, tempRoomOptns, null);
I cannot find open rooms, so it is creating new room. but I have many opened clients, I tested with many open rooms for testing.
This is my below code to create room.. and I am not closing room, it is open only...
anything below lead to this issue..?
RoomOptions tempRoomOptns = new RoomOptions();
tempRoomOptns.MaxPlayers = (byte)maxPhotonRealPlayers;
tempRoomOptns.PlayerTtl = 60000;//1Min.
tempRoomOptns.EmptyRoomTtl = 10000;
tempRoomOptns.PublishUserId = true;
//PhotonNetwork.autoCleanUpPlayerObjects = false;
//tempRoomOptns.CleanupCacheOnLeave = false;
PhotonNetwork.CreateRoom(randomRoomName, tempRoomOptns, null);
1
Answers
-
@Balutm try adding
tempRoomOptns.IsOpen = true; // to let others join till its open to join
tempRoomOptns.IsVisible = true; // to list room created room in lobby for callback function
implement this function for callback
void OnReceivedRoomListUpdate()
{
var roomsList = PhotonNetwork.GetRoomList();
for (int i = 0; i < roomsList.Length; i++)
{
Debug.LogFormat(this, "[{0}] - {1}", i, roomsList[i].Name);
}
}
0