aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-11-25 23:57:43 +0300
committerValentin Popov <valentin@popov.link>2026-11-25 23:57:43 +0300
commit530afea388f4e487a5a1320381c59e7d217717d8 (patch)
tree535b5722ff694d3d666c18aa143a8447d86c068a /apps
parent2d7c17b13b0dc2e4a4712fee25aa8f06161a141b (diff)
downloadfparkan-530afea388f4e487a5a1320381c59e7d217717d8.tar.xz
fparkan-530afea388f4e487a5a1320381c59e7d217717d8.zip
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.
Diffstat (limited to 'apps')
-rw-r--r--apps/fparkan-game/src/script_coverage.rs11
1 files changed, 11 insertions, 0 deletions
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));
}