Native chat references and voices
The server preserves native reference and voice records in live tells, Global, Team and vicinity messages. Sender identity, channel membership and vicinity range still come from the authenticated connections. The client handles link display, template lookup, cached character descriptions and voice playback.
Original wire contract
All counts and integers are big endian. B is one byte, I is a 32-bit integer,
S is a 16-bit byte count followed by string bytes without a terminator, and
D is a 16-bit byte count followed by raw bytes. Empty strings and blobs have
count zero. Valid metadata can accompany empty text, as a native voice can do.
Plain empty messages remain silent. Metadata contains at most one of each
record, in this order:
| Record | Fields |
|---|---|
| Reference | B(0) I I I S S |
| Voice | B(1) B B S S |
There is no record count or separate record length. The server requires exact exhaustion, rejects truncated strings, embedded NUL, repeated/reversed records and unknown record types. Native record2 can override Ignore and is absent from the public producer; clients cannot relay it. These admission checks follow the public producer, rather than the more permissive native receiver. They are reconstruction policy, not recovered original-server moderation rules.
Tell packet30 uses ISD, with a leading mode byte0 inside D. Group packet65
uses GSD, with records alone inside D; server delivery inserts the sender's
I after G. The extra four bytes must fit the enclosing 16-bit frame length.
Vicinity input carries records after its text mode, and delivery packet34 puts
that mode followed by records inside D. Empty metadata remains valid.
Character references contain identity type50000, character ID and zero. Their second string is the cached description. Item references contain low/high template IDs and quality level; their second string is empty. The visible link label is in the message text between bytes0x11 and0x12. The first metadata string can be empty, as it is in actual native drops. The server preserves these fields without inventing item-template or character-description rules.
Native voice records contain breed/sex bytes and style/effect strings. The
client resolves nickname, breed, sex and style variants before the plain effect
name. /voice accepts custom effects and quoted arguments, including relative
asset paths; the six examples in help are not a command whitelist. The literal
style distunguished comes from the original producer. Unknown breed/sex values
use native fallbacks. The relay imposes no additional enum or filename policy.
The browser sound-size lookup resolves relative components before consulting
its manifest, matching native filesystem lookup for custom voice paths.
The MMR queue has a 260-byte filename field, prefixed by eleven bytes before
the input name. Its entry rejects names longer than 248 bytes, including .wav,
before formatting or allocation. It does not truncate or alias cache names.
This protects the actual native storage boundary without restricting server
voice tokens according to the receiver's possible assets or nickname.
Evidence and limits
Original 14.9.1 DDR SHA256 is
3c937161de8f690351c3c08e158431417cee9ced77a41b677e7123b61a8c9883;
CCR SHA256 is
4c6d8dfc7eaa39044935d94e678ee4ead922decad36ed616a7843dcb51e7c55a.
DDR producer1000b740 defines the records; queue10009670 distinguishes tell/group
blobs; encoder100a5e10 defines empty/count behavior. CCR InsertLink10006870 and
DDR click path100052c0 establish link attachment and information-window events.
DDR command1000d540, resolver10002450 and text loader10001ce0 establish custom
voice production and local-file requirements. Complete exports, matching
snapshots and 57 validated citations are retained in
docs/research-notes/chat-metadata-research/metadata.md, voice-playback.md and their
manifest. Original MMR queue10002f50 and initializer10001210 establish the
filename field and its neighboring state byte. Static client
evidence does not establish original network-service policy.
Voice requires stat389 bit0 (LandControl/Notum Wars) and both local WAV and TXT
files. The current server does not publish that entitlement, and the supplied
asset trees lack cd_image/sound/sfx/player. These remain separate TODOs.
The existing custom login history stores plain text and replays senderless
system messages. It does not restore references/voices or honor native Ignore;
original reconnect/history behavior still needs research.
Verification
Go tests exercise authenticated tell/Global/Team delivery with no metadata, reference, voice and both records. They cover every truncated record prefix, unknown/privileged records, duplicates/order, embedded NUL, unsupported tell modes, metadata-only voices, unchanged plain empty messages, maximum group frame size, rejected-message history and stale world sessions. World tests cover all four vicinity modes with complete and fragmented WebSocket input and exact output bytes. The full Go suite passed in 383 seconds.
Two GPU WASM clients reproduced the dropped-reference bug before the fix.
Afterward, native Knowledge drops delivered byte-identical metadata through
Global/tell/vicinity, and clicking received links opened the cached Soldier
description. An actual Solar-Powered Pistol inventory drop opened its native
template details. An ignored linked message reached the socket while native
scrollback stayed exactly unchanged. Runtime artifacts are retained in
local/chat-metadata-smoke/.
Native voice records and local text substitution worked through Global, vicinity and Team; Ignore left the receiver's full scrollback unchanged. A browser-only fixture supplied a TXT companion for an existing original game WAV and temporarily set stat389 on the two owned guest actors. The custom relative voice path fetched that WAV and reached the real audio decoder on both clients after the manifest lookup fix. This exercises the native path without claiming recovery of the missing player voice pack. Reloading both clients with an empty TXT fixture also delivered the native metadata-only Team message and decoded its WAV on both sides.
The native MMR fixture calls the real exported PlayPlayerFX entry and queue,
observing only formatting, cache lookup and scheduling boundaries. Linux and
WASM runs accept input length248 and reject249,2048,65535 before formatting;
volume multiplication, guest stack, preserved registers, FPU depth and exception
chain remain correct. Sound-metadata tests cover case, slash and relative-path
normalization without extra filesystem/network work. Controls (73), profiling
and publisher regressions pass. All affected Go cases passed twice under the
race detector in 154 seconds; the other vet analyzers pass with the already
tracked Go stdversion mismatch excluded.
The owned team was dissolved through the native UI. Characters57/58, their 28 history copies, one buddy row and the single owned item220/location were removed. All other database rows stayed unchanged; integrity and foreign keys passed. Owned browser contexts closed, and the one shared LAN preview remains on HTTPS8443.