aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/clan_targeting.rs
Commit message (Collapse)AuthorAgeFilesLines
* feat(ui): send warbots to recharge from the strategic panelValentin Popov3 days1-4/+5
| | | | Verify LTW-3 approaches the generator and clears its recharge status after leaving from the stock Two Fortresses start. Reuse authored building passages and shared Control replenishment, with a licensed test for refilling an empty magazine.
* fix(ai): resume building capture after losing its assigneeValentin Popov4 days1-8/+14
|
* fix(ai): dispatch building loss to the former clanValentin Popov4 days1-0/+15
|
* fix(ai): rank capturers by Control travel timeValentin Popov8 days1-6/+31
| | | | The Handler(14) oracle executes ai.dll with the real Control selector 0x91 and verifies faster distant candidates, the one-second bias and the minimum speed. Use the same current forward limit in the stock capture query. Original roster ordering and task preemption remain approximate.
* fix(ai): avoid closed hallway links when routing capturersValentin Popov9 days1-2/+2
| | | | | | The original GOG ArealMap.dll gate at RVA 0x9cb0 accepts an all-ones mask without a device and rejects zero. Confirmed both returns by a direct DLL call. Filter unsupported links while searching from the communicator, so a shorter closed route cannot shadow an accessible entrance. The stock Two Fortresses 900-second run no longer records capture approach stubs. Its AI takes the mine via the authored gallery, with the ownership change also reproduced in the Vulkan window. Symmetric CTLD door behavior is preserved.
* fix(ai): follow capture passages through building doorsValentin Popov9 days1-13/+22
| | | | A stock Two Fortresses run now takes the generator after the capturer descends its authored hallway. Symmetric Res17 door links drive the CTLD animation and unsupported routes retain explicit coverage. Checked the approach and descent in the game window with Vulkan validation and verified the owner transfer in a licensed test.
* fix(ai): route capturers to authored building entrancesValentin Popov9 days1-14/+22
|
* feat(ai): select convoy targets using original class queriesValentin Popov10 days1-1/+1
| | | | | | | | | | | | | | | | | | | Connect Handler(71) to least-defended hostile buildings of the requested class and Handler(72) to the object's prototype size class. The stock Convoy script now assigns its delayed attack instead of stopping at these queries. Keep descriptor binding, guard strength and candidate order explicit approximations with coverage counters. Execute the original ai.dll handlers and Behavior.dll class getter in native oracles, including strict radius, ties, missing objects and name classes. Add a Rust class rule test and a licensed stock-start test for the delayed attack; check owner independence separately with a debug change after the stock assertion. Validate fmt, workspace check/tests, licensed test, release simulation and the running mission with Vulkan validation. Accelerated scene time is a mechanic check, not mission-completion acceptance. Handler(30) message dispatch remains the next Convoy script stop.
* feat(ai): evaluate scripted area defence strengthValentin Popov10 days1-8/+20
| | | | | | Execute Handler(44) for XY and logical-object targets, an explicit clan or hostile clans. Reuse the strict horizontal radius calculation and report approximate query counts by clan, event and instruction. Direct GOG AI DLL calls cover target forms, DWORD coordinates, clan filtering, missing targets and the radius boundary. A stock mission regression runs the query through the script dispatcher. Five affected missions complete 900 simulated seconds, with the remaining point-group selection failures exposed explicitly. Mission 10 ran in the window with clean Vulkan validation. Workspace formatting, checking and tests pass.
* feat(ai): guard the least defended clan buildingValentin Popov10 days1-6/+61
| | | | | | Execute Handler(37) from the live clan roster, rank nearby guard strength and feed the existing protection scheduler. Keep the native strict 250-unit radius, first tie and empty-roster sentinel. Count approximate selections by clan and target in simulation reports. The GOG AI handler was called directly for weak buildings, equal strength, the radius boundary and an empty roster. Stock missions 8, 9 and 10 now assign guard patrols before reaching the next explicit script blocker. Mission 9 ran in the window with clean Vulkan validation. The existing factory protection regression and workspace checks pass.
* feat(ai): evaluate factory guards and threats to the baseValentin Popov2026-11-141-23/+151
| | | | Single.01 reaches the end of Problems0 and enters its building protection and construction jobs. Confirm radius boundaries, first-factory order, hero priority and duplicate exclusion via GOG ai.dll. Unavailable building upgrades log a stub and return no eligible target.
* feat(ai): select enemy buildings beyond the clan base radiusValentin Popov2026-11-141-4/+91
| | | | Connect the initial radius limit and Handler(64) target lookup. Compare target IDs with an isolated GOG ai.dll call at RVA 0xe8e7. Campaign branches still depend on their original timers and free-mind conditions.
* feat(ai): route capturing robots to building communicatorsValentin Popov2026-11-141-38/+69
| | | | Use the communicator triangles as an explicit approximation to the building approach. Share ownership and distributor transfer with player capture. Single.01 reaches the target XY in terrain routing, with the interior height gap still blocking transfer. The capture check rejects the wrong floor.
* feat(ai): send scripted capturers toward hostile buildingsValentin Popov2026-11-141-1/+125
| | | | Single.01 dispatches its placed warbot and later factory robots from stock startup. Approach uses the shared movement task. Ownership transfer, native approach points and the script completion expressions remain open.
* feat(ai): select targets for scripted capture requestsValentin Popov2026-11-141-0/+94
Confirm the target ranking, duplicate exclusion and strength output with GOG ai.dll at RVA 0xc847. Single.01 reaches PBM_BUILDING_CAPTURE from its stock start. The executor selection remains pending.