Commit graph RynthSuite/Plugins/RynthCore.Plugin.RynthAi/CorpseOpenController.cs
Author SHA1 Message Date
Daniel Wallace
ad8df0b671 Corpse ID: retry refused requests, re-ask the target, cap the burst
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>
2026-10-12 16:50:23 -07:00
Daniel Wallace
fd9fe82095 Corpse looting: no close before the next corpse, confirm stack merges, jump-loot on ACE
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>
2026-10-12 16:50:23 -07:00
Daniel Wallace
b3960e157d Hold corpse pickups while the server owes an answer to a cast or use
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>
2026-10-12 16:50:23 -07:00
Daniel Wallace
316527227f Hold corpse opens and automatic world uses while the salvage panel is pending
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>
2026-10-12 16:50:23 -07:00
504a6f080a Snapshot for release 2026.10.11.1 (internal d20160b) 2026-10-11 15:00:56 -04:00
e6fffb0f42 Snapshot for release 2026.10.9.3 (internal 8c6b770) 2026-10-09 21:42:40 -04:00
0daf0a44a3 Snapshot for release 2026.10.8.1 (internal f3d67ec) 2026-10-08 17:29:51 -04:00
26907e6ab1 Snapshot for release 2026.10.7.1 (internal 2a9c773) 2026-10-07 12:54:26 -04:00
5416e8066a Snapshot for release 2026.10.6.1 (internal bd2f068) 2026-10-06 08:47:11 -04:00
6847868401 RynthSuite as of 2026-10-05 evening (internal a078b8e): release 2026.10.5.20 - healing delay fixes, stuck-cast safeguards, buffs over items, slayers recognised and chosen first, recover my corpse, /ub give and /mt give, Mana Tap skips wands, dungeon floor-plan bake, heal latency log 2026-10-05 14:59:43 -04:00
53438c65c1 RynthSuite as of 2026-10-05 (internal 8b7d487): navigation no longer stalls after doorway turns, faster target and attack, corpses used from a distance and closed after looting, patrol wall clearance, add-to-loot-profile from an item, WCID loot rules, scroll and slayer fixes, release 2026.10.5.1 2026-10-05 08:03:08 -04:00
12ca25f911 RynthSuite as of 2026-10-04 (internal c94715f): RynthOracle (based on Oracle of Dereth by Advis Eveldan) and RynthInventory, RynthAi patrol doorways and rooms, healing priority, strict monster priority, finish the wounded target, slayer weapons, arcs when clear, blasts like rings, learn unknown spells, looting fixes, release 2026.10.4.6
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 18:34:29 -04:00
c33e24a610 RynthSuite as of 2026-09-27 (internal 0a2fb99): looting waits for item names and types, release 2026.9.27.3 2026-09-27 21:18:57 -04:00
d55ffda4ed RynthSuite as of 2026-09-27 (internal 1816d05): AutoVendor (UtilityBelt port), missile/magic facing and arc line of sight, nav waypoint skipping, rebuff batch and item-enchant fixes, crafting fallback, Loot Editor AutoVendor folder and command-line open, release 2026.9.27.2 2026-09-27 20:25:46 -04:00
0a4b611a90 RynthSuite as of 2026-09-05 (internal a5ff5c2)
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>
2026-09-25 21:23:05 -04:00