Slice

Protocol coverage

RakNet protocol coverage and the feature flags that gate it.

RakNet protocol coverage and feature flags

The transport has one wire vocabulary now (client/src/raknet/protocol.*): packet ids and their meanings, all five reliability modes, the datagram/message/split headers, ACK and NAK records (the client's compact form and the RCC's trailing-u24 form), a bit-exact stream reader/writer, and a per-session census printed in the exit summary as raknet: census dgrams=… internal=… app=… sub=… unknown=…. Unknown ids are counted and named as unknown once; nothing is silently dropped. The raknet_protocol unit suite pins every layout, and raknet_rx_stream pins the reassembly policy that now runs on top of the shared codec. When a SOCKS5 proxy with UDP support is configured, raknet/socks_udp.* wraps the session's datagrams instead of sending them directly; the socks_udp suite pins that UDP ASSOCIATE framing.

Upstream input lives in client/src/raknet/input.*: the captured 0xA6 route frames plus the ControlState block ([N][A][B][len][presence][values]) with explicit slot selection. --input=control --slots=0,3 sends a chosen ControlState; the slot-to-movement mapping is not recovered, so the client never invents a "forward" key.

Optional subsystems are CLI switches, so a run pays only for what it uses:

Flag Effect
--no-render (or --headless) no GL window; the identical Engine world runs headless
--no-scripts parse replication and build the world, skip Luau chunk execution
--gui / --no-gui install PlayerGui/CurrentCamera (default on; Font is always available). --no-gui drops the tree for the smallest client
--no-physics accepted for symmetry; physics is server-authoritative and this build has no client solver
--input=native\|control + --slots=N[,N] captured route frames, or an explicit ControlState probe
--render / --scripts / --physics positive forms; win over the --no- counterpart
--packet-manifest print every app id 0x81..0xa9 with direction and receive/send codec status, then exit
--app-probe=96,96f,99 send native-shaped 0x96/0x99 client messages once after the join (opt-in)

These switches choose local behavior; they are not part of the RakNet wire codec. The renderer and the Luau runtime consume the same replicated Engine world, and physics is server-authoritative, so disabling any of them does not change the bytes on the wire. The client has no local physics solver to turn on: --physics records the choice and the server remains authoritative. The unfinished reference client at alexkkork/roblox-client is useful as a Luau/animation reference, but it does not supply the missing RakNet app-id or camera-reference layouts; packet coverage is tracked only by the capture-backed manifest (--packet-manifest).

The local avatar path is capture-backed but not fully deterministic. The client sends the native's exact 55-byte 0x83/04 character-state bootstrap at ordering slot 6. On 1818 both test accounts then link their own Character and the viewer reframes on it (--headful; RBX_SHOT_AVATAR=1 holds --shot until the avatar is framed). On 189707 two of six post-parser runs linked ChatGGPT; the other four reached the world with no local Character, and the default route input stays at nActions = 0. RBX_NO_8304=1 disables the bootstrap for A/B runs and RBX_8304_RAW=<file> overrides its bytes.

After the spawn the RCC streams 0xA1 client-state messages (~1 KB, ~40-100/s; separate from the 44-byte outbound camera frame). The 17-byte envelope is parsed (a1 <u32 tick> <u32 records> <u32 ack> <u32 flags>), then records with [ref][u16 class][u16 member_count][ceil(member_count/64) mask words] [u16 body_len][body]. Multi-word masks (68/69/70/82-member classes) and the variable four-byte inter-record marker are handled; a live run parsed 1,166 messages / 14,978 records with zero A1 failures. Per-class bodies are still being mapped, so they are carried opaque (a1=<messages>/<records>) rather than treated as an unknown id.

The server's 0x93 network-settings push is decoded too: [93][u8 flags] [u16 count] plus name/value strings. The live 51-entry push logs as 0x93 network settings: flags=0 entries=51; it is server-to-client only.

The 44-byte outbound 0xA1 camera frame now has a tested buildA1Camera(clock, ref) builder. It remains gated on the capture id actually existing in the current world: sending the frame with a live character-model or HumanoidRootPart id was rejected by the RCC with 0x15 01 04 on 1818, so no live-ref substitution is enabled.

The observed client handshake messages also have builders now: 0x96 (idle/flag form), 0x99 (14-byte capability report), and the 0x04 marker acknowledgement. They are sent by --app-probe=96,99 when the caller wants the native-shaped probe; they are not forced into the proven join ladder. A live probe was accepted and the session stayed joined.

The app-id range is now 0x81..0xa9, not 0x81..0xa7: the native checks 0xa9 as a compressed-packet wrapper and 0xa8 is a real early-auth builder, while 0xa0 is the transport NAK and is not an app message. --packet-manifest prints all 41 ids with direction and receive/send codec status; ids with no capture are shown as (unobserved) instead of being given invented names.

The 0xA9 wrapper is decoded: [A9][LEB128 decompressed size][LZ4 block], with the native's optional trailing u16 hash and an optional 9-byte 0x1B timestamp prefix. The decoder is the LZ4 block grammar (native sub_253DF1C), not zstd; the decompressed inner payload is fed through the normal application sink. No 0xA9 packet has appeared in the captured live sessions yet, so it is marked receive-decoded on the native layout evidence, not on a live capture.

The formerly unobserved 0x86 server stream is now structurally decoded. A 189707 capture carried 50 messages / 74 records: [86][u8 version=01] then N × 11-byte records, with N implied by the remaining length (13/24/35/46/57/90 bytes = 1/2/3/4/5/8 records; the byte after 0x86 is a version, not a count). Each record is {u32 ref_a, u8 ref_kind=1, u32 ref_b, u8 state, u8 flag}. Across all 74 records ref_kind is always 1, state is 0-5, and flag is 0/1. The manifest reports APP_INSTANCE_PAIRS s2c recv=yes send=no; the pair's semantic role is deliberately unassigned because no native 0x86 handler was located, only size/priority comparisons. RBX_PAIR_CLASSES=1 prints the DataModel classes behind both refs when the message recurs. Six follow-up joins after the parser landed did not contain 0x86, so the live application effect and the name of the relationship remain open rather than guessed.

The 0x83 chain walker handles the 4-byte parent-ref lo and the typeless script bytecode bulk (whose first byte can collide with a real item type). It still stops loudly on bytes outside the native dispatch tables. A prior 25 s run pinned the documented 24-byte 0xa3 atomic unknown; a 20 s probe run reached stops=0 walk_fail=0 unk_flag=0 unk_id=0 unk_app=0 with the local avatar linked. 0xb9/0xe3/0xe5 appeared in other sessions and are left unassigned rather than given invented semantics.

A live --app-probe=96,99 run sent the 2-byte 0x96 and 14-byte 0x99 messages, kept the avatar linked, parsed 794 A1 messages / 9,395 records, and saw no 0x15 disconnect.