Friends and recent correspondents
The original 14.9.1 Friends window uses one entry per character, with status
and an opaque metadata blob. Status 0 is offline and 1 is online. A one-byte
blob of 0 places the entry in the temporary ? group; 1 makes it permanent.
The native UI treats other nonzero bytes as permanent and defaults to permanent
when the blob length differs from one. Metadata is preserved byte for byte.
Original client evidence
These observations use original ddr.dll, SHA-256
3c937161de8f690351c3c08e158431417cee9ced77a41b677e7123b61a8c9883.
The complete retained export and ledger are in local/buddy-research/.
The export contains 94 records, 16,720,849 bytes, SHA-256
2fe84db4eee7a800eef409be9c4962e0887e5b8de794ce262e296a2d56474463.
Chat framing is big-endian type u16, body length u16. I is u32 and D is
a u16 byte count followed by opaque bytes. Names use the same counted layout.
| Direction/type | Body | Meaning |
|---|---|---|
| C2S 40 | ID |
Add/update entry |
| S2C 40 | IID |
ID, online status, metadata |
| C2S/S2C 41 | I |
Remove entry |
| C2S 120 | Count u16, counted words | /cc account command |
The selected receive dispatcher has no type 42 branch; presence is another type 40 update. Names arrive separately in type 20. Sending the name before the first buddy update avoids a transient unnamed row.
Original symbols and retained evidence:
ddr.dllsender 0x1009d110 sends C2S 40ID; sender 0x1009d140 sends 41I. Evidenceev_fb7a29e75b3c7686412c578c0391ef888fa792158963a0e6bdc6cf90387daa2a,ev_1452ef70616b7ccbaea548c83d5e4f102e8e275ff3e2975c55bcfa2de8b892ad,ev_b820a17916d35e4592be27b39ab310290eb92bba33fde47d6f4332be9df5de10.ddr.dlldispatcher 0x1009d780 receives 40IID, updates existing entries, removes them on 41 and updates names from 20. Evidenceev_7cbc389c64ec7925fb38fe8fc6d10d58ba346da89444cedd4d6c95b7832f2ddd.IcqViewModule_t::UpdateBuddyList0x100554d0 -> 0x1004f7f0 interprets the one-byte classification. Comparator 0x10053dd0 groups permanent online, permanent offline, then temporary entries, sorting names within each group. Draw 0x1004ea70 selects the online icon for status 1. Evidenceev_3dc259d94b94190f4b355ebbd968ff95468dc047c299562865c2d5ea3ca5e4e1,ev_de098002d450cb312e002518c397e746605d576c995f39a9921deed226213a66,ev_f2965c57a1066e4f8aa529a7e2b1867c79005259d3eb1691e14b6a240e80c4dc.MaybeAddToBuddyList0x100554f0 -> 0x1004fbf0 adds a new correspondent with blob 0, skipping self and existing entries. Accept 0x10051280 promotes it with blob 1. Reference-drop 0x10055230 accepts only player identities; add wrapper 0x10012880 suppresses self-add. Evidenceev_8fa4d52fe46e5e2a6eb45f1888465aa23620df0dc4844eab0669b2610ad14731,ev_5e072fd65b3f3f268aee45904d6276274eb6987c6cd753d7ade44896830fac90,ev_21e5562b65c605eb044bf18149d52867127ec5499b8a2f3b77e2b0f8a9eddb64,ev_601077ae64b4a908adf11b327f3f4161c9e6c86c6de0be19d4a385675a289c36./ccparser 0x1000cc00 -> sender 0x1009d2d0 sends a counted word array as type 120. Evidenceev_87d2ac13670ed54a717efb645335afcce86a0c70ccfc263b1d04dddd9959fac7,ev_be90e96b5f5dc4ac18813f39417fdb843cd1ccec18c303658077b625775c0693.
Shipped cd_image/text/help/ChatHelp.txt documents /cc addbuddy <name>,
/cc rembuddy <name> and /cc rembuddy ? to clear the temporary group.
The Friends Window.txt describes player-reference drops and online status
at login. Ctrl+7 opens the native window.
Server behavior
buddies stores owner ID, buddy ID and metadata, with player foreign keys and
one row per pair. Add, promotion, removal and clearing the temporary group
commit before memory or acknowledgment changes. An unchanged add does not
rewrite the row. SQL failures, ignored writes and failed commits preserve
the previous state. Clearing the temporary group is one transaction.
The server loads this graph with the characters. Presence is derived from live chat sessions and never stored. Login restores the list with name packets before buddy updates, then notifies connected owners who have saved the arriving character. Logout notifies those owners only. Entries do not create reciprocal friends or notify unrelated players. A replacement chat does not emit a false offline event from the departing connection. Actual world departure closes chat; zoning and session replacements preserve it. Browser transport detachment retains the existing two-minute resume grace. Control-panel character edits preserve the graph in memory.
Names in /cc commands match case-insensitively. UI packets and commands
share the same mutation path. Self, unknown players and NPCs are rejected;
malformed frames close chat. Error text, forged-request policy and exact
original-server limits have not been recovered. No friend-count limit is
invented. The metadata bound only ensures the outgoing u16-length frame fits.
Temporary entries are also durable in this implementation. The shipped UI establishes their classification and promotion, but does not establish whether the original server kept them across logout. That policy remains a research question. Other status values, away state, flood rules, private groups and the separate native ignore system remain outside this feature.
Verification
Go tests exercise actual chat framing and session handlers for offline add, promotion, duplicate add, persistence/reload, case-insensitive commands, removal, empty and opaque metadata, temporary-group clearing, online/offline changes, replacement sessions, owner reconnect, notification privacy, world departure, malformed input and control-panel preservation. Insert, update and delete failures cover SQL errors, ignored mutations and failed commits; partial group deletion must roll back together. Zoning targets remain online in new snapshots and adds; owners in the world-connection gap still receive status changes over their retained chat connection.
Two hardware WASM clients verified the native /cc command route, incoming
tell creation of a temporary entry, promotion to permanent, removal and owner
reload without the entry returning. Wire capture confirmed the native counted
word array and one-byte metadata. Native Friends-window rows were read without
modifying game memory and checked against screenshots, packet fields and SQL.
The browser wrapper automatically reloads after game exit, so ordinary timed
logout produces an offline update followed by online when that new session
connects. Stable logout testing closes that client's tab during its countdown.
Both saved lists also restored after a real server restart. An administrative
teleport exercised native world reconnection on the final build: the friend
stayed online, with no offline packet during the round trip. Artifacts are
retained in local/buddy-smoke/.
The native reference and Friends controls are also verified with two hardware
WASM clients. Alt+left-click or G creates a reference after the original
player information reply; picking up its INFO icon and
placing it in Friends adds a permanent entry. A repeated drop leaves one row,
self-add is rejected and NPC reference creation is suppressed. Hold the right
button over a friend, move onto the radial Accept or Remove icon, then release.
Short clicks do not exercise that gesture. Accept sends type 40 with blob 1;
Remove sends type 41. Headers and cancelled menus do not change the list.
Evidence is retained in local/reference-smoke/ and local/buddy-ui-research/.
The reference description's scalar stats and Knowledge-reference persistence
remain explicit TODOs; these limitations do not affect the saved friend entry.