From 3732b97e0393de323f26f750083f556b16ff6b9d Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Nov 2026 00:12:41 +0400 Subject: fix(patrol): use native cyclic PatrolPlace point batches Generate 15-19 goals with Behavior's two random streams, reject candidates within 100 units of map edges, and retain the cyclic list until the native 20-second plus 10-second jitter timer expires. Draw coordinate and timer randomness from the shared Behavior CRT stream rather than a patrol-local copy. Cache chassis CanFly for autonomous checks and reuse the player parser. Keep per-object counts of batches, goals, approximate area checks and missing inputs. The generator's initial seed, owner update order, ground walkability and physical movement remain explicit approximations. Verified native Behavior.dll RVA 0x2dd90 by x86 invocation at CW 0x007f, including edge rejection, and captured a matching batch in live AutoDemo. Rust golden vectors match all goals, RNG states and deadlines. Workspace fmt/check/test and licensed patrol, combat and clan-clock regressions pass. All 29 stock missions reach --sim-report 900 with no script interruptions or new missing patrol inputs. Observed the change in a stock AutoDemo window. This does not establish full G7 chronology or G8 movement parity. --- apps/fparkan-game/src/script_coverage.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'apps/fparkan-game/src/script_coverage.rs') diff --git a/apps/fparkan-game/src/script_coverage.rs b/apps/fparkan-game/src/script_coverage.rs index a59e8c42..045f4306 100644 --- a/apps/fparkan-game/src/script_coverage.rs +++ b/apps/fparkan-game/src/script_coverage.rs @@ -21,6 +21,14 @@ pub(super) fn log_script_init(engine: &Engine, mission: &str) { } pub(super) fn log_clan_ai_stops(report: &SimulationReport) { + for (object, (batches, points, checks)) in &report.patrol_points.batches { + eprintln!("sim_coverage mission_patrol_points_approx={points} object={object} batches={batches} walkability_queries={checks}"); + } + for ((object, reason), count) in &report.patrol_points.stubs { + eprintln!( + "sim_coverage mission_patrol_points_stub={count} object={object} reason={reason}" + ); + } for ((object, component), (count, reason)) in &report.weapon_poses.fallbacks { eprintln!("sim_coverage unit_weapon_pose_fallback={count} object={object} component={component} reason={reason}"); } -- cgit v1.2.3