aorecomp

Anarchy Online classic in the browser

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


docs/nano-skill-buffs.md (19641B)


Ordinary skill buffs in 14.9.1

The shared timed-buff path admits original positive skill and critical programs, covering 60 of the 69 trained skills. It retains every effect in each program, including mixed contracts such as Offensive Steamroller 29240: Melee, Ranged, Physical and Nano Initiative +133, and Fling Shot +30. This brings supported buffs to 279 programs and 278 crystal uploaders, including the self-only and Skill contracts described below.

The exact new program, crystal, authored quality, profession, modifiers, NCU, duration and native cost expectations are in ordinary-skill-nanos.json. The fixture is derived independently from fresh original resource records, not from the admission predicate. Shijima's Cloak 31405 has no original ordinary LearnNano uploader in the decoded catalog. Its cast test explicitly seeds a learned entry; the server does not invent an acquisition path.

Admission and defaults

The ordinary contract requires unconditional, one-shot Modify53045 or Skill53012 effects, with complete known metadata and authored requirements. All functions must qualify. Positive skill modifiers use IDs100..168 through the existing signed effective-skill calculator; CriticalIncrease379 uses the shared weapon critical selector. Negative skills, damage functions, conditional effects and unverified program flags remain outside this class. In particular, mixed unsupported programs do not grant their otherwise supported skill subset.

The original NanoItem constructor kkr.dll:10098600 installs defaults before the loader overlays authored stat pairs. The shared nano getter now preserves this distinction: an omitted stat gets its native default; explicit zero does not get replaced.

Stat Omitted value
Duration 8 1,000 centiseconds
NCU 54 1
Strain 75 Program ID
Recharge 210 200 centiseconds
Range 287 20 metres
Attack 294 200 centiseconds
Cost 407 1, before the existing native cost calculation

Bio Met Proficiency 26364 omits attack time; Parry Expertise 27121 omits recharge. Instinctive Control 28669, Limbo Mastery 28894, Cut Red Tape 30064 and Shijima's Cloak 31405 omit strain. These six complete programs require the constructor defaults. An audit found no otherwise qualifying positive skill program rejected solely for explicit zero attack/recharge, so admission has not been broadened to a new timing contract.

Crystal flags also include the exact original startup variant 0x08400203, already used by the explicitly supported Meta-Physicist crystal. This admits 43379 and 43382 without accepting arbitrary flag combinations. Bulk TESTITEM uploads and Nanogiver remain rejected.

Consumers and persistence

Effective skills include the contribution once without changing trained values. Existing requirement, weapon, armor, initiative, recovery and price calculators read these effective values. This does not establish that every game action using every skill has been implemented.

Held movement uses RunSpeed without ability trickle, as the original client does. Applying, replacing, cancelling or expiring a RunSpeed effect anchors the previous movement segment before the new speed takes effect. Significant buff changes and crystal consumption commit immediately; ordinary movement continues to use periodic checkpoints.

The existing NCU/strain, death-removal and offline-duration policies still apply. Historical exceptions, broader targeting rules and the open combat HP delivery problem remain tracked in feature backlog.

Source evidence

Original kkr.dll SHA-256: a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0. The independent audit and fresh 778-record comparison are retained under local/skill-nano-research/defaults-audit/. Constructor, authored overlay, virtual getter/setter and cast-controller evidence is retained under local/skill-nano-research/zero-timing/.

REA evidence IDs:

Verification

Public upload/cast/cancel tests cover all 213 skill programs, exact complete modifiers across every trained skill, costs, NCU, duration and cold recovery. Separate tests isolate all seven omitted defaults, skill-buff requirements and RunSpeed application/expiry anchoring. Additional public-operation tests cover buff-assisted Briefcase equipping, cancellation with unchanged item identity, armor effectiveness and health clamping. Focused nano, signed-stat and armor regressions passed under the race detector in 205.419 seconds; go vet passed for all tracked Go packages.

The complete tracked Go suite (go test ./server/... ./tools/data/export_gamedata -count=1 -timeout=30m) passed: server 629.645 seconds, game data 7.548 seconds.

Two real WASM clients ran in headed Chromium with the GPU OpenGL renderer against the sole shared HTTPS preview. Ordinary native crystal use learned seven general skill programs, Computer Literacy Expertise, First Aid Expertise and Offensive Steamroller. The Meta-Physicist-only Symbol Helper and Mocham crystal attempts retained their crystals for Soldier characters.

Native checks verified:

High skills, the QL300 NCU ear, Pre-Universe Storage Device, armor and pistol placement were explicit GM fixtures. Crystal upload, program selection, casting, cancellation and movement used the native UI. These representative native checks do not claim manual execution of all 213 programs. Screenshots, read-only native state, GPU identity, wire captures, database snapshots and verification scripts are retained under local/skill-nano-smoke/.

Both owned browser contexts were closed. Cleanup removed the two test characters and eight remaining fixture items; foreign-key and integrity checks passed, and hashes confirmed every unrelated database row was unchanged. The sole shared HTTPS preview was restarted with Visitor8 retained.

Additional original metadata variants

The ordinary path also admits three complete programs without adding any program-ID branches. Program Can 8 is accepted alongside 0, and the exact program flag value 0x10002 is accepted alongside the two earlier values. Other Can/flag values retain their existing rejection boundary.

Program Crystal / QL Complete modifiers NCU Duration Requirements
Mocham's Gift: MatMet 29302 29399 / 162 Matter Metamorphosis 127 +140 50 60 min PM/SI >751, visual MP12
PsyMod Mastery 29312 29409 / 47 Psychological Modification 129 +50 15 45 min PM/SI >225, visual MP12
Minor Suppressor 43370 43380 / 1 SMG 114 +8, Burst 148 +7 1 30 min PM >9, SI >8, visual Fixer4

The two MP programs author Can 8. Minor Suppressor authors Flags 0x10002. The original cast admission 100646a0, action-3 requirement lookup 1008fc40 -> 1008f990, selector-derived self-target metadata 100b3e70, friendly gate 10066310, nonoverwrite gate 10066f40, buff delivery 10066010 and cancellation sender 100232a0 establish the same reviewed ordinary path for these exact variants. This does not assign an unverified symbolic meaning to bit 2 or establish arbitrary Can/flag combinations.

All three programs, their three ordinary uploaders and two bulk uploaders were freshly parsed from the original ResourceDatabase. The full expanded catalog audit re-verifies 781 original records; that milestone admitted 242 programs and 241 crystals. Bulk uploads remain rejected. The matching original KKR snapshot was reused; the owned session was exported and closed.

Source records and native evidence are retained under local/nano-contract-research/. Exact new native evidence IDs: ev_f07d8782989fcd6d0617b5f18e819e5ca4e9f1af72fb843d687d2cb59a4d66d9, ev_9f240eb448be4a3c178fdae1a4f2c32ce0233c0174d8796e97b79f5186f60a5a, and ev_b5a9294e92f4b7fb4f696143dd17effb84d69c0cef84fa6db1b8f29afacc23d8.

The complete program fixtures cover upload, cast, complete modifiers, NCU, duration, cost, cold recovery and cancellation for all three. Separate cases reject equality at either required skill and the wrong profession in both upload and casting. Negative metadata cases reject Can 4/16 and hostile, nonoverwrite or additional unaudited flag variants without charging nano.

Two headed GPU WASM clients verified all three additions through ordinary crystal use and program selection. Mocham's Gift: MatMet applied +140/50 NCU; PsyMod Mastery applied +50/15 NCU. Insufficient remaining NCU rejected the second program until the first was cancelled. Minor Suppressor rejected at effective PM9, then uploaded at PM10/SI9 and applied both SMG +8 and Burst +7 for 1 NCU. The Fixer also cast it on the MP, retaining a separate complete contribution on each recipient.

A server restart restored the Can8 mastery and both Minor Suppressor recipients, with unchanged trained values, learned program sets and NCU. Native right-click cancellation removed every contribution and freed all used NCU. Wire assertions verify crystal qualities 162/47/1 and the friendly cast. Both runs had no client errors. These profiles used explicit GM skills, professions and MP NCU gear; ordinary acquisition of that fixture gear was not tested here. Evidence is in local/nano-contract-smoke/.

The focused metadata and rejection tests passed under the race detector in 111.080 seconds, and go vet passed. Both owned browser contexts were closed; cleanup removed the two test players and two remaining fixture items. Database integrity and foreign keys passed, and unrelated-row hashes were unchanged. Visitor8 was retained and the sole shared HTTPS preview was restarted.

Self-only and critical contracts

The next complete-contract audit adds 37 programs and 37 single-crystal uploaders, bringing the catalog to 279 programs and 278 crystals. Exact program/crystal IDs, authored quality, profession, modifiers, NCU, duration, cost and every skill/level threshold are retained in self-and-critical-nanos.json. Fresh parsing and payload checks cover 619 original records; every program and uploader requirement stream in the delta was inspected.

Program Complete critical contract Target
Take the Shot32065 Aimed Shot151 +130, CriticalIncrease379 +4 Friendly player
Subconscious Guidance95526 CriticalIncrease +8 Self
Universal Vulnerability Compendium95527 CriticalIncrease +24 Self
Last Minute Adjustments95528 CriticalIncrease +19 Self
Vulnerability Seeker95529 CriticalIncrease +13 Self
Mark of Peril160574 CriticalIncrease +7 Friendly player
Mark of Danger160575 CriticalIncrease +4 Friendly player
Mark of Risk160576 CriticalIncrease +2 Friendly player

The remaining 29 programs contain only positive Modify53045 skill effects whose consumers already exist: Enfraam's Toolkit, 15 Enforcer weapon buffs and 13 Soldier weapon buffs. Swiss Cheese203127 retains both Shotgun115 +90 and Fling Shot150 +2. No spell-ID branches, new damage/transfer/proc behavior or partial-program admission are needed.

Original kkr.dll:100b3e70 derives self-only metadata when every action-0 effect selector is1 or2. 100646a0 then replaces the supplied target identity with the caster before target admission. The server follows this rule for the whole supported contract, including requests naming zero, an unknown actor, a creature or another player. A contract mixing self and selected-target selectors remains rejected. The exact flag value0x14000 is admitted for the four original MA programs; flag0x4000 alone does not define self-only behavior. Existing recipient, range, NCU and action gates still apply after redirection.

The native caller 10022180 serializes the original supplied identity even after admission normalizes its local copy. Thus the server must replace both identity words before checking the recipient type: the real client's unselected Action19 carries [0,0], while an actor-ID-only test may carry [50000,0]. Admission assembly at 1006482b..10064836 copies both caster words before cost, requirements and object lookup. Retained evidence is ev_7ac60bd06ac9d13cb35093493166042827fb23300b04dd2723cca9e01905fdab and caller evidence is ev_112140abba9fb4c4639142a60b91104500dd77c6631ad4e5df4c2ee5885f5b84. The bounded audit and complete retained records are in local/self-cast-identity-research/native/. This does not broaden selected-target programs or infer new recipient classes from numeric identity types.

Skill53012 dispatches directly to 100bd600; Modify53045's wrapper 100bd4d0 reaches the same handler. Both use stat key0 and signed amount key39, add through 10074730, and remove through 10074b00, leaving trained values unchanged. The Skill reader/writer 100b9aab/100b8039 additionally serialize opaque key24. All1,387 such effects across297 original programs author zero for this word; admission requires its complete four-byte zero representation. This supports the shared additive consumer without guessing nonzero semantics.

Fresh target evidence is ev_60adda4e07b7bb48955027a52cef65428893299e73d59c9a639c63f7b158e5bb. The common modifier handler evidence is ev_27c953512839b1cff0ac854ff041eb3e0813c2df061a8858060432f10da08405. Original records, the reproducible catalog audit and exported native evidence are retained in local/critical-nano-research/. The owned native session was exported and closed.

Public-operation tests cover every new crystal and program, every authored threshold/profession, exact complete modifiers, costs, NCU, duration, cancellation and database reopen. Separate tests exercise all selector1/2 combinations, reject incomplete Skill contracts without granting Take the Shot's otherwise supported Aimed Shot subset, and retain targeted recipient validation. Controlled rolls cover all eight critical programs in ordinary attacks, Fast Attack and Fling. Expiry/death and failed insertion, COMMIT, cancellation and expiry preserve complete contributions atomically.

Identity regression coverage includes all 33 self-only critical/skill programs and 49 self-only programs from the combat catalog. Seven identity forms cover [0,0], actor type with ID0, unknown actor, creature, another player, explicit self and item type with a colliding player ID. Each commits only to the caster and retains the effect/cost across database reopen. Friendly and hostile casts still reject zero and item identities. All 614 focused tests/subtests passed in86.003 seconds and under the race detector in176.143 seconds; build and vet passed.

Two headed GPU WASM clients verified unselected Elementary Life Booster, Elementary Damage Booster and Lesser Suppressor. Literal Action19 [0,0] requests produced the correct HP7, all-eight damage1 and SMG24/Burst15 effects only on their respective casters. Friendly Augmentation without a selection was rejected by the native client before transmission. Explicit-self Augmentation stacked to damage3; Life with a Leet selected still refreshed only the caster. Reload replayed each contribution once in owner and observer. There were no client/worker errors. Captures and executable assertions are in local/self-cast-identity-smoke/; test fixtures are removed and the single preview remains available on HTTPS8443.

Two headed Chromium clients on the GPU verified original crystal uploads for Subconscious Guidance, UVC, Mark of Risk, Take the Shot and Swiss Cheese. High skills, professions, level 200 and the 52-NCU equipment were explicit GM fixtures; uploads, selection, casts and cancellation used the native UI.

With the other player selected, Guidance applied +8/10 NCU to its caster; UVC replaced it with +24/52 NCU. Native admission rejected the weaker Guidance. Wire captures show that the self-only Guidance, UVC and Swiss Cheese requests still named the selected player; the server redirected admission and effect delivery to the caster. Both clients received and displayed the caster's complete contribution, while the selected player stayed unchanged.

Take the Shot rejected a full recipient without debit, then applied Aimed Shot +130 and critical increase +4 together for 47 NCU on self. A valid friendly cast applied both to the other player. Mark of Risk applied +2/18 NCU to its friendly recipient. Swiss Cheese applied Shotgun +90 and Fling Shot +2 together for 45 NCU to its caster while the Agent remained selected. Native cancellation removed every companion modifier and freed the corresponding NCU in both clients.

Stopping and reopening the same SQLite world, then connecting fresh clients, restored UVC and Take the Shot with unchanged learned sets, trained values, complete contributions and equipment instances. The five original crystal qualities 30/169/57/152/178 were checked on the wire. No adapter or page errors occurred. Screenshots, read-only native samples, ordered packet streams, database snapshots and verification scripts are in local/critical-nano-smoke/. These representative native checks do not claim manual execution of all 37 programs or establish the original critical probability formula.

The focused new nano tests passed under the race detector in 201.867 seconds; final combat consumer tests passed in 19.406 seconds. go vet passed for all tracked Go packages.

Both owned browser contexts were closed after each run. Cleanup removed the two test players and four remaining equipment fixtures. Foreign keys and integrity passed, and hashes confirmed every unrelated row stayed unchanged. Visitor8 was retained and the sole shared HTTPS preview was restarted.

The complete tracked Go suite (go test ./server/... ./tools/data/export_gamedata -count=1 -timeout=30m) passed: server 736.072 seconds, game data 7.665 seconds.