RoomsCount and RoomInfoList

Options
Hi,

I'm currently working on updating an existing product that has Photon already in and working. However, part of this update is to include a lobby menu to see existing games. I can't seem to get RoomInfoList as it is always empty.

I create a room:
public void CreateTurnbasedRoom(string roomName, int maxPlayers) {
     	Debug.Log("Create new room with id " + roomName);

		RoomOptions roomOptions = new RoomOptions();
		roomOptions.MaxPlayers = (byte)maxPlayers;
		roomOptions.PublishUserId = true;
		roomOptions.IsVisible = true;

        this.OpJoinOrCreateRoom(roomName, roomOptions, TypedLobby.Default);
	}

When running a test, I have a device currently sitting it a room it created. Checking prints, I get the following:

RoomsCount = 1
RoomInfoList = 0


How do I properly get the list?

Thanks!

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    edited July 2017
    Options
    Hi @Osteel,

    Thank you for choosing Photon!

    Make sure you are joined to the lobby, e.g. by ticking "AutoJoinLobby" in "PhotonServerSettings".
  • Osteel
    Options
    Thanks!

    Yeah, we definitely checked for that. However, turns out the version of the SDK we were using didn't include the OpGetGameList call. We updated and everything seems to be in order.