Enter
Join a game instance with permission validation and player configuration.
The Enter message allows clients to join a specific game instance.
It handles permissions, passwords, whitelists/blacklists and configures the player's profile in the instance.
Priority
High - This message has a high priority to allow quick access to instances.
The Enter message requires the client to be authenticated. Requests sent before authentication will be rejected.
Client → Server Request
Payload Format
[instance_id: byte]
[flags: byte]
(UsePseudonyme ? [pseudonyme: string])
(UsePassword ? [password: string])Detailed Structure
| Type | Name | Description |
|---|---|---|
| byte | InstanceID | ID of the instance to join |
| byte | Flags | Instance entry options |
| string | Pseudonyme | Custom display name (conditional) |
| string | Password | Instance password (conditional) |
Enter Flags
| Value | Name | Description |
|---|---|---|
| 0x00 | None | Standard entry |
| 0x01 | AsBot | Join as a bot |
| 0x02 | UsePseudonyme | Use a custom pseudonym |
| 0x04 | UsePassword | Provide a password |
| 0x08 | HideInList | Hide from player lists |
Payload Example
[0x05] // InstanceID = 5
[0x00] // Flags = NoneEntry with Pseudonym and Password
[0x03] // InstanceID = 3
[0x06] // Flags = UsePseudonyme | UsePassword
[0x0A, "PlayerName"] // Pseudonyme = "PlayerName" (10 chars)
[0x08, "secret123"] // Password = "secret123" (8 chars)Entering as a Bot
[0x01] // InstanceID = 1
[0x09] // Flags = AsBot | HideInListServer → Client Response
Payload Format
[instance_id: byte]
[result: byte]
(Success ? (
[player_flags: uint]
[player_id: ushort]
[user_id: uint]
[server_address: string]
[display_name: string]
[created_at: DateTime]
[tps: byte]
[threshold: byte]
))
(Blacklisted ? [expires_at: DateTime])
(Error in result ? [reason?: string])Detailed Structure
| Type | Name | Description |
|---|---|---|
| byte | InstanceID | ID of the instance concerned |
| byte | Result | Entry result code |
| uint | PlayerFlags | Player flags in the instance |
| ushort | PlayerID | Unique player ID in the instance |
| uint | UserID | Authenticated user ID |
| string | ServerAddress | Server address |
| string | DisplayName | Player display name |
| DateTime | CreatedAt | Player creation timestamp |
| byte | TPS | Instance refresh rate |
| byte | Threshold | Instance latency threshold |
| string | Reason | Rejection or ban reason |
| DateTime | ExpiresAt | Ban expiration date |
Enter Results
| Value | Name | Description |
|---|---|---|
| 0x00 | Success | Successfully entered the instance |
| 0x01 | NotFound | Instance not found |
| 0x02 | Full | Instance full |
| 0x03 | Blacklisted | User banned from the instance |
| 0x04 | NotWhitelisted | User not authorized |
| 0x05 | InvalidGame | Incompatible game |
| 0x06 | IncorrectPassword | Incorrect password |
| 0x07 | Unknown | Unknown error |
| 0x08 | Refused | Connection refused |
| 0x09 | InvalidPseudonyme | Invalid pseudonym |
Player Flags (Success)
| Value | Name | Description |
|---|---|---|
| 0x001 | IsBot | The player is a bot |
| 0x002 | InstanceMaster | Reference player of the instance |
| 0x004 | InstanceModerator | Instance moderator |
| 0x008 | InstanceOwner | Instance owner |
| 0x010 | GuildModerator | Guild moderator |
| 0x020 | MasterModerator | Master moderator |
| 0x040 | WorldOwner | World owner |
| 0x080 | WorldModerator | World moderator |
| 0x100 | AuthUnverified | Authentication unverified |
| 0x200 | HideInList | Hidden from lists |
| 0x400 | HasCustomDisplay | Custom display name |
Response Example - Success
[0x05] // InstanceID = 5
[0x00] // Result = Success
[0x00, 0x00, 0x00, 0x00] // PlayerFlags = None
[0x00, 0x01] // PlayerID = 1
[0x00, 0x00, 0x04, 0x2A] // UserID = 1066
[0x0A, "nox.server"] // ServerAddress = "nox.server"
[0x0C, "PlayerName123"] // DisplayName = "PlayerName123"
[0x00, 0x00, 0x01, 0x8A, 0x32, 0x1F, 0x80, 0x00] // CreatedAt (timestamp)
[0x3C] // TPS = 60
[0x32] // Threshold = 50Response Example - Instance Full
[0x05] // InstanceID = 5
[0x02] // Result = Full
[0x0E, "Instance is full"] // Reason = "Instance is full"Response Example - Blacklisted
[0x05] // InstanceID = 5
[0x03] // Result = Blacklisted
[0x0F, "Disruptive behavior"] // Reason = "Disruptive behavior"
[0x00, 0x00, 0x01, 0x8A, 0x32, 0x1F, 0x80, 0x00] // ExpiresAt (timestamp)Response Example - Incorrect Password
[0x05] // InstanceID = 5
[0x06] // Result = IncorrectPassword
[0x12, "Incorrect password"] // Reason = "Incorrect password"Processing
Server Side
- Instance validation: Check that the instance exists
- Presence check: Ensure the client is not already in the instance
- Capacity control: Check that the instance is not full
- Permission validation: Check the blacklists/whitelists
- Flags processing: Configure the connection options
- Password validation: If required by the instance
- Player creation: Assign an ID and configure within the instance
- Notification: Update the Master Server
Client Side
- Data preparation: Assemble the instance ID and the flags
- Conditional sending: Append the pseudonym and/or password if necessary
- Response processing: Local configuration according to the result
Special Behaviors
Bot Mode
To join as a bot, the instance must allow bots (InstanceFlags.AuthorizeBot). Otherwise, the connection will be refused.
Custom Pseudonym
The pseudonym temporarily replaces the player's display name in this specific instance.
Password Protection
Protected instances require the UsePassword flag and a valid password.
Control Lists
- Whitelist: If enabled, only authorized users can join
- Blacklist: Banned users cannot join
Notification Messages
Join
When a player joins successfully, all other players in the instance receive a Join message with the new player's information.
Synchronization
The new player also receives data for all players already present, including:
- Avatar information via
AvatarChanged - Transformations via
Transform
Error Codes
Permission Errors
NotWhitelisted: The user is not on the whitelistBlacklisted: The user is banned with an expiration dateRefused: Connection refused (e.g. bot not allowed)
Instance Errors
NotFound: The instance does not existFull: The instance has reached maximum capacityIncorrectPassword: Incorrect password provided
Data Errors
InvalidPseudonyme: The provided pseudonym is invalidUnknown: Generic or unknown error