Count of rooms/players matching a filter?

On the game I'm implementing Photon multiplayer I have different levels of difficulty. I'd like to be able to display the amount of players online for different difficulty levels. I know how to do random room joining using filtering, but would it be possible to get the count of rooms before? This would help the players in selecting the difficulty level. I don't want to end up in situation where they need to go back and forth picking their difficulty.

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @zilp,

    Check out my answer here.
  • Thanks @JohnTube ! I looked at the linked documentation and it says that the statistics include "Number of live rooms. Number of players not joined to a room." So am I correct in assuming it does not give me the total number of players online (inside the rooms?).
  • JohnTube
    JohnTube ✭✭✭✭✭
    edited December 2018
    Oh! Thanks for pointing that out.
    It's a mistake in the documentation.
    I have checked the internal docs, it should be:
    Count of players in per lobby (sum of players in the lobby and in rooms of the lobby).
    Will fix it asap.
  • Awesome! Thanks for the help. I will start looking into the lobbies.