<feed xmlns='http://www.w3.org/2005/Atom'>
<title>fparkan/crates/fparkan-runtime/src/script_time.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-25T16:14:25+00:00</updated>
<entry>
<title>fix(ai): start player and clan cycles on the first update</title>
<updated>2026-11-25T16:14:25+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-25T16:14:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=5cc5602b3fa42e5864d205a1c42c895504038b10'/>
<id>urn:sha1:5cc5602b3fa42e5864d205a1c42c895504038b10</id>
<content type='text'>
Fresh AI contexts enter their first cycle immediately, including the player
context with an empty Problems0. Share their logical clock with Mission
timeouts and registration notifications. The stock original confirms the
first Mission callback sees zero before the first AI cycle.

Run the player Problems0 path and support TAKE_ALL_BATTLE_UNITS: preserve
reserved and same-kind assignments, take warbots from other combat tasks.
Native ai.dll calls verify recruitment and the initial shared RNG draws.

Validation: workspace fmt/check/tests, release build, licensed stock-clock
test, all 29 stock missions at --sim-report 900 without script stops, and
stock mission windows 28 and 20. Full AI chronology, native occupancy and
remaining RNG consumers are still approximate.
</content>
</entry>
<entry>
<title>feat(script): evaluate scenario deadlines and timeout tests</title>
<updated>2026-11-14T16:16:15+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-14T16:16:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=f61cc5fd7dda6a76b843b36013795f52b03fae7e'/>
<id>urn:sha1:f61cc5fd7dda6a76b843b36013795f52b03fae7e</id>
<content type='text'>
Handler(59) stores a DWORD deadline in Init or Mission. Handler(60) compares it strictly against the current scenario clock. The original ai.dll confirms overflow and the equality boundary. Mission 16 now reaches its scheduled message.
</content>
</entry>
</feed>
