aorecomp

Anarchy Online classic in the browser

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


docs/ignore.md (8075B)


Native player ignore

/ignore <name> toggles a local ignore entry. The command is case insensitive; without a name it uses the selected player. Self, invalid selection, unknown names and extra arguments produce native feedback without changing the list. Ordinary names use the existing chat name lookup, C2S21 S and S2C21 IS. The original client has no separate ignore mutation packet in this path.

OOR IgnoreSystem_t stores numeric character IDs, separately from buddies. The browser keeps the native character preference directory in origin-private storage, partitioned by server asset URL and character ID. Native files retain their names; there is no extra server ignore table or browser-specific format.

Native persistence

client/game/oor.dll/lifted-0000.c contains IgnoreCharacter sub_3E001120, UnignoreCharacter sub_3E001310, IsCharacterIgnored sub_3E0013A0, Load sub_3E0013F0 and Save sub_3E001650. New IDs and successful removals save immediately. Duplicate additions and missing removals do not save. Loading does not save, and the destructor only frees state.

Prefs/localtest/Char<id>/IgnoreList.bin contains a big-endian 32-bit count, followed by that many big-endian character IDs. Removing the last entry rewrites the file to four zero bytes. The initial vector reserve of 20 is not a limit. Only identity IDs are compared; command callers impose player/self checks.

Missing files are safe. The original loader does not validate empty or truncated files, so browser initialization must not manufacture an empty file. The native character path links to an existing OPFS directory: native writers can create valid files without the dangling-file-symlink creation failure in WasmFS. Only Char.cfg is seeded, once, to request first-run actions with tips disabled.

Delivery boundary

Native DDR checks sender IDs before displaying ordinary live tells, public groups including Global and Team, and vicinity/whisper/shout/text-emote messages. It also suppresses ignored ordinary tell side effects, including recent-buddy insertion and AFK replies. It does not prevent outgoing chat to that player. System text has no sender ID and is still displayed.

Tell and vicinity metadata bit 0x01 bypasses the ordinary ignore guard. Its authority is unverified. Structured type-2 tells take a separate display path; their intended authority is also unresolved. These exceptions must not be generalized into an administrative privilege without further evidence.

The server's custom login history uses senderless S2C36 system text and therefore bypasses native ignore filtering. History fidelity remains a separate TODO. The inspected native PageUp/PageDown history actions scroll local output only; that bounded finding does not establish every original history feature.

Evidence and verification

Complete original DDR/OOR/BR exports, matching snapshots, native function dependencies and a ledger of 36 validated Evidence citations are retained in docs/research-notes/ignore-research/ignore.md and manifest.json. Key records are OOR Save ev_fd1979ad3c93fbf6c2212d3e9ce34df536675a0b3d186207df22b6b54b86fdbc, DDR command parser ev_fe429984672f71b88db53803eba85385817137f25418ea7c16ce041c00bd3556, group filter ev_f7590d1ab782aa2205a6c4d8d0628112f7bf9d8649415152bc475c7c391cc04d and system-message handler ev_34b3301086e8ebd0ee87588fd0d252cc1a4c3910610b66091264decd04021f24. These are static original-client contracts, not observations of original server execution.

client/tests/browser_storage.c checks initially missing files, native-shaped ignore/reference bytes, reloads, character isolation, removal/truncation, existing config/icon persistence, first-run state and unchanged remote assets. The browser harness reuses the shared HTTPS preview and closes its owned context in finally.

Two GPU WASM clients verified Team, Global, tell, say, whisper, shout and text-emote filtering. Each blocked message reached the receiver's chat socket, while its native scrollback stayed exactly unchanged. Toggling Ignore off restored all seven displays and native AFK replies. Invalid self/unknown/extra arguments preserved the file; mixed-case lookup and command tokens worked. Saved eight-byte membership survived page, browser and server restarts; removal wrote the four-byte zero count. Outgoing tells still reached the other player. Screenshots, wire frames, OPFS dumps and assertions are retained in local/ignore-smoke/. Switching characters within one browser profile showed an initially absent second ignore list and empty Knowledge view. Saving its opposite ignore entry left the first character's cleared list and reference/config/icon bytes unchanged. Returning to the first character restored its Knowledge icon; the reference still contained its original Soldier/level-1 description.

These tests also exposed a server parser error: the byte after counted world text is its mode, rather than a terminating NUL. Correct parsing restores whisper/shout/emote without disconnecting; see chat wire layout. Go regressions cover all four mode/subtype pairs in complete and fragmented WebSocket streams, authenticated sender identity, validated client metadata, malformed payloads, emote distance and durable history. Live reference and voice records preserve the same native Ignore boundary; see chat metadata. The nametag cache follows the separate original refresh path described below. The full Go suite passed in 357 seconds; the changed Go cases passed twice under the race detector in 99 seconds. The other vet analyzers passed with the existing Go toolchain stdversion mismatch disabled. Browser storage passed nine stages, browser controls passed all 73 tests, and publisher tests passed. Profile-worker VM tests supply URL/location and verify worker-relative build and upload URLs; all existing summary, sampling, bounded-upload and pacing assertions pass. Owned characters 55/56, their 56 history copies and two buddy rows were cleaned; all other database rows stayed unchanged, with integrity and foreign keys valid.

Nametag cache

The original DDR indicator constructor at 100624e0 checks Ignore membership and paints GUI texture 263 into its sprite. The resulting image is cached. The /ignore membership toggle at 100506d0, including its IcqViewModule::IgnoreIcqUserMessage caller at 10055430, does not invalidate nametags. TargetingModule::FrameProcess at 10063a70 retains valid selected and attacking indicators. The two-second vicinity scan in HandleNametags at 10064070 also retains existing images rather than repainting them.

SetTarget at 100635c0 destroys the previous selection indicator and calls the constructor again. Selecting self with F1, then clicking the peer, therefore refreshes Ignore membership without replacing the world actor. A badge that persists immediately after removal agrees with this original cache behavior; the recovered path does not justify adding immediate invalidation.

The matching DDR SHA256, original static evidence IDs, full export and snapshot are retained in docs/research-notes/ignore-badge-followup/README.md, evidence.json and snapshot.json. The constructor is ev_974a7d0dcf34eb3cce5f0e72705fb0ad128c7b1ada860156fb37afaf3c096147; the selection rebuild is ev_2add49520142f452a896d92acaa44a5dbf2ae20375ebe7ba276737f752d506d9. These establish original client code, rather than original server execution.

The controlled two-client WASM probe in local/ignore-badge-followup/20261104-123301/ took 17.99 seconds. Real keyboard input wrote the eight-byte one-member Ignore list, then the four-byte zero count. Manual comparison of the cached and refreshed screenshots confirmed that IGNORED remained after removal and disappeared after F1/peer reselection. Automated checks verified the exact file bytes, selected identity, zero peer actor replacement packets and six error-free traces without dropped events. This fixture tests the refresh boundary; it supplies no earned progression.