Skip to content

Packet IDs

The packet IDs are usually the first values (Uint8) of the packets.

The e_PacketId enum represents different packet identifiers used in the Zombs Royale server protocol. Each packet ID corresponds to a specific type of communication or data exchange between the client and the server. Below is the documentation for each packet ID:

public enum e_PacketId
{
PACKET_ENTITY_UPDATE, // 0x00 (0)
PACKET_PLAYER_COUNTER_UPDATE, // 0x01 (1)
PACKET_SET_WORLD_DIMENSIONS, // 0x02 (2)
PACKET_INPUT, // 0x03 (3)
PACKET_ENTER_WORLD, // 0x04 (4)
PACKET_PING = 7, // 0x05 (5)
PACKET_RPC = 9, // 0x06 (6)
PACKET_UDP_CONNECT, // 0x07 (7)
PACKET_UDP_TICK, // 0x08 (8)
PACKET_UDP_ACK_TICK, // 0x09 (9)
PACKET_UDP_PONG, // 0x0A (10)
PACKET_UDP_TICK_WITH_COMPRESSED_UIDS, // 0x0B (11)
PACKET_UDP_FRAGMENT, // 0x0C (12)
PACKET_UDP_CONNECT_1300, // 0x0D (13)
PACKET_UDP_CONNECT_500, // 0x0E (14)
PACKET_UDP_RPC = -1 // 0xFF (-1)
}
  • Value: 0 (0x00)
  • Description: Represents a packet for updating entity information.
  • Value: 1 (0x01)
  • Description: Represents a packet for updating player counters.
  • Value: 2 (0x02)
  • Description: Represents a packet for setting world dimensions.
  • Value: 3 (0x03)
  • Description: Represents a packet for input data exchange.
  • Value: 4 (0x04)
  • Description: Represents a packet for entering the world.
  • Value: 7 (0x07)
  • Description: Represents a packet for ping communication.
  • Value: 9 (0x09)
  • Description: Represents a packet for Remote Procedure Call (RPC) communication.
  • Value: 10 (0x0A)
  • Description: Represents a packet for UDP connection establishment.
  • Value: 11 (0x0B)
  • Description: Represents a packet for UDP tick communication.
  • Value: 12 (0x0C)
  • Description: Represents a packet for acknowledging UDP ticks.
  • Value: 13 (0x0D)
  • Description: Represents a packet for UDP pong communication.
  • Value: 14 (0x0E)
  • Description: Represents a packet for UDP tick with compressed UIDs.
  • Value: 15 (0x0F)
  • Description: Represents a packet for UDP fragmentation.
  • Value: 16 (0x10)
  • Description: Represents a packet for UDP connection with a specific size (1300).
  • Value: 17 (0x11)
  • Description: Represents a packet for UDP connection with a specific size (500).
  • Value: -1 (0xFFFFFFFF)
  • Description: Represents a special packet for UDP Remote Procedure Call (RPC) communication.

Note: This documentation provides a brief description of each packet ID and its associated value.