aorecomp

Anarchy Online classic in the browser

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


commit fba855beec2d057e6eb7b0416d4736ef4ece3a18
parent 71df73ea41e19b904bbd582d8f25e0eaba752648
Author: anon <anon@example.com>
Date:   Thu, 22 Oct 2026 11:14:08 +0000

Verify native level-up and cumulative XP presentation

Diffstat:
Mdocs/character-progression.md | 100++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------
1 file changed, 92 insertions(+), 8 deletions(-)

diff --git a/docs/character-progression.md b/docs/character-progression.md @@ -23,12 +23,12 @@ The relevant native stat IDs are: | ID | Native name | Meaning established here | | --- | --- | --- | -| 52 | XP | Current XP total supplied by the server | +| 52 | XP | Cumulative XP total supplied by the server | | 53 | IP | Available improvement points | | 54 | Level | Character level | -| 57 | LastXP | Separate value supplied by the level-up handler | +| 57 | LastXP | Lower cumulative boundary for the current level | | 275 | XPKillRange | Separate value supplied by the level-up handler | -| 350 | NextXP | Denominator displayed by the native EXP bar | +| 350 | NextXP | Upper cumulative boundary for the current level | `FullCharacter` already supports stat-list entries, so initial XP belongs in the character initialization as well as later absolute updates. The current @@ -53,9 +53,18 @@ updates used for this research do not persist through reconnect. For the local character it refreshes the XP/IP state, displays the new level and invokes the native level effect. Its effect reference at object offset 0x40 is initialized by `sub_3607FD90`; it is not a ninth wire integer. -The handler alone does not establish the message key, level threshold table, -resource refill policy, XP cap, or original reward calculation. Those require -further evidence before implementation. +Registration `0x1000dd80` binds the exact class name `NewLevelIIR_t` to factory +`0x1000dd00`. Constructor `0x1007fd90` installs vtable `0x101717f8`, whose reader +and activation are `0x1007fe30` and `0x1007ff00`. The class-name XOR gives key +`0x7f405a16`; the replay below verifies activation in the shipped WASM client. +The original target has SHA-256 +`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`. + +The constructor resolves `SM_Sandy_Game_Level_Complete` into its effect field. +The activation also starts animation layer 6. Helper `0x100744c0` refreshes the +local XP/IP cache and open Skills view; it does not supply new health or nano +maxima. The handler alone does not establish resource refill policy, XP cap, +kill eligibility or original creature rewards. ## Controlled WASM verification @@ -81,6 +90,54 @@ retained under `local/progression-smoke/`. This checks native packet activation, text, floating feedback and bar state. It does not prove a combat award, eligibility policy, durable XP, or a level transition. +## Level-up replay and cumulative XP + +A separate isolated server replayed the recovered key against the normal WASM +client. These are controlled packet inputs, not a creature reward or a durable +production level transition: + +1. Set LastXP 0, NextXP 1450, IP 0 and XP 1400 through absolute stat updates. + Native Stats displayed level 1 and EXP 1400/1450. +2. Send NewLevel with eight integers + `[2, 4000, 1450, 1450, 4050, 0, 0, 50]`. + Native Stats changed to level 2 and EXP 0/2600, and the Skills view showed + 4000 unspent IP. Chat displayed the 50 XP award and new level without a + separate server-generated chat message. +3. Set absolute XP to 1500. EXP became 50/2600, with one 50 XP notification. +4. Repeat the NewLevel packet, then repeat it again with no intervening stat + change. The native client repeated its XP-gain and new-level feedback; + absolute IP stayed 4000. NewLevel is not idempotent presentation, so the + authoritative level transition must emit it only once. + +This establishes the native display as `XP - LastXP` over `NextXP - LastXP`. +The next level's per-level requirement is not itself the value for stat 350: +for level 2, LastXP 1450 plus a 2600 requirement gives NextXP 4050. + +The initializer had explicitly supplied maximum HP 37 and maximum nano 35. +Those maxima stayed 37/35 after NewLevel changed Level to 2. A production +transition must therefore coordinate its new derived maxima and resource +values with the level packet rather than expecting the packet to replace the +initialized maxima. This replay does not establish the original server's +healing/refill rule. Native nano prediction continued independently. + +Page reconnect restored the production profile's level 1 and EXP 0/0. The +native Skills view showed 1500 IP when no IP stat was initialized, rather than +retaining the replayed 4000. That is an observed client fallback, not durable +server bookkeeping. This was deliberately a wire replay; it does not claim persistence or +complete the progression TODO checkboxes. There were no page errors or +unimplemented-adapter failures. Evidence, screenshots, packet logs and the +fixture are under `local/level-up-smoke/`. The native session was closed before +WASM testing, and test-owned browsers and the temporary server were closed +when the replay finished. + +Fresh evidence is in `local/reports/level-up-1491-evidence.json`: + +- Registration: `ev_a426ae39e15bb8194a5eb27d8031eac8f199e6cba3fb0e90516d3d49aa83bace`. +- Constructor/effect: `ev_a131d09b82cfce916c98ff48adf632c95292c8cf59c3a615f9ab0e549be4f013`. +- Eight-integer reader: `ev_9fc576814fa3c0cb841a8ebb0a8414693cd973c55e619cfe31c897f4d1e37a07`. +- Activation: `ev_9d17a646c8ff9ae10b437fca5f6c7c7b2400e084d3bf6a7e7bf526871ef755cb`. +- XP/IP cache refresh: `ev_fb961fabd0ac720cb05cacfcc8df24c106c2e0a442d4526eb50ed77aa4ebf178`. + ## Historical rules and remaining implementation The shipped `cd_image/text/help/combat.txt` says combat awards XP toward the @@ -90,8 +147,35 @@ They do not specify a creature reward or the full level-threshold table. The local wiki scrape has no Experience or Level Parameters page. Its Leets page gives weapon leads but no XP reward; see [NPC balance evidence](combat-npc-balance.md). -The later CellAO `XPTable.TableRKXP` starts with 1450 and 2600 XP requirements, -but a later emulator table is insufficient to establish a 14.9.1 rule. +The later CellAO `XPTable.TableRKXP` starts with 1450 and 2600 XP requirements. +Independent period sources now corroborate those first thresholds: + +- [Experience Level List, post 4, September 28, 2002](https://forums-archive.anarchy-online.com/showthread.php?54852-Experience-Level-List=) + is a player compilation from screenshots, last edited October 6. It explicitly + describes XP needed from the listed current level to the next: level 1 needs + 1450, level 2 needs 2600, level 3 needs 3100, and level 4 needs 4000. + This supports the first transition independently of the emulator. The full + partial table still needs checking; its level-57 entry is a suspicious + discontinuity and must not be silently corrected or treated as authoritative. + The retained evidence is an indexed/cached result because direct retrieval + failed, not a successfully downloaded forum page. +- [Anarchy Online Experience](https://martin.brenner.de/ao/xp.html) agrees for the + first thresholds but labels rows by the level reached, starting at level 2. + Its public response reports Last-Modified November 3, 2001. That is useful + provenance metadata, not an authenticated archival timestamp. HTML and + headers are retained with the replay evidence. + +The source ledger is `local/level-up-smoke/ao-xp-threshold-source.json`. +The first 4000-IP grant is also directly supported by the shipped help cited +above. These sources establish neither a full 200-level threshold table nor +an XP award for the currently profiled level-1 Leet. + +A [September 24, 2001 firsthand report](https://www.quartertothree.com/boards/messages/8/837.shtml#POST17976) +says grey creatures awarded 1 XP. The shipped Target Information Indicator +help describes nominal grey XP in one paragraph and no reward in another. +This leaves the precise 14.9.1 grey policy unresolved; later zero-XP guides +are not sufficient to decide it. Later XP-pool, research and daily-mission +mechanics must not be imported into this pre-Shadowlands target. Next implementation needs an explicit creature reward and eligibility policy, atomic persistence before publishing the award, and a single death transition