From bbd6088b7fb1162a976bcfa1ca6720c2c91e8a72 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sun, 15 Nov 2026 00:04:40 +0400 Subject: feat(ai): find and reserve sites for scripted construction Handler 18 scans base rings, checks terrain and clearance, and writes the site back to the script. The stock Two Fortresses window found a tower site and reached the builder order. The native DLL returned the expected site with and without a reservation, and zero for missing areas. The builder task remains explicit in coverage. --- apps/fparkan-game/src/script_coverage.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps') diff --git a/apps/fparkan-game/src/script_coverage.rs b/apps/fparkan-game/src/script_coverage.rs index 9d2a6613..a67ddde3 100644 --- a/apps/fparkan-game/src/script_coverage.rs +++ b/apps/fparkan-game/src/script_coverage.rs @@ -45,6 +45,11 @@ pub(super) fn log_clan_ai_stops(report: &SimulationReport) { for &(clan, unit, count) in &report.script_ore_transport_orders { eprintln!("sim_coverage script_ore_transport_approx={count} clan={clan} unit={unit}"); } + for &(clan, class, count) in &report.script_building_site_queries { + eprintln!( + "sim_coverage script_building_site_approx={count} clan={clan} class={class:#010x}" + ); + } for &(clan, count) in &report.script_capturer_queries { eprintln!("sim_coverage script_nearest_capturer_approx={count} clan={clan}"); } -- cgit v1.2.3