Matt Sich
Matt Sich2w ago

get room player count or auto spillover limit

Is there a way to get the number of players in a room before you joint or join rooms with spillover (if a room has 8 players, you join the next one). We usually do this ourselves with our own infra but would be great to have this ability in normcore for quick POCs
7 Replies
kapa.ai
kapa.ai2w ago
Hi @Matt Sich. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Currently, Normcore does not provide a built-in API to get the number of players in a room before joining, nor does it offer automatic spillover (auto-balancing or auto-sharding) between rooms out of the box. According to the documentation, getting a list of all rooms and their player counts is a feature that is being worked on, but for now, you need to manage this yourself in your own infrastructure or application logic. This means you would need to track room occupancy and implement spillover logic on your own server or backend service if you want to direct users to less-full rooms automatically Architecture Common Questions. For quick POCs, you could use your existing approach to track room occupancy, or implement a simple matchmaking service that assigns users to rooms based on your own criteria. If you need more advanced control or features, Normcore Private may offer additional options, but for the public version, this functionality is not available yet. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai2w ago
<@547202821230034954> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
maxweisel
maxweisel2w ago
There’s no API at the moment, but we have a Lobby API in the works that will do this. It’s unfortunately gone through several iterations as we work to get the API perfect.
Matt Sich
Matt SichOP2w ago
thanks @maxweisel ! not a problem at all. Just a "would be nice if" thing for something I'm about to start on
maxweisel
maxweisel2w ago
we’re on it. basically every GT clone has asked for it too
Matt Sich
Matt SichOP2w ago
haha I bet!
khoi
khoi2w ago
yeaaaa we just implemented it too lol, we used a heartbeat timer per mechabit's advice

Did you find this page helpful?