![]() |
VOOZH | about |
The following discussion is closed. Please do not modify it.
With the wiki.vg merge, the packet format for compressed packets in some versions around 1.19.3 (found here, for example) list the "packet length" incorrectly.
Presently, it lists as:
| Compressed? | Field Name | Field Type | Notes |
|---|---|---|---|
| No | Packet Length | VarInt | Compressed length of (Packet ID + Data) |
| No | Data Length | VarInt | Length of uncompressed (Packet ID + Data) or 0 |
| Yes | Packet ID | VarInt | zlib compressed packet ID (see the sections below) |
| Data | Byte Array | zlib compressed packet data (see the sections below) |
but I have tested this and it is incorrect. Per the Java server, it should be:
| Compressed? | Field Name | Field Type | Notes |
|---|---|---|---|
| No | Packet Length | VarInt | Compressed length of (Packet ID + Data) + uncompressed length of Data Length |
| No | Data Length | VarInt | Length of uncompressed (Packet ID + Data) or 0 |
| Yes | Packet ID | VarInt | zlib compressed packet ID (see the sections below) |
| Data | Byte Array | zlib compressed packet data (see the sections below) |
This since-revised page with incorrect information on the historical protocol is still linked to, at this revision, on the main "Protocol version numbers" page. Is there anything that can be done about this? It seems improper to use revisions as such like this but, having never worked with wikis before, perhaps this is normal. I have not run this experiment with every version of Minecraft Java Edition but I doubt this only applies to 1.19.3.