aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


docs/server-action-coverage.md (12915B)


Server action coverage

Target: original 14.9.1. This inventory separates three namespaces: network messages/CharacterAction codes, catalog requirement action IDs, and catalog function events/effect IDs. Equal numbers in different namespaces do not imply the same operation. A function name or a Go reference does not establish a complete gameplay implementation.

Native requests

The retained original kkr.dll export inventory contains 277 N3Msg_ exports at 268 distinct entry points. All have complete maintained C bodies. Shared entry points include original no-op stubs; the prefix does not mean that a method sends traffic. Assist, for example, selects another actor's fighting target locally. Read-only getters, camera controls and client prediction must be separated from authoritative requests.

The maintained data initializers contain 110 exact IIR class-name strings: 88 ending in _t and 22 in _c. The latter include pets, FollowTarget, organization messages and NPC conversations. The earlier 88-class inventory covered only _t; it was not the complete packet-class surface. Name-derived XOR keys remain candidates until checked against registration/serialization or actual traffic. The census does not prove there are no differently named or unnamed protocol classes.

The world dispatcher currently routes 17 message keys, including 15 of those class-derived keys, and 21 CharacterAction codes. Its unknown-message and unknown-action branches return no response. The complete 110-row class/reference matrix, 277 producer bodies/call candidates, source hashes and route inventory are retained in local/server-action-request-audit/. A literal-reference-only row can be an outgoing packet builder or conversion, not an incoming handler. Absence of a literal is not proof that a dynamically selected class is unused.

Direct CharacterAction-constructor calls expose these remaining request gaps. The source locations below use the original kkr base 0x10000000; maintained C uses base 0x36000000. Constructor calls are followed to the send path for the camping request; the other rows still require their complete branch, recipient and response contracts before implementation.

Request Action Original producer Remaining work
Exported Follow method 29 10022240 Establish its actual caller/recipient and response. Ordinary /follow directly sends FollowTarget0x260f3671 instead; see player following.
Hide against opponent 54 10022eb0 Recover concealment/perception contest, eligibility and visibility publication.
Use skill 70 1002c000 Identify each actual skill request and its complete effects, feedback and locks.
Sit on an item 85 1002ba60 Recover seat identity, occupancy, position and stand/removal/disconnect behavior.
Independent item Use branch 57 1002acd0 Identify its exact item/state branch before treating it as ordinary GenericCmd Use.
Reset skill 154 10028730 Recover original IP-reset eligibility, refund/rounding, equipment restrictions and durable counters.
Enter sneak 163 1002ce50 Recover stealth state, movement, contests, observer visibility and cancellation.
Event feedback 165 10028570 Trace actual callers and authority; do not invent a server acknowledgement from the name.
Request checklist 175 1002cee0 Establish its selected item, payload, response and user-visible purpose.

Quest/mission selection and creation, PetCommand, organization messages, grid selection, tower/controller messages and dropped-world-item paths also need producer-to-handler audits. Several are only discovered class/getter candidates at this stage. Separate world/statel resources, chat/organization commands and transitive/virtual senders remain outside this bounded request pass. The overall complete-action-set TODO remains open.

The ordinary player /follow route is now independently captured and traced. FollowTarget installs native PlayerVehicle steering for owners and observers; the engine also sends occasional action20 pose corrections while moving, including following. These leave long intervals requiring server simulation; see player movement. An echo-only prototype left Go's position frozen; a manual cancellation packet finally reported a 12.1-unit change. It is retained as research, with native arrival-force/integration equations. The production handler now couples the native response to transient authoritative arrival motion, mass, cancellation and periodic position checkpoints. Open-ground hardware comparisons verify that the server advances with both clients. Ordinary held movement now shares the authoritative integrator, including separate strafe/turn controls and retained reverse direction. A 35-second moving-target follow remains within 0.11 units horizontally of the two native clients. Complete scene collision/terrain/flight and the distinct exported action29 path remain unchecked tasks; see player following.

Camping cancellation

Original N3Msg_StartCamping at 100278c0 sends CharacterAction 120 with null identity arguments. N3Msg_StopCamping at 10027a00 separately sends 121; its send path does not call the posture or nano-cancellation sender. The native action dispatcher 10057680 has distinct calls to those two methods. The retained CharacterAction receiver also has separate120/121 branches. Their UI behavior is not a reason to leave a server disconnect deadline active after a cancellation request.

Standing (87), abort (108) and StopCamping (121) share deadline cancellation. If a countdown is active, the server sends CharacterAction 122 to that client. Repeated cancellation and cancellation without a countdown clear the deadline without producing another UI notification. Normal nano abort and posture handling still run. The existing 30-second successful logout policy does not establish the historical server's exact eligibility rules or every UI binding.

The original 14.9.1 receiver has a complete UI destruction path. In maintained client/game/kkr.dll/lifted-0033.c, sub_3606FA30 maps action 122 to 0x3607055d, then calls sub_3601DB30. That wrapper sends UI notification 41 through sub_3601D080 and sub_36004C50: AFCM module 22/message 388. In maintained client/game/ddr.dll/lifted-0024.c, sub_2B059F50 registers message 388 to sub_2B05A270 (CancelCampMessage), which destroys the TimerSystem through sub_2B083710 and clears its singleton pointer. Camping constructs the timer with automatic deletion disabled, explaining why it otherwise remains gray after reaching zero. Action 120/121 receiver branches call a return-only stub; an echo of either request does not substitute for 122. The 122 branch's UI notification is unconditional after a local-character control check, so it must be addressed only to the cancelling client, never broadcast to observers.

Complete function bodies, registration/jump-table bytes, import linkage and source hashes are retained in local/camping-ui-research/. The distinct StartLogout/StopLogout subclass readers require an additional identity at object+0x20; the earlier empty StopLogout experiment did not supply it. These classes are not used for this independently traced action 122 response.

Connection-level native-framing regressions reproduce missing 122 for all three cancellation routes, then verify deadline removal, the addressed UI response, repeat/no-countdown suppression and a subsequent ping. They exercise the real world dispatcher after native initialization and readiness.

Native Escape sends 108, not 121, and already cancels the countdown. The hardware WASM smoke distinguishes that working route from the newly handled protocol request. It also captures an uncancelled 120 closing the world connection after 30.004 seconds. The separate ordinary UI binding that emits 121 has not been established; no synthetic native call or packet is substituted for that gap. The earlier gray-bar failure is retained in local/logout-cancel-smoke/. New screenshots and complete traffic are in local/camping-ui-smoke/ and local/camping-ui-observer-smoke/. Escape and standing receive 122, remove the bar and display "Timed logout aborted." without a scene reset. Both connections remain usable beyond the old deadline. A second Escape with no active countdown produces no additional 122. Two simultaneously camping players independently cancel their own bars; the other player's bar keeps counting down until their own cancellation. A subsequent uncancelled countdown closes after 30.004 seconds and the browser reconnects. W while seated produces neither movement nor a cancellation request, so it is not evidence of a separate movement-cancel route. These 14.9.1 results do not establish the 11.0 receiver. The focused Go checks, race checks, vet and runtime verification ledger are retained in local/camping-ui-research/milestone-verification.json.

Catalog requirements and events

The independently checked decoded catalog has 87,611 typed identities: 83,245 items and 4,366 nano programs. All current Go-loaded identities and all action/event/function occurrence counts match the retained original decode. Records120802/120827/203911 retain an undecoded trailing byte; their counts cover only decoded prefixes. This audit does not reparse every original RDB payload or cover separate world/statel/quest resource types.

Requirement action Occurrences Current selection
0 25 No generic selector; complete mission/shop contracts remain open.
3 10944 Use requirements for checked item/nano families.
6 48189 Wear requirements for checked equipment families.
7 2 Equipment removal requirements.
8 6274 Wield/equipment requirements and weapon OE.
111 7 No generic selector; samples include doors, numeric meaning unproven.
136 136 No generic selector; samples include reflection bracers, meaning unproven.

There are 78,778 function sections across 15 event IDs and 223,338 function occurrences across 72 effect IDs. Each effect has occurrence, record, event, target and conditional/repeated counts, complete sample payloads, current consumer references and one or more concrete research groups in local/server-action-catalog-audit/catalog.json. Its compact complete matrix is function-coverage.tsv. The 11 groups cover healing/resources, numeric effects, secondary casts/procs, other controls/dispels, pets/shells, travel/world events, towers/organizations/side changes, presentation/descriptors, manual item use, requirement gates and automatic companion events.

OnUse (0), OnActivate (10) and OnWear (14) have bounded family consumers. There is no generic authoritative dispatcher for events 3/4/5/6/7/15/16/18/20/24/25/26. Existing world routes or ordinary deletion do not establish execution of those catalog events. In particular, OnHit (5) and conditional OnWear effects require their own producer, target, chance, lifecycle and inverse-operation contracts.

Complete families and broad predicates

Current bounded nano validators admit 664 distinct player-castable programs: 470 timed buffs, 61 instant-damage/taunt/child-parent programs, 60 DoTs and 73 controls. One passive initiative child is a separate recipient effect. The generic crystal validator admits 659 records; the two explicit startup uploaders for a heal and a pet only learn their programs, without executing them. Eligibility, resistance, periodic scheduling and offline/death policies retain the limits documented for each family.

The implant, map and resource-kit validators admit 38,808, 55 and 10 records respectively. These are bounded contract checks, not claims that every supported record has been individually tested in the native UI.

The 3,049 stat-equipment and 7,379 weapon admissions are broader predicates. Among them, 170 stat-equipment records have non-OnWear events; 7,059 weapons have other events, mostly native activation descriptors. Those counts alone do not make the other events unsupported gameplay, and a blanket rejection would also discard existing starter weapons. Conversely, 83 admitted weapons have conditional OnWear gameplay modifiers and 70 have conditional OnHit effects; the current equipment sum does not evaluate those function conditions. The 27 wearable portable-container records have conditional presentation, but no conditional gameplay scalar in this audit.

Extending support should follow reusable recipient/effect/event consumers and whole original contracts. An ID appearing in a switch, a client return-only handler or a passing broad predicate is insufficient evidence to admit all uses of that function. The existing full-contract equipment audit and newly specific action/event TODOs remain the implementation work list.