-
Notifications
You must be signed in to change notification settings - Fork 3
CubeWorld network protocol
LastExceed edited this page Mar 3, 2020
·
1 revision
CubeWorld uses raw TCP sockets for networking.
All data is encoded Little Endian.
The protocol is an endless stream of integers specifying the packet type, followed by the binary packet data.
Some packets are compressed using the Zlib deflate algorithm. These packets have their compressed binary data preceded with an integer specifying its size
There are 19 different packets in total:
ID | Name | Sent by server | Sent by client | Compressed | Notes |
---|---|---|---|---|---|
0 | Creature Update | Yes | Yes | Yes | |
1 | Multi Creature Update | Yes | No | Yes | unused in vanilla |
2 | Wave Clear | Yes | No | No | |
3 | Air Traffic | Yes | No | No | unused in vanilla |
4 | Server Update | Yes | No | Yes | |
5 | Time | Yes | No | No | |
6 | Creature Action | No | Yes | No | |
7 | Hit | No | Yes | No | |
8 | Proc | Yes | No | No | |
9 | Shot | Yes | No | No | |
10 | Chat Message | Yes | Yes | No | |
11 | Current Chunk | ? | Yes | No | |
12 | Current Biome | ? | Yes | No | |
13 | Unknown | ? | ? | ? | unused in vanilla |
14 | Unknown | ? | ? | ? | unused in vanilla |
15 | Map Seed | Yes | No | No | |
16 | Join | Yes | No | No | |
17 | Protocol Version | Yes | Yes | No | |
18 | Server Full | Yes | No | No |