RynthAi jump loot: flight budget for in-air sends #31
Loading…
Reference in a new issue
No description provided.
Delete branch "AwfulWaffle/RynthSuite:lootjump-flight-budget"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Depends on: lootjump-slot-refusal (#29) (the budget also decides whether a slot resend keeps its jump). A sibling of lootjump-merge-floor (#30), both on lootjump-slot-refusal (#29).
Applying with lootjump-merge-floor (#30)
The two siblings touch separate parts of
CorpseOpenController.csandLootJumpTests.cs. Cherry-picked onto lootjump-slot-refusal (#29) in either order (merge-floor then flight-budget, or the reverse), they apply with no conflict, and both orders give the identical tree. That tree builds and passes:map bake: 0x6346 ..., pre-existing);"Jump"filter: 70 tests, 70 passed.What went wrong in play
A pickup sent in the air on an earlier jump is a no-bend-down pickup only if the server still sees the character jumping when the move reaches it. Sent late in the flight, it arrived after the landing and ACE played the whole bend-down and Return (about 2 s; in client logs from one server the in-air bend-downs came out at 1701 and 2707 ms), where landing and taking a fresh jump costs about 0.5 s.
The fix
jumpAge+ the recent no-bend-down send-to-off-corpse time is overLootJumpFlightBudgetMs, the pickup is held for the landing and then goes with a fresh jump.jumpAge+ off-corpse among 56 in-air no-bend-down sends in those logs.How it was tested
Tools/RynthCore.RynthAiHostTests,dotnet run -c Release, on this branch alone:map bake: 0x6346 ..., the same pre-existing failure as upstream main);"Jump"filter: 67 tests, 67 passed.New tests:
Scope and risk
ACE-specific. The path runs only for jump sends, so it needs Jump When Looting (
LootJumpEnabled, default off). With the setting off no send is ever held for a landing. The budget comes from one character's logs on one server and may want tuning elsewhere. Files:CorpseOpenController.cs,LootJumpTests.cs.🤖 Generated with Claude Code
The acclient holds one pending inventory request. While it is held, it refuses any other item move with a LOCAL chat line ("You can only move or use one item at a time"): nothing reaches the server, no WeenieError comes, and the engine's MoveItemExternal returns true regardless. The looter took that send for one in flight and waited the whole answer window (PickupAnswerWaitMs, 4-8 s) before trying again, and the retry cost the item one of its 3 tries. At the jump-loot cadence this stalled the loot 4-8 s at a time. The line is now heard (NoteSlotRefusalChat, anchored at the line start, stamped with its arrival time on the loot clock) and attributed to the current send when it arrived within the send's window (200 ms, or 2.5 s for a send made while the motion queue was busy, since the engine's main thread queue holds the move that long) and no other item action of this plugin went out between that same window before the send and the line (UseAudit.LastItemActionAt). The send is then repeated 250 ms after it, without a jump, never counted as one of the 3 tries or as a too-busy free retry, for up to 11.5 s from the item's first slot refusal (the engine clears a held slot after 10 s); then the ordinary answer wait takes over. The refusal baseline is taken in SendLootPickup, the one path every send goes through, own-corpse sends included. Item actions are stamped at every UseFor and UseOnFor except the looter's own, the wand, weapon and offhand wields, the ground pickup, the give helper and the item tool's give, the salvage sends and panel adds, the meta give actions and salvage-panel add, the MagTools give, drop and dequip, the HUD and MiniRemote uses, the stack merges and the trade adds. Not stamped: vendor buy and sell, the salvage panel execute, pack-to-pack moves and stack splits, the legacy swap wields and the dashboard's panel drag (the UseAudit doc names the files). Other plugins' item actions are not seen: each plugin compiles its own copy of UseAudit. Adapted to upstream's fight hold: no slot resend while a fight has the tick (the client drops an item move while the character attacks); the line is attributed by its arrival time, so the resend goes at once after the fight, and the fresh send does not inherit the fight flag. Gated by Jump When Looting (LootJumpEnabled, default off): the net was measured and tuned on ACE's jump-loot cadence. With the setting off every send keeps its old wait. The UseAudit stamps are a timestamp only. Host tests: a slot-refused send is resent in about 250 ms with no try used; a late line or a player's words are not ours; a line then the server's answer at 200 ms is one move; resends go on past 7.5 s and hand over after 11.5 s; a busy-queue send's refusal at 700 ms is its own; another item action before the line, a UseOnFor included, suppresses it, and so does one 1 s before a busy-queue send; the reset clears the slot fields; the looter's own UseOnFor is not stamped, so a line after it is still ours; with the setting off nothing changes; a refusal during a fight (driven through the real fight hold) is resent only after it; an own-corpse send after an earlier refusal line is one move. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.