Skip to content

Latest commit

Β 

History

History
106 lines (93 loc) Β· 8.73 KB

File metadata and controls

106 lines (93 loc) Β· 8.73 KB

Wire-protocol reference

Generated by scripts/gen_packet_index.sh from src/Modules/Packets.bb, src/Modules/ServerNet.bb, and src/Modules/ClientNet.bb. Do not edit this file by hand β€” rerun the generator after touching any of those files.

This is the index of the 56 packet types the engine exchanges between server and client. Per-packet detail pages (when they exist) cover sub-codes, field layouts, and validation requirements. For the wire-encoding primitives and handler conventions, see:

  • encoding.md β€” RCE_StrFromInt$ / RCE_IntFromStr / ClampWorldCoord# / length-prefixed strings.
  • handler-conventions.md β€” soft-fail discipline, bounds-then-deref, iterator-during-iteration, handle-Null discipline.

Direction legend

Code Meaning
C→S Client to server. Untrusted input; every handler must apply soft-fail and bounds-check disciplines.
S→C Server to client. Trusted source; client handlers are reliability/latency-tolerance focused.
Both Both directions implement a handler. Usually different sub-codes per side.
Unused Constant declared but no live handler in either dispatch table. Candidates for removal.

Per-packet pages

Per-packet detail pages live under packets/. When a page exists, the "Detail" column links into it; otherwise it shows β€”. Filling out per-packet pages is a per-iteration documentation task β€” see CONTRIBUTING.md.


Catalog

ID Packet Direction Server handler Client handler Detail
1 P_CreateAccount C→S ServerNet.bb:2344 — —
2 P_VerifyAccount C→S ServerNet.bb:2398 — —
3 P_FetchCharacter C→S ServerNet.bb:2590 — —
4 P_CreateCharacter C→S ServerNet.bb:2714 — —
5 P_DeleteCharacter C→S ServerNet.bb:2951 — —
6 P_ChangePassword C→S ServerNet.bb:2533 — —
7 P_FetchActors C→S ServerNet.bb:2236 — —
8 P_FetchItems Unused β€” β€” β€”
9 P_ChangeArea Both ServerNet.bb:734 ClientNet.bb:1633 β€”
10 P_FetchUpdateFiles C→S ServerNet.bb:2221 — —
11 P_NewActor S→C — ClientNet.bb:1592 —
12 P_StartGame C→S ServerNet.bb:2100 — —
13 P_ActorGone S→C — ClientNet.bb:1556 —
14 P_StandardUpdate Both ServerNet.bb:1796 ClientNet.bb:1496 P_StandardUpdate
15 P_InventoryUpdate Both ServerNet.bb:1608 ClientNet.bb:1277 P_InventoryUpdate
16 P_ChatMessage Both ServerNet.bb:186 ClientNet.bb:1219 P_ChatMessage
17 P_WeatherChange S→C — ClientNet.bb:1272 —
18 P_AttackActor Both ServerNet.bb:1582 ClientNet.bb:1115 P_AttackActor
19 P_ActorDead S→C — ClientNet.bb:1071 —
20 P_RightClick C→S ServerNet.bb:1454 — —
21 P_Dialog Both ServerNet.bb:1300 ClientNet.bb:1027 β€”
22 P_StatUpdate S→C — ClientNet.bb:996 P_StatUpdate
23 P_QuestLog S→C — ClientNet.bb:955 —
24 P_GoldChange S→C — ClientNet.bb:947 —
25 P_NameChange S→C — ClientNet.bb:936 —
26 P_KnownSpellUpdate S→C — ClientNet.bb:823 —
27 P_SpellUpdate C→S ServerNet.bb:1130 — P_SpellUpdate
28 P_CreateEmitter S→C — ClientNet.bb:772 —
29 P_Sound S→C — ClientNet.bb:739 —
30 P_AnimateActor S→C — ClientNet.bb:713 —
31 P_ActionBarUpdate C→S ServerNet.bb:1098 — —
32 P_XPUpdate S→C — ClientNet.bb:689 —
33 P_ScreenFlash S→C — ClientNet.bb:679 —
34 P_Music S→C — ClientNet.bb:758 —
35 P_OpenTrading Both ServerNet.bb:823 ClientNet.bb:582 β€”
36 P_ActorEffect S→C — ClientNet.bb:493 —
37 P_Projectile S→C — ClientNet.bb:217 —
38 P_PartyUpdate S→C — ClientNet.bb:483 —
39 P_AppearanceUpdate S→C — ClientNet.bb:268 —
40 P_CloseTrading S→C — ClientNet.bb:573 —
41 P_UpdateTrading Both ServerNet.bb:786 ClientNet.bb:533 β€”
42 P_SelectScenery S→C — ClientNet.bb:255 —
43 P_ItemScript C→S ServerNet.bb:1393 — —
44 P_EatItem C→S ServerNet.bb:1326 — —
45 P_ItemHealth S→C — ClientNet.bb:249 —
46 P_Jump Both ServerNet.bb:1080 ClientNet.bb:241 β€”
47 P_Dismount C→S ServerNet.bb:1781 — —
48 P_FloatingNumber S→C — ClientNet.bb:205 —
49 P_RepositionActor Both ServerNet.bb:727 ClientNet.bb:180 β€”
50 P_Speech S→C — ClientNet.bb:733 —
51 P_ProgressBar Both ServerNet.bb:1289 ClientNet.bb:151 β€”
52 P_BubbleMessage S→C — ClientNet.bb:1209 —
53 P_ScriptInput Both ServerNet.bb:1321 ClientNet.bb:1020 β€”
60 P_KickedPlayer S→C — ClientNet.bb:1780 —
61 P_Examine C→S ServerNet.bb:1517 — —
62 P_Trade C→S ServerNet.bb:1558 — —

See also