diff --git a/Changelog/2026-10-11-nav-closest-waypoint-setting.md b/Changelog/2026-10-11-nav-closest-waypoint-setting.md new file mode 100644 index 0000000..314f11e --- /dev/null +++ b/Changelog/2026-10-11-nav-closest-waypoint-setting.md @@ -0,0 +1,19 @@ +# Settings: Navigation > Getting Back On Route > Go To Closest Waypoint + +## What changed + +- `UI/Data/SettingsData.cs`: + - new `NavResumeNearest` property (default true); + - new "Getting Back On Route" section on the Navigation page, with a "Go To Closest Waypoint" + checkbox. +- With the option on, RynthAi: + - heads for the closest waypoint on the route at macro start, when a Circular or Linear route + loads, and when nav takes over again after a fight, loot, buff or door that moved the + character 10 yd or more; + - skips a waypoint the character has already walked past. +- With the option off, nav carries on to the waypoint it was heading for, and a loaded route + starts at its first point. +- An older RynthAi ignores the new field. The matching RynthAi keeps its own value when an older + engine doesn't send it. + +Not yet tested in game. diff --git a/src/RynthCore.Engine/UI/Data/SettingsData.cs b/src/RynthCore.Engine/UI/Data/SettingsData.cs index 4a84743..c2e603b 100644 --- a/src/RynthCore.Engine/UI/Data/SettingsData.cs +++ b/src/RynthCore.Engine/UI/Data/SettingsData.cs @@ -152,6 +152,9 @@ internal sealed class RynthAiSettings // Nav3D extras (RynthAi NavOverlay), both off by default: 0 off, 1 numbers, 2 numbers and names. public int NavLabelMode { get; set; } public bool NavGuideLine { get; set; } + // RynthAi NavResumeNearest: macro start, route loads and resuming after a pause that moved + // the character head for the closest waypoint. On by default; an older plugin ignores it. + public bool NavResumeNearest { get; set; } = true; public bool OpenDoors { get; set; } public float OpenDoorRange { get; set; } = 5f; public bool AutoUnlockDoors { get; set; } @@ -827,6 +830,13 @@ internal static class SettingsSchema Bool("Auto-Unlock Doors", s => s.AutoUnlockDoors, (s, v) => s.AutoUnlockDoors = v, "If a door is locked, try to use a lockpick from your Consumable Items list.", when: s => s.OpenDoors), Spacer(), + Section("Getting Back On Route"), + Bool("Go To Closest Waypoint", s => s.NavResumeNearest, (s, v) => s.NavResumeNearest = v, + "On: starting the macro, loading a Circular or Linear route, and carrying on after a fight, loot, buff or door\n" + + "that moved you 10 yd or more all head for the closest waypoint on the route. A waypoint you have already\n" + + "walked past is skipped for the one after it, so nav doesn't turn back. Once routes only look ahead.\n" + + "Off: nav carries on to the waypoint it was heading for, and a loaded route starts at its first point."), + Spacer(), Section("Steering"), Float("Stop & Turn Angle", s => s.NavStopTurnAngle, (s, v) => s.NavStopTurnAngle = v, 1f, 90f, 1f, "Stop forward motion and turn in place when heading error exceeds this."),