aorecomp

Anarchy Online classic in the browser

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


docs/research-notes/brawl-research/native/action-availability.md (5611B)


Earlier Brawl action availability

Follow-up scope: identify the original branch producing the exact runtime text Action not available. before any 0x51492120 request. Parent owns the actual browser/server observation under local/brawl-input-smoke/; this file supplies static original KKR evidence only. Original SHA remains a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0. The owned REA session was exported and closed. No production edits or game/browser/server processes were started by this research agent.

Observed exact branch

N3Msg_PerformSpecialAction1002c7d0(Action_e) gets the actor's helper through 10072000 and calls 10057630(action). The helper pointer is actor+0x168.

10057630 scans helper+0x90's linked list, comparing the requested action to node+0x1c and node+0x20. If no entry matches, it emits the exact string Action not available. at 101c24bc and returns false. No skill, implicit-map, capability, target, range or cooldown check occurs in that missing-entry branch. It returns before N3Msg_SecondarySpecialAttack.

If an entry matches, it calls 10057680 on its payload identity. That function finds the same entry by identity through 100575a0. Flag bit1 at payload+0x1c instead emits Action is not available., a different string, at101c24d4. For an actor-owned source identity, skill142/143/144 dispatches the generic secondary-special sender. Other weapon specials dispatch in the different-source branch. This distinction prevents treating a weapon-owned Brawl action as an equivalent registration.

Exact original records:

Observed action producer

10078920(skill,item) inserts into the implicit item map only if its skill key is absent. For the local actor it then calls 10057370(skill, actorIdentity,0). Thus an implicit item inserted under142 constructs an actor-owned Brawl action. The initial weapon-row constructor 1007b9a0 already traced in the main ledger calls this insert for each received skill row. No Brawling-skill threshold is tested in this insertion/registration path.

10057370 checks local actor, existing action key and static icon mapping. It creates an action payload identity (0xdeb0, iconID) with supplied source identity, skill lookup key, primary/secondary command IDs and flag word. It emits a local action-added notification. If a skill lock is already present, it marks the new action locked. This registration is separate from the skill stat's value.

Initializer 10056cf0 supplies static mapping142 -> icon0x14122 and144 -> icon0x14125, but its actual default 10057370 calls create only ordinary actions3,1,11/78,76/77,17/18,19/79,81/82,134. It does not instantiate action142. Having a Brawl icon mapping is therefore not equivalent to an active action.

Original equipped callback 100ad0b0 (queried at contained address100ad390) examines caps and registers Burst148, Fling150, FullAuto167, Aimed151, Sneak146, skill121 and Fast147. It does not register Brawl142 or Dimach144 in that callback. Their flag availability in 100aaf10 is a later sender gate, not this local action-list registration.

The displayed string alone establishes that no command entry matched. The absence of implicit key142 is a concrete explanation supported by these producer paths, but the runtime action-list probe should confirm the missing entry rather than assuming map absence is the only possible cause. Direct calls to the later special sender can bypass the GUI action list; the earlier unarmed bypass in that sender remains correct within its own scope.

This pass does not prove an exhaustive inventory of all possible registration callers, nor canonical server Brawl template selection. It does establish that simply assigning Brawling stat142 or equipping an axe does not invoke the shown Brawl registration path.

Native heap probe layout

helper = *(actor + 0x168)
list = *(helper + 0x90)
sentinel = *(list + 4)
node = *sentinel
while node != sentinel:
    payload = node + 8
    next = *node
Offset from payload Meaning
+0/+4 Action identity, type0xdeb0 and icon resource ID
+8/+c Source identity, actor for implicit142; inventory item for weapon specials
+10 Skill/action lookup key
+14 Primary command, initialized to same key
+18 Secondary command, usually0
+1c Flags; bit1 yields the distinct locked-action message

Use node+0x1c/+0x20 for the primary/secondary command comparison performed by 10057630. Raw player stat142 lives elsewhere and cannot stand in for this list.