Mischa Winkler
Mischa Winkler3mo ago

Reliably Updating Player Count in Room

What is the most reliably/common way of keeping track of player counts in a rooms through a backend service? Is it possible to query rooms from outside of Unity?
Solution:
We’ll be putting a list of folks together for the Lobby API beta in three weeks! stay tuned on that front
Jump to solution
11 Replies
kapa.ai
kapa.ai3mo ago
Hi @mischaw. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Based on the information provided in the extracts, there isn't a built-in feature in NormalVR to get a list of all rooms and the number of players in them. This is something you'll need to manage yourself source (https://normcore.io/documentation/architecture/common-questions#how-do-i-get-a-list-of-all-rooms-and-how-many-players-are-in-them). However, the Normcore Cloud backend is made up of three components: the matcher, clusters, and rooms. The matcher service provides an API for all applications to make requests to the Normcore Cloud backend. The most common form of request is to join a room, but it can also be used to query info about the rooms themselves source (https://normcore.io/documentation/architecture/cloud). As for querying rooms from outside of Unity, the documentation does not provide specific information on this. However, since the Room + Datastore API deals with data only and is unaware of any Unity objects, it might be possible to interact with it outside of Unity source (https://normcore.io/documentation/room). For more specific information or guidance, you may want to refer to the official Normcore documentation or reach out to their support. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai3mo ago
<@847936237003604048> kapa.ai is still learning and improving, please let us know how it did by reacting below
Solution
maxweisel
maxweisel3mo ago
We’ll be putting a list of folks together for the Lobby API beta in three weeks! stay tuned on that front
Mischa Winkler
Mischa Winkler3mo ago
Great to hear. I'll hack together a Unity room crawler script for now.
Garett
Garett3mo ago
Please let me know about this for Sail VR
maxweisel
maxweisel3mo ago
will do!
Mechabit
Mechabit3mo ago
put me on that list as well for custom map browsing, assuming it works for empty rooms as well we use unity lobby for player counts in rooms but it only works for rooms with users, I'm hoping the normcore solution will include empty rooms
Horse Eater Beater
Let me know about this!
maxweisel
maxweisel3mo ago
will do!
maxweisel
maxweisel2mo ago
@Mischa Winkler @Mechabit @Horse Eater Beater @Garett We've got an alpha ready to start testing! Will you all send me a DM with the project you're building and a small description of how you plan to use the Lobby API? I'm putting together a group of folks to test it out and give us feedback!
xulipa
xulipa2mo ago
Hey Max I just dm'ed you! I would love to join the alpha testing