aorecomp

Anarchy Online classic in the browser

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


docs/mission-acceptance.md (6085B)


Accepted starter missions

CreateQuest0x291f361b/version2 now accepts the currently offered starter contract. Acceptance commits an immutable contract, its first key28577 and key ownership in one SQLite transaction before sending native success. It grants no completion rewards and does not yet allocate or enter a private interior.

Contract and ownership

The session retains its last successfully generated offer after the generation fee commits. Acceptance must match its seed, difficulty, all six dimensions, originator, booth identity and selection index0. A replaced session cannot use that offer. Regeneration replaces it; an empty generation reply clears it. Database failure preserves it for a retry. Significant admission conditions, including current position, life, readiness, free slots and template Use gates, are checked again before accepting.

The original shipped OnReceiveMission.txt says only one training mission is available at a time. The supported starter contract observes that limit. An already accepted mission prevents another generation fee or duplicate key. Ordinary city/team mission capacity remains unimplemented with their content.

The missions table stores scalar contract values, offer parameters, owner, exterior entrance/position and expiry. Neither acceptance nor reconnect consults the current mission YAML for those values. The durable mission identity uses the newly allocated first key's numeric instance ID in the distinct56003 quest identity namespace. mission_keys binds actual item instances to missions; template28577 alone is not an admission credential. Its first key is original type51053/QL1. Deleting a key removes its binding, without deleting the contract. Native copying now creates a separately bound instance while retaining the original and duplicator; see mission keys. Usable native destination metadata remains open.

The shared inventory transaction persists item allocation, placement, contract and key binding before publishing live state. Ignored inserts are detected with RETURNING. A failed write or commit creates no key or journal and consumes no offer. Output failure after commit retains the accepted state for reconnect. Normal inventory saves and periodic checkpoints leave contracts intact. Player replacement during zoning/control edits preserves the in-memory journal.

Native journal

Original14.9.1 kkr.dll, SHA256 241b2e665dcd127399b7686cddda8a5b0876d9cde9b3af7a73940dd0b86ecaa7, registers QuestFullUpdateIIR through factory0x36011de0/constructor0x360c6ca0. Its native reader0x360c6d00 and writer0x360c6dd0 carry a DWORD version1, DWORD category, quest identity and complete Quest14 record. Evidence IDs are ev_83bcb6dcd109658d780db58dc377b741d06ab63bf5b220620a4ccf6eacb9d564 and ev_011c904a2d9c6efbbc66e5e311c5b3b206767a6b945c6a71d9b1894854d19752. The version constant at0x361c91f0 is1 (ev_56ff7855188a3c4e8bd03224001f72443cae80ed290608d704035f09f6485d73). The message-name hash candidate0x465a4061 is corroborated by actual native delivery, rather than inferred from its name alone.

The native Apply entry0x360c6e30 lacks a Ghidra function boundary. Its decoded instructions and maintained sub_360C6E30 call0x3606bc60 with the parsed quest and category. That consumer distinguishes category2 for created missions from assigned missions, appends assigned identities to the list returned by N3Msg_GetQuestList(1), and reports "You got a new mission." Consumer evidence is ev_c83fcafaffa61147fcee8ef9bd3bcfa716efd76687526fd2deb2bbec974be893; list evidence is ev_7f5db6f6719a005198a0fb2e0344ef16b82d3514a93becd65bf0190e0d6ed8d4. The server uses category1 and includes the owner in Quest14's owners list. Browsing and journal replay share the same serializer, with remaining time derived from the saved expiry. FullCharacter restores inventory before the owner-only journal replay; journals are never broadcast to nearby players. Complete REA provenance is retained in local/mission-acceptance/kkr-evidence.json.

Verification and remaining work

The focused Go run passed22 roots/149 test results. Coverage includes native socket generation/acceptance, all altered offer fields, stale sessions, admission changes, repeated/concurrent acceptance, owner-only cold replay and failure injection at item, placement, contract and key-binding writes. Each write has abort, ignored-insert and deferred-commit cases. Lost output after commit retains exactly one contract/key. Profile edits, inventory saving, checkpoints and changed YAML do not replace the accepted values. The signed-parameter replay test also retains mixed negative/positive dimensions at difficulty11. Concurrent generation and acceptance passed the race detector; the full gamedata package passed.

Headed Chromium on the GPU accepted the actual backyard3000 offer and displayed the native success text, Assumed Missions icon, description and key inventory/info. A cold server restart and client reconnect without fixture edits retained the journal, same key instance/binding, level1, XP0 and four credits. Uploading coordinates from the cold journal's native radial menu placed the white map marker at the saved exterior entrance. The fixture started with five controlled credits; this is not an earned-income proof. No adapter crash or page exception occurred. Startup still logged unattributed HTTP404s. Captures, screenshots and exact accounting are retained in local/mission-acceptance/.

Private destination assignment and entry remain the next integration. The saved exterior entrance is not a private world instance. Do not admit players until visibility, simulation and interaction consumers have explicit instance scope. Saved deadlines now drive retirement, including native abandonment and bound-key cleanup. Key duplication/metadata and objective completion/rewards remain open in feature backlog. The fixed narrative, reward values and48-hour duration remain provisional as documented in mission offers.