From 574a1c02ba88b5205437cca3c0b0c29fe1afa945 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 25 Nov 2026 22:16:35 +0400 Subject: fix(production): pace factory tasks with the Behavior timer Factory orders used to advance on every render/headless step, although the ore request contains a per-call increment. Gate active free and paid orders with the shared Behavior 1/1 task clock, without catch-up updates. Report admitted steps per clan and factory; idle owner phase and full RNG ordering remain explicit approximations. Live GOG Behavior.dll calls at RVA 0x2a4f0 pass through 0x34a30 and 0x54a0 with timer words 1/1. A licensed regression verifies the strict deadline and resource pull; paid production and scripted warbot, transport and builder regressions pass. Workspace fmt/check/tests and release build pass. Stock 29-mission simulation and a stock mission-28 window check cover integration. --- apps/fparkan-game/src/script_coverage.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/fparkan-game') diff --git a/apps/fparkan-game/src/script_coverage.rs b/apps/fparkan-game/src/script_coverage.rs index a7851f5b..32594377 100644 --- a/apps/fparkan-game/src/script_coverage.rs +++ b/apps/fparkan-game/src/script_coverage.rs @@ -141,6 +141,9 @@ pub(super) fn log_clan_ai_stops(report: &SimulationReport) { for &(clan, plant, count) in &report.script_factory_orders { eprintln!("sim_coverage script_factory_orders_approx={count} clan={clan} plant={plant}"); } + for &(clan, plant, count) in &report.factory_clock_ticks { + eprintln!("sim_coverage script_factory_clock_approx={count} clan={clan} plant={plant}"); + } for &(clan, plant, count) in &report.script_factory_rejections { eprintln!("sim_coverage script_factory_rejections={count} clan={clan} plant={plant}"); } -- cgit v1.2.3