VOOZH about

URL: https://minecraft.wiki/w/Forum:Old_packet_compression_format

⇱ Forum:Old packet compression format – Minecraft Wiki


Forum:Old packet compression format

From Minecraft Wiki
Latest comment: 21 June by Dipanshu Sarkar in topic Old packet compression format
Jump to navigation Jump to search

Old packet compression format

Latest comment: 21 June2 comments2 people in discussion

The following discussion is closed. Please do not modify it.

Inactive for 10 months and no comments. -- 👁 Image
Dipanshu Sarkar (Talk) 11:53, 21 June 2026 (UTC)

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.

LemonLord (talk) 06:53, 28 August 2025 (UTC)

Retrieved from "https://minecraft.wiki/w/Forum:Old_packet_compression_format?oldid=3639512"

Navigation menu