aorecomp

Anarchy Online classic in the browser

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


docs/research-notes/ignore-research/ignore.md (12464B)


Original14.9.1 ignore contracts

Read-only native investigation. No server-side ignore wire/state is inferred. All owned REA sessions were exported and closed. Parent owns actual WASM tests and browser storage changes. Complete original DLL exports and matching snapshots are retained here; manifest.json records their hashes and validates every Evidence citation below.

Ownership and persistence

OOR IgnoreSystem_t is a client-local list. Preferences_t::OpenGamePrefs 10001c40 constructs it with GetCharacterPath: the same per-character directory used for References.bin. Constructor10001000 formats Prefs/<login-pref-name>/Char<character-id>/IgnoreList.bin, allocates an integer vector, reserves20 entries and immediately calls Load100013f0. Reserve20 is capacity, not a maximum: IgnoreCharacter grows the vector. Evidence ctor ev_526f5406782bb435285a9fc4ed998d676c4d44dd92f3edad4be271b8fe1ca225, owner/path ev_a2355870dc9bb6114c65ceb2325f1e36f5dee39d7cb484045e47f429d1f1d4bd.

Only identity.id (+4) is stored/compared; identity.type and name are not. IgnoreCharacter10001120 returns AL=false for an existing ID without saving; otherwise it appends and calls Save10001650 immediately. UnignoreCharacter 10001310 removes the first matching ID, compacts the vector and immediately saves; missing IDs return false without saving. IsCharacterIgnored100013a0 is a linear ID lookup. These APIs themselves do not reject0, self or non-player identity types; command callers impose additional checks. Destructor100010e0 only frees memory and clears its singleton; it does not save. Evidence Ignore ev_3dd729b422fe8b40b4f92d752d76358a6edb2e22b53ea7d8479b83e4f6a819b2, Unignore ev_caa8fdb5e5b0b118c8c52c78af0f52c3ca0c42d26dfac7eccce07430f931d3ac, lookup ev_f287dc8515694eeb1a428b4675743d08e16b34eeac8e10597b1835f815b9eded, destructor ev_7f5a95540196aeb5b9b5c2b1b64086ccea3c31a8d68e13c79b1a84de9e988fce. Complete observed Save callers are Ignore and Unignore only: ev_4edf9bd56a2d6918f9687cb045b8609e502be2b8d8c6c3bfdbaa47024e4924fb.

File layout is a four-byte count, then that many four-byte character IDs. There is no version/header/name/type field. OOR writes each with File_t::WriteS32(value,order0); for ordinary nonnegative count/IDs this is MSB-first. File WriteS3210002d20 uses four fputc calls; ReadS3210002660 uses four fgetc calls and reconstructs MSB-first, including negative read values. Do not generalize the writer's negative-value branch into a standard signed serialization contract: it first takes magnitude; valid character IDs/counts here are positive. Save Open2 truncates (wb), writes count/IDs, explicitly closes and destroys File. No temporary rename or write-status check appears. Evidence Save ev_fd1979ad3c93fbf6c2212d3e9ce34df536675a0b3d186207df22b6b54b86fdbc, S32 writer ev_209ccb843dcec8c5475b766addffad69da605753b614e467a967ac0b616bd49e, S32 reader ev_b88d74f23eb8f463005b457cf16a44b179be989a2dd90f443fdb61a9ba26eec0, File Open ev_741913e3c022b33a93d82702860d9dabe74fb3febbcc19487f54ef65ddd87f49.

Load clears vector end to begin first. Missing file exits safely through Exists=false. Existing files are opened1 (rb); count and entries are read without checking sizes or read results. EOF leaves the ReadS32 output unchanged and invokes the native error handler with-6. Thus an existing empty file is not validated as an empty list; absent file and four zero bytes have different contracts. Load appends raw values without deduplication and does not save them. Corrupt/truncated input handling beyond these observed native branches is not claimed safe. Evidence Load ev_d145ca69472b352167d42ad6eba0c5e24e32d9af323713ff8ed6696e60915a79.

Commands and protocol boundary

DDR parser1000d540 matches /ignore using1000ce20: case-insensitive command token, requiring end-of-string or following whitespace. It is a toggle. No arguments uses the selected identity, rejecting no target, type!=50000 and self with local text. One argument queues local operation9 with that name; more than one argument prints Invalid syntax. Numeric arguments can resolve through atoi in1009cf20; ordinary names use its cache, issuing standard C2S21 S on a cache miss. S2C21 IS updates that cache; ID0xffffffff records unknown. Pending operation processing10009670 waits for lookup, prints Unknown user on the cached unknown result, rejects self, then calls local OOR Ignore/Unignore. No dedicated ignore mutation packet is sent by that branch. Evidence parser ev_fe429984672f71b88db53803eba85385817137f25418ea7c16ce041c00bd3556, command token helper ev_de12a3e295e86b693b5fec63cf1ee4438dc8bfe5f5109b466886ff6e9c3d1464, pending processing ev_2257b2e1f61464ab1dc90724b71e50f75c04a0f642511d6953a7ec2ff7f3a00b, lookup ev_ec3eb250d578f4aac4632e25d28cb1eaa39ffba9c4d8ab45bb485dd438a03fcc, network receive dispatch ev_7cbc389c64ec7925fb38fe8fc6d10d58ba346da89444cedd4d6c95b7832f2ddd.

/cc is a different early parser branch, literal100e22cc. Its helper1000cc00 tokenizes the remainder and generally forwards it via1009d2d0 as C2S120 format s (counted string array). The inspected native helper has no ignore/unignore special branch; /cc ignore would use that generic forwarding path. Its original server meaning is unknown. /unignore is absent from the inspected native parser/string inventory; toggling /ignore is the established route. Evidence literal ev_70a78c627ad2c1897da9b1a532627293d5318b839f76506c1448afe5577ca62a, cc helper ev_87d2ac13670ed54a717efb645335afcce86a0c70ccfc263b1d04dddd9959fac7, C2S120 ev_be90e96b5f5dc4ac18813f39417fdb843cd1ccec18c303658077b625775c0693, bounded unignore string search ev_a3ea28c793c3c3936ce6ee5b751d62e4572e97102e919a3521909bc63c4a1ac9.

Other local entry points: Icq IgnoreIcqUserMessage10055430 receives identity, then100506d0 calls IgnoreCharacter and, if it returns false, UnignoreCharacter. This wrapper has no independent self/type guard. Team JoinTeamIgnore1004b150 adds the inviter locally, invokes JoinTeamNo and prints a local notification. Evidence ev_88642ec5db445821bf9b6251e5ccb5b2a8036a669be1004cfe9d152110048e1a, ev_1f9ee7493b424accf99b7f1c59f170f70717b4adf682cab0a99e024bdd142316, ev_c1ce5c2f388f88e6ad0057e7b386a35bbc95c11dcd87498ce8b1b4222c0750f6. This scope does not claim an accessible Ignore radial icon; the previously traced Friends kind6 menu contains Remove and Accept only.

Receive filtering

Network layouts below come from original DDR1009d780. I=BEu32, S=u16 byte length/text, D=u16 byte length/blob, G=five-byte group identity. Main processing10009670 dispatches local message kinds to the listed handlers.

Delivered network type Native handler Ignore behavior
30 ISD private tell 10007af0, kind1 Ordinary data prefix0 checks sender ID; parsed metadata bit0x01 bypasses ignore
57 IISD private group 10008620, kind3 Early unconditional sender-ID ignore guard
65 GISD public/team/org/world group 10008620, kind5 Same early sender-ID guard, before group-specific filtering
34 ISD vicinity 10008d50, kind2 Nonzero sender ID checked; parsed metadata bit0x01 bypasses ignore
35 SSD named vicinity 10008d50, kind2 No numeric sender on wire; identity reconstruction not independently established in this scope
36 S system text 100094d0, kind0 No ignore lookup; formats System and displays

Tell evidence ev_16fcb32fbd4a0d830065ae9c1c1d57f06ae60bf4a2d51f5bcf31ce76b5f865f4, group ev_f7590d1ab782aa2205a6c4d8d0628112f7bf9d8649415152bc475c7c391cc04d, vicinity ev_8ea3a6cc92b39932e975b917cf206bae2190f1a177f9d79f7574fb6705b7826a, system ev_34b3301086e8ebd0ee87588fd0d252cc1a4c3910610b66091264decd04021f24.

Vicinity uses the leading data byte to select ordinary vicinity/whisper1/ shout2/emote3 colors; all share the same ignore decision. This establishes text-emote handling, not suppression of world gesture animations. Metadata parser10008350 initializes its flag output0, recognizes metadata record type2 and reads the next B byte into that output. Tell/vicinity test mask0x01. The Ghidra pseudocode folds one local byte into a parameter high byte; retained lifted source/native range captures document the exact stack write100083fa. The privilege/authority represented by that bit is unknown; do not label it GM or admin without additional evidence. Evidence metadata parser ev_581bcf0bf6503e15f8fe1969ce3f20653429831c94d69ccb7c124a0de882509a.

Tell distinctions: self sender returns immediately. Empty data or an unknown nonzero leading data type returns. Leading type2 takes a separate structured display path before the ordinary ignore guard and writes assist/summon script files; its intended authority is not established. For ordinary type0, an ignored sender without the exception bit skips display, recent-buddy insertion, reply-history insertion, voice effects, AFK response and receive-tell tip. Accepted normal tells add a recent buddy only when sender name length>=4; this is message+0x10 (string length), not a status/level threshold. AFK mode queues the normal private reply text The user is currently AFK. after the same guard. These claims are all in10007af0 above.

Other observed ignore consumers: trade open100485b0 rejects the ignored remote by sending its normal cancel event; team invite10049e30 invokes JoinTeamNo; 1000b9c0 suppresses the chat head-flash; nametag construction100624e0 draws an ignored texture. No native outgoing tell/group send guard was observed in the complete IsCharacterIgnored callers list. This is a client-path statement, not a claim about unknown original server routing policies. Evidence callers ev_d208fa112306e63d1474bcead33261eeb9a61effc0e267acb66099e3e60720e3, trade ev_f911da1c2387a3b3462bcac026a74bb2db0211501b0b61aba473ea5914f37e15, invite ev_97fc8b4a7a2f9ec96821d9c824f655ac4c46bb3ce9f72ebb7c75091f1eaa70bc, head flash ev_e3beeaa43bcc5dc653c363b014de21903e48370d35c3099cdd5fd64859507b86, nametag ev_0cb78ddb32c45f4bb7ee6c9185b843ec233114fc38729eb659ea61c8d7ec42b3.

History boundary and unresolved fidelity work

The current server's custom senderless S2C36 history replay bypasses the original client ignore filter by construction: the proven type36 path has no sender identity or ignore lookup. Resolving this is a separate history-fidelity TODO, not a reason to invent a server ignore protocol/list. Original ChatHistoryPageUp10016750 ->1000b7e0 only scrolls the local output view; PageDown uses the opposite direction. This bounded path has no network call. It does not establish the absence of every possible original history feature. Evidence ev_0f927295baaca302998f6b94c9edd5d7c38cd8c72595580b82f6a2e8577917ea, ev_f2531c49a53d39b9890054f517908a397a218d88aefc8cda825c48394aa785a1.

Fixture source and dependencies

native-functions.c contains complete actual lifted OOR function bodies, extracted from client/game/oor.dll/lifted-0000.c; native-functions.json records per-function hashes, line numbers, direct/import dependencies and guest-stack cleanup including return. No fixture policy reimplementation or production edits were made in this research scope.

All functions are thiscall ECX=this, except the cdecl allocation thunks4650 new and4644 delete. Ignore1120, Unignore1310, IsIgnored13a0 take a pointer to 8-byte identity and clean8 total guest bytes; only AL is the bool result. Load13f0 and Save1650 clean4. Core vector helpers1710/1730/1740/1770/17a0 are included to exercise original append/copy/growth rather than mirroring it. Constructor1000 and destructor10e0 are included for optional highest-level construction/free, requiring CRT sprintf boundary50a4 and the actual guest heap. Constructor stores singleton3e008db8 and formats with literal3e008020 %s\\%s and filename3e0051f0 IgnoreList.bin.

Object: +0 vector pointer, +4 filename. Vector +4 begin,+8 end,+c capacity-end. OOR File IATs:3e005148 ctor(path),5144 Exists,5134 Open(mode),512c ReadS32, 5138 WriteS32,513c Close,5128 dtor. Read/WriteS32 take out-pointer/value plus order0 and clean12 total; ctor/Open clean8, Exists/Close/dtor clean4. Save and Load preserve standard EBX/ESI/EDI/EBP, ESP and the FS exception chain; these should be asserted by a regression fixture as in the earlier native Knowledge fixture. File sinks can assert every argument and exact bytes; missing-file Load should avoid Read calls, and successful Load should not Save.