aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-11-25 23:31:54 +0300
committerValentin Popov <valentin@popov.link>2026-11-25 23:31:54 +0300
commit2d7c17b13b0dc2e4a4712fee25aa8f06161a141b (patch)
treed65452f6a0a1ffcc8ff39429ed92de15be116f87 /apps
parent3732b97e0393de323f26f750083f556b16ff6b9d (diff)
downloadfparkan-2d7c17b13b0dc2e4a4712fee25aa8f06161a141b.tar.xz
fparkan-2d7c17b13b0dc2e4a4712fee25aa8f06161a141b.zip
fix(patrol): request place patrol speed from Control limits
Unengaged PatrolPlace movement uses current owner-profile word 7 times 0.8 instead of one fixed speed for every chassis. Preserve a counted fallback for unavailable profiles and report per-object speed samples. The profile is projected at load time; runtime updates, acceleration, turning and speeds of other orders remain approximate. Confirmed the current-profile selector by executing GOG Behavior.dll RVA 0x1bbe0. A live request at RVA 0x2dc67 maps limit 0x416b55d8 and factor 0x3f4ccccd to 0x413c44ad, covered by a Rust regression. Behavior.dll SHA-256: ddfbdbde07832358fe6e35e01c8dba9b58e7313789498b6049ed51d4ed9baf99. Validated fmt, workspace check/tests, release build, licensed stock profile and patrol-list tests, and all 29 stock missions for 900 seconds. Observed stock AutoDemo movement, combat and replenishment in the window; this does not establish full native movement or opening chronology parity.
Diffstat (limited to 'apps')
-rw-r--r--apps/fparkan-game/src/script_coverage.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/fparkan-game/src/script_coverage.rs b/apps/fparkan-game/src/script_coverage.rs
index 045f4306..118dc4af 100644
--- a/apps/fparkan-game/src/script_coverage.rs
+++ b/apps/fparkan-game/src/script_coverage.rs
@@ -21,6 +21,12 @@ pub(super) fn log_script_init(engine: &Engine, mission: &str) {
}
pub(super) fn log_clan_ai_stops(report: &SimulationReport) {
+ for (object, (count, limit, speed)) in &report.patrol_speeds.samples {
+ eprintln!("sim_coverage patrol_speed_profile_approx={count} object={object} forward_limit={} requested_speed={}", f32::from_bits(*limit), f32::from_bits(*speed));
+ }
+ for ((object, reason), count) in &report.patrol_speeds.stubs {
+ eprintln!("sim_coverage patrol_speed_stub={count} object={object} reason={reason}");
+ }
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}");
}