From 530afea388f4e487a5a1320381c59e7d217717d8 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Nov 2026 00:57:43 +0400 Subject: fix(control): refresh motion limits after node damage Run the supported dirty Control profile branch on the resource clock, before the existing factory/laboratory budget pass. Mobile owners now participate in these clocks. Root hits reduce the drive's current E00 value and the next place-patrol speed request uses the updated limit. Keep mutable node-group means and publish profile words atomically. Move FCA0 projection into control_profile rather than extending lib.rs. Count clock checks, publications and unsupported updates per object; alarm damage, activation and mobile device budgets remain explicit gaps. Native Control.dll RVA 0x12a40 -> 0xfca0 confirms mean retention, clean-call behavior and the healthy-critical-group branch that bypasses the aggregate threshold. Golden outputs are covered by Rust tests. SHA-256: bcb86318089028548a178b03a21accdce15df0cc85ddd91674cf3c2f55012c6e. Validated fmt, workspace check/tests, release, licensed stock damage, combat and patrol regressions, plus all 29 stock missions for 900 seconds without new profile-update stops. Stock window AI hits change limits. The additional live native interception yielded no usable sample; its supported calculation branches were executed directly in the DLL. --- apps/fparkan-game/src/script_coverage.rs | 11 +++++++++++ 1 file changed, 11 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 118dc4af..abb63e15 100644 --- a/apps/fparkan-game/src/script_coverage.rs +++ b/apps/fparkan-game/src/script_coverage.rs @@ -21,6 +21,17 @@ pub(super) fn log_script_init(engine: &Engine, mission: &str) { } pub(super) fn log_clan_ai_stops(report: &SimulationReport) { + for (object, count) in &report.control_profiles.ticks { + eprintln!("sim_coverage control_profile_clock_approx={count} object={object}"); + } + for (object, (count, before, after)) in &report.control_profiles.updates { + eprintln!("sim_coverage control_profile_updates={count} object={object} previous_limit={} current_limit={}", f32::from_bits(*before), f32::from_bits(*after)); + } + for ((object, reason), count) in &report.control_profiles.stubs { + eprintln!( + "sim_coverage control_profile_update_stub={count} object={object} reason={reason}" + ); + } 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)); } -- cgit v1.2.3