The corpse's LongDesc (its killer name, which "my kills" mode needs) arrives only
after an ID request, and AutoId may not appraise a corpse in time, so this request
has to land. CorpseOpenController recorded the corpse as asked whether or not
Host.RequestId returned true. The engine refuses RequestId during the teleport and
death settle and drops stale queued requests, so a refused or dropped request was
never retried and the claim stayed tentatively lootable until the 12 s timeout.
- A corpse is recorded as asked only when RequestId returned true; a refused one is
asked again, at least 250 ms apart per corpse.
- An accepted request that brought no LongDesc within 3 s is asked once more, once
per 3 s, with no give-up cap. Only the targeted corpse or the open container
re-asks: HasLootWork evaluates every in-range corpse, and the others would send a
stream of requests for corpses the bot is not going for. They get one accepted
request each.
- When a refusal window ends (after a teleport) every uncached corpse would be
accepted in the same tick, so at most 2 new requests go out per scan tick, the
target or open corpse first. The budget restarts after 250 ms for evaluations
made outside a scan, so it never stays exhausted.
- _corpseIdAskedAt and _corpseIdRefusedAt are cleared on delete and on the >200
prune.
Tests (ActionPacingTests): refused-then-accepted; re-ask at 3 s and not before;
two corpses where only the target re-asks; 20 uncached corpses through a refusal
window; the open-container branch; the id map clears. Each case was
mutation-checked. The test fake's RequestId can now refuse (RequestIdAccepts,
RefusedIdRequests).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Next corpse without a close: when another lootable corpse is in range, a finished
corpse is no longer closed (CloseContainer and its 500 ms answer wait). ACE closes
the open container itself when the next one is used (Container.ActOnUse). The close
is held back and still sent when no other corpse is opened within 3 s, or looting
stops; the last corpse in range is closed at once as before. A finished corpse the
client still shows is not taken as a close of the corpse opened after it
(SyncCorpseContainerState), so its late CloseGroundContainer cannot make the bot
re-use, and so close, the new corpse.
Stack merges: a pickup that merges into a stack already in the pack never arrives as
an object in the pack, so it waited out PickupArriveMaxMs (4 s). The same-name
stacks in the inventory are noted when the pickup goes out; one that has grown
since confirms the pickup.
Jump-loot: the jump is the keyboard one (TapJump, 0xF61B Jump), which ACE handles;
JumpNonAutonomous (0xF7C9) has no handler there. The jump goes before the move,
since ACE's jump handler stops any walk-to in progress. It runs on every pickup, a
corpse's only match included: most corpses hold a single match, so a "more than
one item left" gate would mean jump-loot almost never ran. The tap jump has a fixed
height, so the Jump Height slider is gone from the RynthAi settings page
(LootJumpHeight itself stays plumbed).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
ACE refuses a pickup while the player is busy
(Player.HandleActionPutItemInContainer_Verify: YoureTooBusy and
InventoryServerSaveFailed). In a client log, a pickup went out while
Bloodstone Bolt VII was unanswered and came back 0x1D; the assess-timeout path
skips the busy-count gate, and the pickup path never asked the action pacer.
- The first pickup and the retry wait while ActionPacer has an action
outstanding (logged once per hold); a held retry uses up no attempt.
- Test: PickupWaitsForCastAnswer.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
ACE sends "The scroll is destroyed." before the return-to-ready animation and
the UseDone after it (Scroll.ActOnUse, Player.TryUseItem); in a client log they
were ~0.7 s apart, and the next read went ~0.8 s after the UseDone.
- The first UseDone after a read's send is that read's. The next read goes
250 ms after it; with no UseDone seen, 1.5 s after the read's end as before.
- The stance restore goes at the last read's UseDone when no scroll is pending,
instead of 3.5 s after the read; a pending scroll keeps the settle wait.
- Tests: ReadGapFromUseDone, StanceRestoredAtLastUseDone.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A corpse use sent between the salvage UST use and the salvage execute is swallowed
by the client, and the corpse loop then waits for an open that never comes.
- SalvageManager.PanelPending: the UST was used and the execute is not sent yet
(main cycle and the combine sweep).
- Corpse open waits while it is true, with the claim's timeout clock stopped, and
logs the wait once.
- UseAudit.WorldUseHold: automatic door/corpse uses are held (logged HELD, return
false) while RynthAi says so; uses the player asks for are never held. Cleared
by Reset; RynthAi wires it at init and clears it at shutdown.
- Test: LootPacingTests (panel pending 20 s: no corpse use, claim kept, auto world
use held; after the execute the corpse opens).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Using a scroll puts the character in Peace. ScrollLearner remembers the mode from
before the first read of a run (Melee/Missile/Magic, Peace Mode When Idle off) and
requests it once, 3.5 s after the last read ends, through ChangeCombatModeFor (pacing,
busy wait, 3 tries). Dropped when the tick is not safe (fight/buff), or another
subsystem already changed the mode.
Review fixes:
- A restore more than 15 s after the settle time is dropped (death/vendor/buff holds, a stuck busy).
- The main-hand weapon is recorded at the first read; a different one cancels the restore (ACE reverts
a mode the weapon does not fit).
- Only a request that went out counts toward the 3-request cap; pacer holds are retried.
- Peace Mode When Idle is re-checked each tick; the macro-stop close logs only from Peace; logs name modes.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A snapshot of the working tree for aelrynth.com/git/: the code, build files
and public docs. Internal review notes and agent instructions are left out.
MIT licensed; see LICENSE.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>