Native engine (native/wto-nav):
- Path searches are queued per slot and advanced with Detour's sliced
search inside a per-frame time budget (navEngine.pathBudgetMsPerFrame),
so a 4 km search no longer stalls a frame. The synchronous find_path
op is gone.
- The battle's pack is read on a background thread when the mission
finishes loading (prefetch); load_map only takes the result.
- New mesh queries: probe (surface, flags, room to the mesh edge),
raycast, nearest walkable point, and dynamic cost circles for wrecks,
jams and fresh obstacles that later searches route around.
Ground AI scripts:
- route picks the mesh tier by vehicle width and the cost filter by
tracked or wheeled, plans on goal change, drift off the corridor, a
timer or reported obstacles, and falls back to the stock road mesh
only when the battle decided on the fallback.
- follow steers at a speed-scaled lookahead point and brakes ahead of
sharp corners, narrow passages and the destination.
- avoid casts rays from both front hull corners that drive through
objects the bake marks crushable, follows slower traffic, steps aside
or yields by size priority in narrow passages.
- unstick escalates deterministically: back up along the corridor, mark
a jam and replan, then log the spot and hand the order back.
- Flank lanes are built through the queued searches; rallies are not
released while their lanes are still being built.
- Removed the 9-arc forward probing, 7-arc reverse probing, 145 m
straight shortcuts, 165 m snapping and random sideways detours.
Tuning: new pathFollow section, navEngine.goalSnapRadiusM and
pathBudgetMsPerFrame, navBake.crushableMaxRiExtraHp passed to the
scripts; retired navigation.cornerBrakeAccel, stuckWindowSec,
stuckMinMoveM and unstickReverseSec. Launcher fields and en/zh-CN labels
updated.
Checked: root and launcher typecheck, MSVC build with no warnings in
project code, check-patches for 2.61.0.58 and 2.61.0.60, offline engine
run on avg_poland (prefetch, sliced searches within budget, slot
replacement, dynamic costs), isolated game copy build. daScript
compilation and in-battle behaviour still need the in-game run.