diff options
| author | Valentin Popov <valentin@popov.link> | 2026-11-25 11:44:27 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-11-25 11:44:27 +0300 |
| commit | c4439f993e3cd30f98acf65d0cd088abbb389232 (patch) | |
| tree | 62173efad2e6ee416b8d2ef6a22bf77012aadf45 /apps/fparkan-game/src | |
| parent | b553096eb9a4d9ccaa46ec2616c5c392e8a39325 (diff) | |
| download | fparkan-c4439f993e3cd30f98acf65d0cd088abbb389232.tar.xz fparkan-c4439f993e3cd30f98acf65d0cd088abbb389232.zip | |
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.
Diffstat (limited to 'apps/fparkan-game/src')
| -rw-r--r-- | apps/fparkan-game/src/script_coverage.rs | 8 |
1 files changed, 8 insertions, 0 deletions
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}"); } |
