aorecomp

Anarchy Online classic in the browser

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


docs/static-information.md (4063B)


Static information objects

Right-clicking About the Guard previously reached the generic terminal refusal. It now displays its original instruction: Hold down Shift and left-click on it. The information object's location and template remain independent of a vending object with the same numeric identity.

Original contracts and placements

tools/data/extract_information.py reads the original 14.9.1 statels, record 1000026, and their complete item records, type1000020. It recovers 791 placements of nine templates: 100280, 100281, 100282 and 100284..100289. These describe the guard, insurance terminal, fighting, entrance, exit, mission terminal, shop, guide and apartments. Every placement has type51005 and the same empty 20-byte placement script. Only template, playfield and position are retained in server/gamedata/information.yaml.

All nine complete descriptors have QL1, flags0x80023203 and Can30=8. Each has exactly one unconditional OnUse StaticText53044 function, header[0,4], target2, one tick, interval0 and argument header9. Its arguments are the instruction above and twenty zero bytes. No item name or per-template message is used to execute the effect. Unsupported sections, companion functions, conditions, timing, targets or arguments refuse the whole contract.

The original index SHA256 is 46e5dc54af9358cc9bff05f4358e86af630e497bc677f361c133c88073b84d71. Fresh complete item decodes match all nine maintained item records, including their payload hashes. Original placement bytes, ordinals and per-resource hashes are retained in local/static-information/placements.json; the complete audit is in source-audit.json.

Use behavior

The existing authenticated, living, ready-user and monotonic-sequence checks precede placement resolution. Use requires the original type, same playfield and five-metre three-dimensional proximity to the information object. Existing vending, bank and surgery-clinic routing is preserved.

The server acknowledges Use and sends text packet0x5f4b442a only to the requester. The original StaticText executor is a no-op at1010def0, as recorded in client effect handlers. Unlike the mission book's native HeadText callback, this effect needs explicit text delivery. No item is allocated or moved, no shop is initialized, and no player state or database row changes. Replayed requests produce no second message.

Focused verification

TestInformationUseShowsAuthoredTextWithoutChangingState fails before the fix. Public-handler tests authorize every original placement, retain owner-only delivery with a nearby observer, audit zero database writes, reject unavailable requests and reject incomplete descriptor contracts. Existing colliding-shop, world-item, clinic, shop-access and insurance checks protect adjacent dispatch. The focused Go run passes 31 roots and 166 results across server and gamedata; the packages finish in 27.665 and 7.701 seconds respectively. The focused race run passes five roots and 38 results in 124.131 seconds. Vet, Node syntax and the combined local/static-information/verification.json source/protocol/state audit pass.

The native TestBrowserShopTypedIdentity uses a controlled fixture in range of both original Omni objects. Real right-click input receives information success and the exact authored text, without a shop or changed inventory, cash or vitals. The saved screenshot visibly shows the instruction. Ordinary turning and a second right-click open the separately typed Startup Shop; cancellation, page replay and a fresh inventory database reader preserve zero items and zero cash. This is a focused fixture, not earned-progression evidence or a three-faction tutorial playthrough. The 17.58-second native run and three clean traces are in local/shop-typed-identity/20261103-123234/.

Other complete world-item effect contracts and the broader Arrival Hall/NPC introduction remain open. This change establishes neither tutorial dialogue coverage nor the original server's general script interpreter.