Address two issues found in the first isolated 2.61.0.58 live runs and add
a test switch to disable silent fallback to stock movement:
- Add navigation.returnToStockOnFailure in tuning/ground-ai.jsonc (default
true), compiled into WTO_AI_NAV_RETURN_TO_STOCK and written to wto_ws.cfg
as ground_ai_return_to_stock=0 when disabled. When false, failed or
timed-out bots keep stock movement paused, brake in place and log the
failure once instead of silently handing control back to stock tankBot.
- Allow holdMs=0 release actions even after local_mp_is_host() flips false
during mission unload, add eid=0 bulk release on wto_reset_runtime(), and
match slots by eid rather than live owner lookup so match exit cleans up
the native control table immediately.
- Stop releasing drive ownership when a vehicle is immobilized by damage or
repair; brake in place and pause the echo watchdog instead, avoiding the
1-second release/re-acquire flapping observed during combat. Log exact
release reasons and back off for 1 second if MoveSystem.inactive is
cleared externally.
Verified MSVC build of wto_ws.dll (0 warnings in project C sources), root
and launcher type checks, 14/14 check-patches on 2.61.0.58, and a temporary
2.61.0.58 game copy build confirming ground_ai_return_to_stock=0 in
wto_ws.cfg and 15 packed daScript modules. Live battle re-check pending.
Grant custom physics control per LocalMP bot and let the native layer release it when the script stops renewing control. Verified both TypeScript checks, the MSVC build, native resolution and check-patches on .37 and .58, and isolated .58 script loading.