From a4a9b7a6478c9c1efcf0aef8b37464dc0e5b339e Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 25 Nov 2026 17:04:13 +0400 Subject: feat(ai): resupply scripted builders before construction Use the native Building_Cost threshold to start loading from the nearest owned mine or warehouse. Transfer ore at the stock 100 units/second up to the design price, then resume the reserved building task. Mines bypass loading; direct construction can preserve native negative ore after payment. Execute Behavior.dll's config constructor, start, source selection, loading tick and resource setter in an x86 oracle. Keep exterior docking and custom Behavior configuration explicit approximations, counted per builder/source. The stock Single.02 regression now reaches another completed building after resupply without changing mission objects or resources. Validate fmt/check/ workspace tests, licensed construction and debt regressions, all 29 stock missions for 900 seconds, and mission 29 in a Vulkan-validation window. --- 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 5432d2ad..4041691f 100644 --- a/apps/fparkan-game/src/script_coverage.rs +++ b/apps/fparkan-game/src/script_coverage.rs @@ -97,6 +97,9 @@ pub(super) fn log_clan_ai_stops(report: &SimulationReport) { eprintln!("sim_coverage script_building_rejected={rejected} clan={clan} builder={builder} class={class:#010x}"); } } + for &(clan, builder, source, count) in &report.script_builder_supplies { + eprintln!("sim_coverage script_builder_supply_approx={count} clan={clan} builder={builder} source={source}"); + } for &(clan, count) in &report.script_capturer_queries { eprintln!("sim_coverage script_nearest_capturer_approx={count} clan={clan}"); } -- cgit v1.2.3