diff options
| author | Valentin Popov <valentin@popov.link> | 2026-11-25 21:16:35 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-11-25 21:16:35 +0300 |
| commit | 574a1c02ba88b5205437cca3c0b0c29fe1afa945 (patch) | |
| tree | f46bd7dacc2bcee46e98716c28159e530e515fae /apps/fparkan-game/src/script_coverage.rs | |
| parent | 547a4b1386ae022ba3c5f918f0903410cfc3040e (diff) | |
| download | fparkan-574a1c02ba88b5205437cca3c0b0c29fe1afa945.tar.xz fparkan-574a1c02ba88b5205437cca3c0b0c29fe1afa945.zip | |
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.
Diffstat (limited to 'apps/fparkan-game/src/script_coverage.rs')
| -rw-r--r-- | apps/fparkan-game/src/script_coverage.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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}"); } |
