RynthAi jump loot: no Return wait after a pickup ACE ran in the air #24
Loading…
Reference in a new issue
No description provided.
Delete branch "AwfulWaffle/RynthSuite:lootjump-no-benddown"
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-landing-gate (#23) (uses its
ActionPacer.LootJumpAirborne/NoteLootJump). Second of the stack: lootjump-landing-gate (#23) -> lootjump-no-benddown (#24) -> lootjump-slot-refusal (#29) -> {lootjump-merge-floor (#30), lootjump-flight-budget (#31)} (siblings).What went wrong in play
On ACE with jump-loot, a pickup that reaches the server while the character is in the air has no pickup motion (Player_Inventory.GetPickupMotion returns Invalid under allow_jump_loot): the item moves at about the round trip, EnqueuePickupDone has no Return to play, and the character is not busy. RynthAi still handled it like a normal pickup:
PickupAnswerMinMsfloor (ACE's motion time), although it had come in about 150 ms;PickupSettleMs;In play that is about 2 s per pickup of waiting for a bend-down and Return the server never played.
The fix
PickupAnswerMinMs, settles at its confirm: the corpse completes and the next pickup or open goes at once, in the air. For the rest of the jump's flight (JumpLandMaxMsfrom the jump itself, read through the newActionPacer.LootJumpAgeMs) a busy motion queue does not hold the next pickup.How it was tested
Tools/RynthCore.RynthAiHostTests,dotnet run -c Release:map bake: 0x6346 ..., the same pre-existing failure as upstream main);"Jump"filter: 49 tests, 49 passed.New tests: next corpse opened at the confirm with the air queue busy or idle; next item sent in the air with no second jump and a fresh jump after the landing; a slow answer waits its Return and ends the flight window; a jump answer at 150 ms is confirmed then; a jump merge, a no-jump send and a weak sign keep the floor; no-jump and resent fast answers wait their Return; a too-busy move or open turns the call off, a code-0 refusal does not; the claim reset ends the window; one move in flight, the next on the answer tick; the window after an in-air send is anchored to the jump, not the send (checked to fail when anchored to the send).
Scope and risk
ACE-specific. Only jump sends take any of this, so it needs Jump When Looting (
LootJumpEnabled, default off). A send with no jump (setting off, pipelined, resent, low stamina) keeps the floor and the Return wait unchanged. Files:CorpseOpenController.cs,ActionPacer.cs(LootJumpAgeMs),LootJumpTests.cs.🤖 Generated with Claude Code
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.