<feed xmlns='http://www.w3.org/2005/Atom'>
<title>fparkan/crates/fparkan-runtime/src/script_patrol.rs, branch trunk</title>
<subtitle>Utilities and tools for the game "Parkan: Iron Strategy".
</subtitle>
<id>https://git.popov.link/fparkan/atom?h=trunk</id>
<link rel='self' href='https://git.popov.link/fparkan/atom?h=trunk'/>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/'/>
<updated>2026-11-25T10:58:28+00:00</updated>
<entry>
<title>feat(ai): queue scripted movement and raid orders</title>
<updated>2026-11-25T10:58:28+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-25T10:58:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=44320618ae750da0ab10e50439bf74405b9eacba'/>
<id>urn:sha1:44320618ae750da0ab10e50439bf74405b9eacba</id>
<content type='text'>
Execute Go, Attack and ShutDown through one ordered queue from Init,
Mission and clan AI events. Append preserves the active task; replacement
clears its tail. Support the appended point patrol ending mission 19's
second raid, and count accepted commands by object and order type.

Execute the original ai.dll Handler(15) at RVA 0x8054 with its hash guard:
move, attack, shutdown and appended patrol reach the unit without a
current problem context, with native insertion modes and missing-unit
flag 5. Behavior.dll RVA 0x4280 identifies append and replace paths.
Native task completion and profile-dependent behavior remain approximate.

Test mixed queues, replacement and deferred patrol; run the licensed
mission-19 scenario from its stock start through its first movement.
Validate fmt, workspace check/tests, release build and all 29 missions
for 900 seconds. Mission 19 has both raid messages and no script stops;
mission 29's existing counter/construction stops remain. Check the live
stock-start window with normal clocks and Vulkan validation. This does
not establish mission completion or native movement/combat parity.
</content>
</entry>
<entry>
<title>feat(ai): dispatch scripted attacks against logical targets</title>
<updated>2026-11-14T16:58:58+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-14T16:58:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=77ab4031f5c140ae5bce4096abab0552a0675ef9'/>
<id>urn:sha1:77ab4031f5c140ae5bce4096abab0552a0675ef9</id>
<content type='text'>
Resolve the stock logical target and feed it to unit combat. Mission 20 assigns the attack at startup and continues through the remaining Init commands. All 29 original missions completed 15 minutes without a hard Init or periodic Mission stop.
</content>
</entry>
<entry>
<title>feat(ai): queue scenario move orders for mobile units</title>
<updated>2026-11-14T16:50:32+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-14T16:50:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=c38fb66d2b2dfed3a7eb748914a3e2d9f9871768'/>
<id>urn:sha1:c38fb66d2b2dfed3a7eb748914a3e2d9f9871768</id>
<content type='text'>
Runs the stock order sequence in mission 16. Both mobile headquarters receive five destinations in script order. Movement uses existing terrain routing until the native Go task is wired.
</content>
</entry>
<entry>
<title>feat(ai): patrol around script-selected objects</title>
<updated>2026-11-14T16:41:29+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-14T16:41:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=2420e84d82cc1afdafc70882e51d4482dcdaad5b'/>
<id>urn:sha1:2420e84d82cc1afdafc70882e51d4482dcdaad5b</id>
<content type='text'>
Uses the TMA logical ID to route a warbot around the current position of a building or unit. The original Behavior.dll confirms target class selection and radius. Mission 13 now assigns building patrols at stock startup.
</content>
</entry>
<entry>
<title>feat(ai): honor scenario warbot shutdown orders</title>
<updated>2026-11-14T16:33:41+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-14T16:33:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=071ec6a8619c9dfd37582c56dd97108aae3e6c6e'/>
<id>urn:sha1:071ec6a8619c9dfd37582c56dd97108aae3e6c6e</id>
<content type='text'>
Behavior.dll task dispatch selects ShutDown for order 0x13. Stop autonomous motion and fire until a new supported order is assigned. The field-camp clan now completes Init and all three placed warbots receive the shutdown order.
</content>
</entry>
<entry>
<title>feat(ai): issue scripted place patrols from clan Init</title>
<updated>2026-11-14T16:11:32+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-14T16:11:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=38cd46123518136222473662df409f78cc63584b'/>
<id>urn:sha1:38cd46123518136222473662df409f78cc63584b</id>
<content type='text'>
Handler(15) читает живые клетки и направляет размещённого варбота в указанную точку. Кампания 01, миссия 02 при штатном старте ставит четыре патруля и продолжает Init до Handler(51).
</content>
</entry>
</feed>
