How Rove works
Wire format
Every packet is built from a small set of primitives. Numbers are little-endian. Lengths and counts are usually variable-length integers. Signed variable-length integers are zig-zag encoded so small negative numbers stay small.
#Primitives
#Decode bytes yourself
Pick a type, paste hex, and see how Rove reads it, byte by byte. The examples are real encodings. Select a byte and drag it up or down, or use the arrow keys, and watch the value move; flip single bits in the row that appears underneath.
#Variable-length integers
varuint32 is LEB128: seven bits per byte, low bits first, with the top bit set on every byte except the last. Small numbers, which is most counts and lengths, take one byte.
Signed values are zig-zag encoded first, so the sign moves to the lowest bit and small negative numbers stay small too. Type a number, or step it across a boundary like 127 → 128 and watch a byte appear.
#Compressed blocks
Large payloads (join data, terrain clusters, the schema) are Zstandard frames with both sizes up front: u32 compressed length, u32 uncompressed length, then the frame. Rove refuses frames whose declared size is over its limit before decompressing them.
#CFrames
A CFrame is a position (three f32) and an orientation byte. Ids 1–36 name the rotations that keep a part lined up with the axes. The id is computed from where the part's right and top faces point, 6 × right + up + 1, so only the 24 pairs that are perpendicular are real rotations. Most CFrames in a build are one of them and cost 13 bytes.
Id 0 means "the full rotation follows": nine floats for the matrix form (49 bytes) or a packed quaternion for the quaternion form (19 bytes).
Rove's decoder builds the matrix the same way this does: the right and up vectors from the id, and the third column as their cross product.