aorecomp

Anarchy Online classic in the browser

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


docs/combat-facing.md (7635B)


Combat auto-turning and movement publication

The facing mismatch recorded in the earned outdoor fight now has a small controlled reproduction. Native combat turns both visible copies of the owner; the authoritative heading remains unchanged until ordinary movement input. The original turn is actor simulation without an emitted movement request in this scenario. A client-side forced movement send would change that contract. Authoritative combat-turn simulation and the original server's publication policy remain unresolved; this milestone does not fix the server heading.

Original turning path

The original 14.9.1 kkr.dll SHA256 is a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0. Fresh REA queries recover the following bounded chain:

Complete original pseudocode and vtable bytes are in local/combat-facing-research/native-evidence.json, with the closed analysis snapshot beside it. The accepted turning update is retained under batch evidence ev_d53be616a7268fc4abde5182fad6d63e85dd86cbdc66367140843a98878b4530. The selected generated body is client/game/kkr.dll/lifted-0039.c:sub_36087340; the original artifact is the authority for the recovered contract. Two other selected generated entries had no Ghidra procedure; neither is used to establish this chain.

Focused native regression

TestBrowserCombatTurnPublication uses two isolated WASM clients, a stationary owner facing north and an original level-one Leet three metres south. The fixture holds the server attack scheduler: no hits, rewards, skills or supplies are earned or needed. Real Tab and Q input starts combat. Both native owner copies turn approximately 180 degrees, while the live server retains [0,0,0,1]. Real Q stops combat; both copies keep their turned heading. The only owner world requests between start and subsequent manual input are Attack and StopFight. There is no movement request, delayed pose publication, or unnoticed manual turn in that interval.

A real A-key turn then sends the original 46-byte movement requests, carrying the retained facing into the existing movement decoder. Both native views and the server agree again; target HP stays 100 throughout. The fixture's native ground settling moves Y from 16.5 to 16.41; manual input also publishes that settled position. This is recorded separately from the orientation mismatch.

The maintained regression protects original native turning/publication and ordinary-input reconciliation. It records server heading diagnostically, and does not require future server combat simulation to retain the stale heading. Original eligibility gates, moving-target retiming, interruption, casting and the original server's authoritative turn/replication policy still need evidence before implementing a general server turn or changing the client.

Physical setter and remaining gates

A further original-binary check establishes that QQR Vehicle_t::SetRelRot at10010f80 refreshes body-forward and redirects existing longitudinal velocity using its previous magnitude and direction. It also notifies listeners. The turning setter therefore has physical effects; it is not a render-only change. The original QQR hash is c011e411b9cecfbde03c4b37fc988540a1246fafc9921c7cab7cb9ef2bb8d913; source-bound evidence is ev_7d430b3662fc1507b7afa178f8021d5fef3c7c6f41f720faa5f0ae16828880f7.

Original KKR10071430 delegates the first unresolved fight gate to vehicle vtable slot+0x8c, confirmed by ev_3106147b9954bc8d1e1c78750dcd438fa440234d829929ead6d8b108bf21d923. This does not identify the concrete player override or establish when moving players may auto-turn. The generic DummyVehicle construction/table does not resolve those player-specific calls. Retained gate-*-evidence*.json and matching snapshots under local/combat-facing-research/ bound this pass. The default player-vehicle gates are now recovered below. Other status helpers and original server replication remain gaps; no forced client packet or guessed authoritative turn was added.

Default player-vehicle movement gates

Original KKR RTTI binds primary vtable10170fe8 to PlayerVehicle_t through CompleteObjectLocator1017b310 and type descriptor101c1a18. Constructor1004b8a0 installs that table. Its slot+0x8c is10049150; the wrapper gets the active CharMovementStatus_t at vehicle+0x158, invokes its slot+0x1c and normalizes the result to boolean. Ghidra does not identify10049150 as a procedure; retained original bytes, the table and the recognized getter establish this small bridge. The source-bound records are in local/combat-facing-research/gate-followup-evidence.json.

CharVehicle constructor100476e0 creates the default status through100445d0, whose vtable10170bdc selects100497a0 for that predicate. The four tests are status DWORDs at+8 ==3, +0x10 ==3, +0x20 ==5 or+4 ==7. These map to the existing server playerMovement.blocksSit component checks1/3/7/0. They describe active forward/lateral/vertical controls or flying mode, not a generic nonzero-velocity test. Fight update skips its turn request when the predicate is true.

Slot+0x90 is10049170: vehicle byte+0x144 must be nonzero and the status's vertical DWORD at+0x20 must equal5. That condition is already covered by the first gate for the default status. This does not establish every alternate status helper. Key records are ev_801b411aac82a820a679568498b0d2ebcd514e456088ca731b235c5843391dce (constructor), ev_e343e46043884c6d256a9760d85f2d5ec89e66ce7fa3468b5b86dd0990bf88b6 (slot), ev_d37c4fd499a21252825890ddc76c32a58eb272f1ae5a517b6cd900847ebae7ad (wrapper bytes), and ev_a48171b085d96a2b6711e8158bf09eea1f5c25c5e019b7506ae43cf94d4b585b (status predicate).

The extended native regression preserves the stationary publication check, then uses ordinary A input to align north. Real W and Q input moves both replicas over four metres while they retain that heading. After the observed action2 forward-stop request, both auto-turn without another movement request. Target HP stays100, and real Q stops the held encounter. The accepted23.60-second run is local/combat-facing-research/20261104-092801/; its independent audit is in local/combat-facing-research/gate-followup/. This is controlled geometry and input, without attacks, rewards, level earning or farming. Authoritative turn phase, moving-target retiming, interruption/casting and original server replication remain open; this resolves a prerequisite rather than fixing the reported server heading.