From c4439f993e3cd30f98acf65d0cd088abbb389232 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 25 Nov 2026 12:44:27 +0400 Subject: feat(ai): patrol scripted protection points PBM_PLACE_PROTECT recruits free warbots for TARGET_BY_PLACE and preserves its patrol group across Continue calls. New factory units can reinforce it; releasing the group preserves a subsequent movement or attack order. Coverage counts point orders and continuations by clan and both coordinates. Validated with fmt/check/test workspace, stock mission 10 group lifecycle, stock building and factory guard regressions, and 900-second simulations of missions 8, 10 and 12. Mission 10 ran in the window from stock start, issued the point order and reinforced it, with clean Vulkan validation. Original Behavior.dll RVA 0x2d520 confirmed point/radius parameters. Routing, free-unit recruitment and continuation timing remain approximate. Mission chronology alongside the original is open. Simulations expose Handler(13) in mission 8 and another group recruitment mode in mission 12. --- apps/fparkan-game/src/script_coverage.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'apps') diff --git a/apps/fparkan-game/src/script_coverage.rs b/apps/fparkan-game/src/script_coverage.rs index 2e3d276a..56d05436 100644 --- a/apps/fparkan-game/src/script_coverage.rs +++ b/apps/fparkan-game/src/script_coverage.rs @@ -44,6 +44,14 @@ pub(super) fn log_clan_ai_stops(report: &SimulationReport) { for &(clan, target, count) in &report.script_group_orders { eprintln!("sim_coverage script_group_order_approx={count} clan={clan} target={target}"); } + for &(clan, x, y, count) in &report.script_point_group_orders { + eprintln!("sim_coverage script_point_group_order_approx={count} clan={clan} x={x} y={y}"); + } + for &(clan, x, y, count) in &report.script_point_patrol_continues { + eprintln!( + "sim_coverage script_point_patrol_continue_approx={count} clan={clan} x={x} y={y}" + ); + } for &(clan, problem, count) in &report.script_problem_waits { eprintln!("sim_coverage script_problem_wait_approx={count} clan={clan} problem={problem}"); } -- cgit v1.2.3