Skip to content

Fixes warp saveMap + Enhances AI targeting, movement, and slave systems#4201

Merged
Henrybk merged 1 commit intomasterfrom
UpdateFixes
Mar 31, 2026
Merged

Fixes warp saveMap + Enhances AI targeting, movement, and slave systems#4201
Henrybk merged 1 commit intomasterfrom
UpdateFixes

Conversation

@Henrybk
Copy link
Copy Markdown
Contributor

@Henrybk Henrybk commented Mar 31, 2026

Improves core AI and slave behaviour with refined targeting, movement, and configuration handling.

Key Changes

  • AI Core
    • Introduces granular control over character movement path distance, distinguishing between unobstructed and obstructed routes.
    • Refines auto-storage, auto-sell, and auto-buy processes with a dedicated AI clearing function to prevent conflicts.
    • Enhances target acquisition with predictive positioning and a new ai_attack_allowed_waitForTarget setting.
  • Slave AI
    • Completely reworks slave follow and recall mechanisms for improved responsiveness and reliability, including new followMode options and dynamic standby limits.
    • Simplifies slave route configurations by removing redundant randomWalk_ prefixes.
    • Updates standby timeouts for homunculi and mercenaries, improving their reaction times.
  • avoidAssisters Plugin
    • Revamps configuration to a block-based syntax, allowing multiple, clearer assister-avoidance rules per mob.
    • Implements sophisticated drop conditions for targets, distinguishing between initial selection and already-engaged combat, including confirmation timers and release cooldowns.
    • Optimizes performance with visible monster caching and adds a new command for configuration inspection.

Detailed Changes

  • Updates teleportAuto_dropTargetEngaged configuration option for both player and slaves, allowing teleportation when engaged targets are dropped.
  • Refactors target approach logic in attack AI, enabling dynamic route adjustment when targets or masters move.
  • Improves meetingPosition calculation to avoid placing actors near portals and other dynamic entities.
  • Corrects slave attack skill attempt tracking and handles slave movement interruption more gracefully.

Bug Fixes

  • Fixes incorrect attackSkillSlot_attempts increment for slave attack skills.
  • Adds safety check in cmdSlave to prevent errors with undefined slave objects.

Deprecations

  • Removes maxWalkPathDistance in favor of maxUnobstructedWalkPathDistance and maxObstructedWalkPathDistance.
  • Deprecates old avoidAssisters_N and avoidGlobalAssisters_N configurations, migrating to a new block-based system.
  • Removes _route_adjust timeouts, streamlining route re-evaluation.

@Henrybk Henrybk merged commit a995176 into master Mar 31, 2026
9 checks passed
@Henrybk Henrybk deleted the UpdateFixes branch March 31, 2026 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants