From bef4fbab7701a51945ed93357babe12b416bb9a8 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 25 Nov 2026 18:06:07 +0400 Subject: feat(ai): execute laboratory research from clan scripts Clan laboratories accept the selected DAT project, request power and ore, accumulate native research progress, and publish learned technologies to construction and production. Research requests wait for the live laboratory; newly built objects are no longer mistaken for destroyed targets. Behavior.dll task 0x2f730 was called with paid and free work under x87 0x007f. The stock Single.02 regression checks both completed technologies and keeps the request pending while the laboratory is busy. Workspace fmt/check/tests, the 29-mission 900-second corpus, and the Vulkan window check pass. Dependent availability and free child propagation remain explicit script_research_unlock_stub counters; candidate properties 65 and policy 69 remain open. This does not close G7 or establish live AI chronology parity. --- apps/fparkan-game/src/script_coverage.rs | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'apps/fparkan-game/src') diff --git a/apps/fparkan-game/src/script_coverage.rs b/apps/fparkan-game/src/script_coverage.rs index fb2c3017..1e9c207c 100644 --- a/apps/fparkan-game/src/script_coverage.rs +++ b/apps/fparkan-game/src/script_coverage.rs @@ -21,8 +21,22 @@ pub(super) fn log_script_init(engine: &Engine, mission: &str) { } pub(super) fn log_clan_ai_stops(report: &SimulationReport) { - for &(clan, entries, selected) in &report.clan_research_catalogs { - eprintln!("sim_coverage script_research_catalog_approx=1 clan={clan} entries={entries} selected={selected}"); + for &(clan, entries, selected, count) in &report.clan_research_catalogs { + eprintln!("sim_coverage script_research_catalog_approx={count} clan={clan} entries={entries} selected={selected}"); + } + for &(clan, lab, accepted, rejected) in &report.laboratory.orders { + eprintln!("sim_coverage script_lab_research_approx={accepted} script_lab_research_rejections={rejected} clan={clan} lab={lab}"); + } + for &(clan, lab, row, count) in &report.laboratory.completed { + eprintln!( + "sim_coverage script_lab_technology_researched={count} clan={clan} lab={lab} row={row}" + ); + } + for &(clan, row, count) in &report.laboratory.unlock_stubs { + eprintln!("sim_coverage script_research_unlock_stub={count} clan={clan} row={row}"); + } + for &(clan, lab, count) in &report.laboratory.stopped { + eprintln!("sim_coverage script_lab_research_stopped={count} clan={clan} lab={lab}"); } for &(clan, target, x, y, count) in &report.script_mine_queries { eprintln!("sim_coverage script_mine_target_approx={count} clan={clan} target={target} x={x} y={y}"); -- cgit v1.2.3