fgamez1020
fgamez10205w ago

Room max players

When creating a room how do I set the total number of players that can join that Room?
6 Replies
kapa.ai
kapa.ai5w ago
Hi @fgamez1020. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- To set the total number of players that can join a Room in Normcore, you don't directly set a maximum player count. Instead, you choose a room server configuration that can accommodate the desired number of players. The room server configuration determines the resources allocated to the room, which in turn affects how many players it can support. When connecting to a room, you can specify the room server configuration using the RoomServerOptions struct. Here's an example of how to do this:
_realtime.Connect("My Room", new Room.ConnectOptions {
roomServerOptions = new Room.RoomServerOptions {
configuration = "medium"
}
});
_realtime.Connect("My Room", new Room.ConnectOptions {
roomServerOptions = new Room.RoomServerOptions {
configuration = "medium"
}
});
Room Server Options (https://normcore.io/documentation/room/room-server-options) The available configurations and their approximate player capacities for VR titles are: 1. Default (Small-Flexible): 8 Players (Burst up to 32) 2. Small: 16 Players 3. Medium: 40 Players 4. Large: 64 Players 5. X Large: 100 Players Room Server Configurations (https://normcore.io/documentation/room/room-server-options#how-many-players-can-i-fit-in-a-single-room) Keep in mind that these numbers are approximate and can vary based on the bandwidth usage of your application. VR applications typically use more bandwidth than non-VR applications. It's important to note that the room server configuration is set by the first player to connect and cannot be changed for the duration of the room session. After all players have disconnected and the room has been idle for 30 seconds, a new configuration can be applied by the next player to connect. Room Server Configurations (https://normcore.io/documentation/room/room-server-options#room-server-configurations) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai5w ago
<@1053407831916822528> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
fgamez1020
fgamez1020OP5w ago
@Normcore Assistant but for example how do I control it if I want to only 3 player connect to my room
kapa.ai
kapa.ai5w ago
Let me check the knowledge base for you again. One moment! :books: ---------------------- Normcore does not provide a direct way to limit the number of players in a room to a specific number like 3. The room server configurations provided by Normcore are designed to handle a range of players based on the server's capacity, not to limit the number of players to a specific count. However, you can implement a player limit in your application logic. For example, you can keep track of the number of players currently in the room and prevent new players from joining once the limit is reached. This would require custom code on your part and is not a built-in feature of Normcore. Remember to handle edge cases, such as players disconnecting and freeing up slots for new players to join. Also, consider how you want to handle the situation where a player attempts to join a full room. You might want to provide feedback to the player or direct them to a different room. For more information on how to manage rooms in Normcore, you can refer to the Normcore Documentation (https://normcore.io/documentation/). ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai5w ago
<@1053407831916822528> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
Mechabit
Mechabit5w ago
use a lobby system like unity lobbies