<feed xmlns='http://www.w3.org/2005/Atom'>
<title>fparkan/crates/fparkan-runtime/src/clan_script_init.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-25T13:24:57+00:00</updated>
<entry>
<title>feat(ai): load clan research candidates during Init</title>
<updated>2026-11-25T13:24:57+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-25T13:24:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=593e38ba45fc7d28e28bdcc0fa8020a6c62deac0'/>
<id>urn:sha1:593e38ba45fc7d28e28bdcc0fa8020a6c62deac0</id>
<content type='text'>
Handle the no-result Handler(43) by loading direct AI DAT candidates and
running the recovered selector against the clan's TRF. Keep the catalog and
its context alive per clan. Share catalog enumeration with transport selection.

Match the stock NTFS name order, including underscore placement. A fresh
Single.02 run of the original supplied 77 ordered entries, status bytes and
selected index 60 (swelbld1.dat); the licensed regression matches that state.
Both captured and installed ai.dll match the documented GOG SHA-256.

Keep paid laboratory work, extended candidate metadata and Handler(69)
explicitly stubbed. The report exposes loaded catalogs separately from those
remaining gaps. A loading failure retains an indexed Init stub.

Validate workspace fmt/check/tests, licensed live-catalog comparison, all
29 stock missions at 900 seconds without stops or Handler(43) load failures,
and mission 29 in a Vulkan-validation window.
</content>
</entry>
<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): select enemy buildings beyond the clan base radius</title>
<updated>2026-11-14T18:57:44+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-14T18:57:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=a25aa2959dbac4d0f2a91299de16e12f492699f3'/>
<id>urn:sha1:a25aa2959dbac4d0f2a91299de16e12f492699f3</id>
<content type='text'>
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.
</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>fix(script): report the uncovered generator search order</title>
<updated>2026-11-14T16:54:11+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-14T16:54:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=e5e9f2a8ddc41f0e1af0e1ada5c1da669d40ceb0'/>
<id>urn:sha1:e5e9f2a8ddc41f0e1af0e1ada5c1da669d40ceb0</id>
<content type='text'>
Recognize the stock generator search order as an explicit stub and continue immediately. Mission 13 now completes clan initialization; searching for and capturing a generator still needs the native task.
</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>fix(script): continue Init past the uncovered AI setting</title>
<updated>2026-11-14T16:44:49+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-14T16:44:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=0e8d4df52cb11185cc9962f5cab0077246605a8b'/>
<id>urn:sha1:0e8d4df52cb11185cc9962f5cab0077246605a8b</id>
<content type='text'>
Handler(69) writes an AI field for nonnegative DWORD operands. Until its consumer is modeled, the observed form is counted as a stub. Mission 10 now runs the subsequent shutdown and patrol orders and finishes clan Init.
</content>
</entry>
<entry>
<title>fix(script): continue clan Init past the base area stub</title>
<updated>2026-11-14T16:37:07+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-14T16:37:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=7b04b7760373ee8d86f5652b1bd2914a8ee2db79'/>
<id>urn:sha1:7b04b7760373ee8d86f5652b1bd2914a8ee2db79</id>
<content type='text'>
Accepts the observed float form of Handler(68) through a reported gameplay stub. Mission 8 now executes its reservations and reaches the next robot order.
</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): reserve placed units for scenario orders</title>
<updated>2026-11-14T16:20:27+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-14T16:20:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=71ae57fb95805e6262aa70fc4890dcad91ab3ea1'/>
<id>urn:sha1:71ae57fb95805e6262aa70fc4890dcad91ab3ea1</id>
<content type='text'>
Handler(51) changes availability in the owning clan, matching a direct ai.dll call. Reserved units stay out of the free capturer query. Campaign mission 7 now finishes Init and mission 13 reserves the addressed unit.
</content>
</entry>
</feed>
