RynthAi jump loot: hold combat and buffs for the landing, no second jump in the air #23
Loading…
Reference in a new issue
No description provided.
Delete branch "AwfulWaffle/RynthSuite:lootjump-landing-gate"
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: nothing (applies to upstream main
7166d25). First of the stack: lootjump-landing-gate (#23) -> lootjump-no-benddown (#24) -> lootjump-slot-refusal (#29) -> {lootjump-merge-floor (#30), lootjump-flight-budget (#31)} (the last two are siblings, each on lootjump-slot-refusal (#29)).What went wrong in play
With Jump When Looting on, every corpse pickup goes out with a tap jump. On ACE the character is then in the air for up to about 1.5 s, and ACE refuses a cast, a swing, a shot, a healing kit, food or a potion while the character is jumping (Player_Magic, Player_Melee, Player_Missile, Healer, Food: IsJumping -> WeenieError 0x4EB, "You can't do that while in the air"). Nothing in RynthAi knew about the loot jump, so:
The fix
ActionPacerkeeps a loot-jump air hold:NoteLootJumpwhen the client took the tap jump,LootJumpAirborneuntil the height is back (checked fromJumpLandMinMs) orJumpLandMaxMsat most, so a missed landing can never stall anything, andForgetLootJumpat death, portal space and logout. The landing check is the one the stuck-cast jump already used, factored intoLanded.CombatManager.Thinkwaits for the landing right before the attack send. Target, approach and stance go on; nothing is stamped, counted or judged for a held tick.MayStart("Buff")(buffs, heals, kits, potions, the emergency step) waits too. Loot and doors are never held: ACE takes a pickup and a corpse use in the air.How it was tested
Tools/RynthCore.RynthAiHostTests,dotnet run -c Release:map bake: 0x6346 from the real dats matches the plan already on disk, which fails the same way on untouched upstream main: 1495 tests, 1494 passed);"Jump"filter: 33 tests, 33 passed.New tests: no second jump while in the air and a fresh one after the landing; the jump holds buffs and emergency heals but never loot, until the landing or the cap; portal space and a death drop the hold;
Thinksends no cast in the air and casts on the landing or at the cap; a swing refused in the air (0x4EB) is not a miss. The no-second-jump test was checked to fail with the in-air guard removed.Scope and risk
ACE-specific. The hold is only ever set by a loot jump, which needs Jump When Looting (
LootJumpEnabled, default off), so with the setting off nothing is held. The 0x4EB handling only reacts to the server's own in-the-air refusal, which is never a real miss on any server. Files:ActionPacer.cs,CombatManager.cs,CorpseOpenController.cs(the jump call),RynthAiPlugin.cs/RynthAiPlugin.Safety.cs(the threeForgetLootJumpcalls), plus tests.🤖 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.