aorecomp

Anarchy Online classic in the browser

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


commit a1e470df75fa98c69172bb4753be38ec28c60904
parent 4c65869246e53aaee3046667fda7341fb6305c9c
Author: anon <anon@example.com>
Date:   Wed,  4 Nov 2026 12:27:58 +0000

Record original liquid damage resources and timing boundary

Diffstat:
MTODO.md | 8++++++--
Adocs/environmental-damage.md | 62++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 68 insertions(+), 2 deletions(-)

diff --git a/TODO.md b/TODO.md @@ -3091,14 +3091,18 @@ disconnect retention and succession policy still need period corroboration. It models withheld mode publication, not natural shoreline travel. Broader swimming remains open above; see [gestures](docs/gestures.md). - [ ] [P2] Apply authoritative environmental damage from original hazard volumes. - Recover the volume kinds, timing and damage rules, then share normal damage, + Recover complete volume eligibility and authoritative timing, then share normal damage, death and persistence paths. Check entry, continued exposure, exit, overlapping volumes, regeneration, reconnect and restart without missing or duplicate ticks. During ordinary level-2 travel in Entertainment, near [770, 10, 830], the native client repeatedly reported one point of toxic damage while server health stayed at 97 and native health alternated between 96 and 97. Capture and reconcile this prediction/correction behavior; movement through water alone does not verify - hazard damage. Evidence: `local/nt-progression/runtime/pair-city-road-to-market.json` + hazard damage. Original type1000031 records now recover all14 DAMAGE/SEC pairs; + kind8/9 has1/10, while the inspected native prediction uses a shared two-second + path without reading SEC. Resolve that timing difference and stat268 lifecycle + before selecting a server interval; see [original liquid damage](docs/environmental-damage.md). + Runtime evidence: `local/nt-progression/runtime/pair-city-road-to-market.json` and its native screenshot/stream. - [x] Enable one verified whom-pah route. Check: its trigger reaches the intended destination and cannot immediately bounce the player back unintentionally. diff --git a/docs/environmental-damage.md b/docs/environmental-damage.md @@ -0,0 +1,62 @@ +# Original liquid damage data and remaining timing question + +The original 14.9.1 ResourceDatabase contains fourteen type1000031 resources, +identities0..13. Each payload is exactly two little-endian signed integers. +KKR's LiquidDamage reader stores them at object+0x18 and+0x1c; its database +metadata names the fields `DAMAGE` and `SEC`, in that order. + +| Resource identities | DAMAGE | SEC | +| --- | --- | --- | +| 0, 1, 4, 5, 10, 11 | 0 | 1 | +| 2, 3 | 25 | 1 | +| 6 | 3 | 3 | +| 7 | 4 | 3 | +| 8, 9 | 1 | 10 | +| 12, 13 | 20 | 2 | + +The original initializer attempts all fourteen resources. Lookup100e5040 +returns the first field for an admitted index, otherwise zero. Existing water +geometry normalizes odd collision kinds to the preceding even kind. Keep the +distinct authored entries: their existence does not establish that every raw +kind reaches this collision path or that the differently valued6/7 entries are +interchangeable. + +## Native prediction + +The complete original SimpleChar update1006ea50 subtracts the looked-up damage +under GameTime flag+0x1d, the shared two-second prediction path described in +[combat regeneration](combat-regeneration.md). It requires positive vehicle +liquid height at+0x110, vehicle liquid kind at+0x114 equal to actor stat268, +a non-null damage lookup, and positive actor health mirror+0x1b0. The shown +subtraction reads stat27 and writes stat27. A local actor then reports combat +text kind43, formatted as toxic-substance damage by1001d0b0. The inspected +prediction block does not read the resource's `SEC` field. + +This explains a source for the known native one-point toxic-water message, +but leaves a material timing question. The resource says `DAMAGE=1, SEC=10` +for kind8/9 while the native prediction block uses the shared two-second path. +Recover original authoritative timing and the lifecycle of stat268 before +choosing an interval or treating client prediction as an original-server rule. +Entry/exit, overlapping volumes, regeneration, death, persistence and observer +delivery remain implementation work in TODO. The current server still does not +apply environmental damage. + +## Evidence and scope + +The inspected original `anarchy-vanilla-14.9.1/kkr.dll` has SHA256 +`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`. +Static original-binary evidence, full function bodies and payload hashes are +retained under `local/environmental-damage/`. The resource extraction reparses +the original ResourceDatabase index and asserts every payload's eight-byte +length; it does not execute the client or establish server timing. + +| Original entry | Evidence | +| --- | --- | +| 100ef9e0: resource identities, allocation and initialization | `ev_e7aef0e46bd749e8baf507c183df6e05b4513eddc107d2b8b238bcefd625b954` | +| 100e4f70: type1000031 binary-stream lookup | `ev_1275f9b9fe887b991a6a6dfb6de28d2e997bd99c8fd16ab969789ca52f344dc4` | +| 100e4fd0: payload field order | `ev_51a289cc066a887f271e6e3c4727a85c55f361b4ce7836487c15fc74d14bc19f` | +| 100e4d80: DAMAGE/SEC field metadata | `ev_c9f8ffe252ec3fc3256e8d1f6552829fc45982dc0fba73c9324124db756a074d` | +| 102e2360: exact field-name bytes | `ev_e2c404da25177de9b3494bebadcbff81152347c2462f8ff550741023cb8a8dc2` | +| 100e5040: damage lookup and bounds | `ev_0c16e962fb0ae37e49b8d3d75aaf567c29dd34853c2de093274df26f2f86a09b` | +| 1006ea50: liquid prediction conditions/subtraction | `ev_d527af19442c7ec7970d7058e7d6ef899933107f3e18bd5a18bb068767271683` | +| 1001d0b0: toxic feedback kind43 | `ev_87bcc364c70cc7de2195bfa7a3eab2be0e87f0c503f4c57f8ae6d875a108e11d` |