You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Being able to create lobbies for a specific game and join already existing lobbies. With a specific message, you are also able to get a list of all the lobbies and (when specified with a payload) being able to filter lobbies.
Specific features
Password protection
Lobby naming
Controlled and uncontrolled lobbies (one player being the host or controlled by the server automatically)
Messages Concepts
EMessage_RecvWaitingForPlayers will be the message that joining a lobby was successful and the message to inform about new players in the lobby.
Client -> Server
EMessage_SendJoinLobby
DATA_1: uint32_t(<CLIENT ID>)
DATA_2: uint32_t(<LOBBY ID>)
DATA_3: RakString(<PASSWORD>) (optional; only when lobby is password protected)
EMessage_SendLobbyList
DATA_1: EGame(<GAME>) (optional; if send, lobbies only for the specified game will be shown)
EMessage_SendCreateLobby
DATA_1: uint32_t(<CLIENT ID>)
DATA_2: EGame(<GAME>)
DATA_3: RakString(<NAME>)
DATA_4: RakString(<PASSWORD>) (optional; only when the host wants to password protect it)
EMessage_SendAssignNewHost
Can only be executed by the current host.
DATA_1: uint32_t(<CLIENT ID>)
DATA_1: uint32_t(<LOBBY ID>)
DATA_2: uint32_t(<CLIENT ID OF NEW HOST>)
Server -> Client
EMessage_RecvLobbyList
DATA_1: uint32_t(<LOBBY ID>)
DATA_2: RakString(<NAME>)
DATA_3: uint32_t(<NUM PLAYERS IN LOBBY>)
DATA_4: bool(<PASSWORD PROTECTED Y/N>)
DATA_5...: (above repeating for every lobby)
EMessage_RecvNewHost
For when the original host leaves and a new one will be randomly assigned or when EMessage_SendAssignNewHost is executed.
DATA_1: uint32_t(<LOBBY ID>)
DATA_2: uint32_t(<CLIENT ID OF NEW HOST>)
Errors
EServerError_InvalidLobbyPassword
What do you think?
The text was updated successfully, but these errors were encountered:
Zandor300
changed the title
New Lobby Management System
[Feature] New Lobby Management System
Mar 28, 2018
Being able to create lobbies for a specific game and join already existing lobbies. With a specific message, you are also able to get a list of all the lobbies and (when specified with a payload) being able to filter lobbies.
Specific features
Messages Concepts
EMessage_RecvWaitingForPlayers
will be the message that joining a lobby was successful and the message to inform about new players in the lobby.Client -> Server
EMessage_SendJoinLobby
EMessage_SendLobbyList
EMessage_SendCreateLobby
EMessage_SendAssignNewHost
Can only be executed by the current host.
Server -> Client
EMessage_RecvLobbyList
EMessage_RecvNewHost
For when the original host leaves and a new one will be randomly assigned or when
EMessage_SendAssignNewHost
is executed.Errors
EServerError_InvalidLobbyPassword
What do you think?
The text was updated successfully, but these errors were encountered: