Skip to content

Latest commit

 

History

History
56 lines (43 loc) · 2.16 KB

04_removeplayer.md

File metadata and controls

56 lines (43 loc) · 2.16 KB

0x04 RemovePlayer

Host-to-Client

This message is sent from the host of a game to a client that is attempting to join the game when it is already full.

Type Name Description
int32 Game ID The ID (code) of the game
packed uint32 Disconnected Client ID The ID of the client that was disconnected
byte Disconnect Reason The ID of the disconnect reason for why the client was disconnected
Click here to view an example packet
01              # Reliable packet
0085            # Nonce
080004          # Hazel message (tag of 0x04 = RemovePlayer)
    d3503f8a    # Game ID: -1975562029 (REDSUS)
    bdff0b      # Disconnected Client ID: 196541
    01          # Disconnect Reason: 1 (GAME_FULL)

Server-to-Game

This message is sent from the server to all clients in a game when another client leaves the game.

If two clients tried to join a game with one spot open, the host of the game will send this packet to the last client to join.

Type Name Description
int32 Game ID The ID (code) of the game
uint32 Disconnected Client ID The ID of the client that was disconnected
uint32 Host Client ID The ID of the client that is now the current host of the game
byte Disconnect Reason The ID of the disconnect reason for why the client was disconnected
Click here to view an example packet
01              # Reliable packet
0016            # Nonce
0d0004          # Hazel message (tag of 0x04 = RemovePlayer)
    d3503f8a    # Game ID: -1975562029 (REDSUS)
    bdff0200    # Disconnected Client ID: 196541
    48ff0200    # Host Client ID: 196424
    00          # Disconnect Reason: 0 (EXIT_GAME)

Previous section: 0x03 RemoveGame
Next section: 0x05 GameData