diff options
| author | Valentin Popov <valentin@popov.link> | 2026-11-25 17:06:07 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-11-25 17:06:07 +0300 |
| commit | bef4fbab7701a51945ed93357babe12b416bb9a8 (patch) | |
| tree | 3990f0e2898b369c53f42b514c185ceeb7372132 /apps | |
| parent | 593e38ba45fc7d28e28bdcc0fa8020a6c62deac0 (diff) | |
| download | fparkan-bef4fbab7701a51945ed93357babe12b416bb9a8.tar.xz fparkan-bef4fbab7701a51945ed93357babe12b416bb9a8.zip | |
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.
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/fparkan-game/src/script_coverage.rs | 18 |
1 files changed, 16 insertions, 2 deletions
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}"); |
