<feed xmlns='http://www.w3.org/2005/Atom'>
<title>fparkan/crates/fparkan-runtime/src/unit_spawn.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-12-02T07:09:58+00:00</updated>
<entry>
<title>feat(ui): select units from the strategic warbot roster</title>
<updated>2026-12-02T07:09:58+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-12-02T07:09:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=5f0b8c076b40f8eca67e2745367c731f803914f4'/>
<id>urn:sha1:5f0b8c076b40f8eca67e2745367c731f803914f4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(movement): use profile requests for scripted Go speed</title>
<updated>2026-11-25T23:53:21+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-25T23:53:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=0a4aada114bdcce5dba69bdbb88fa0ed44cf6733'/>
<id>urn:sha1:0a4aada114bdcce5dba69bdbb88fa0ed44cf6733</id>
<content type='text'>
Scripted Go used a fixed speed of 9. Feed the temporary movement controller with the current Control forward limit multiplied by the loaded Behavior Go_SpeedPercent. Missing coefficients retain the native constructor default of 1; present VAR records use the first matching row's applied value. Rebind a produced unit's Behavior profile to its new full handle so the request remains available after spawning.

Share Go and PatrolPlace speed sampling in unit_speed.rs while retaining the patrol coefficient of 0.8, and move profile-loading mechanics out of lib.rs into behavior_profile.rs. Reports distinguish Go and patrol samples and keep explicit fallbacks for unresolved inputs.

An unmodified GOG Behavior.dll oracle executes the native profile constructor, current-profile getter and both Go start/update paths under x87 0x007f. A hardware breakpoint records the request before the MWalker call. It confirms default, fractional and zero vectors, including the stock request 0x41e52e74 (28.647682). This is requested-speed evidence; MWalker caching, acceleration, routing and physical integration remain explicit approximations.

The licensed stock mission-19 test first failed because Go never requested its Control speed, then passed with the original robot at the stock start. Existing patrol and newly produced-unit profile tests also pass. In the stock game window the raid fires at 190671 ms instead of the preceding build's roughly 327 seconds, depletes the bunker root at 193620 ms, and completes both queued retreat Go orders before ShutDown. The hero stays at the starting position.

Validation: cargo fmt --all -- --check; cargo check --workspace; cargo test --workspace; release build; six focused/ignored runtime speed tests; native start/update vectors; all 29 stock --sim-report 900 runs with zero Go speed fallbacks or damage errors. World summaries remain unchanged. Full original movement and mission chronology are not accepted by this change.
</content>
</entry>
<entry>
<title>fix(ai): advance clan cycles when units register</title>
<updated>2026-11-25T15:41:17+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-25T15:41:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=85474bcd60f66b610985c90a697351837208528b'/>
<id>urn:sha1:85474bcd60f66b610985c90a697351837208528b</id>
<content type='text'>
Advance the signed AI deadline by 1400 ms when an active clan receives a
new unit. Connect production, construction, mines, reinforcements and
ownership transfers through the shared spawn path. Preserve negative
deadlines and count registration notifications per clan. Move the common
spawn code and result type out of AutoDemo without changing its public API.

Native ai.dll calls cover duplicate and missing IDs, the disabled guard,
both registration kinds, negative deadlines and unchanged RNG. A live
original warbot registration confirms the same advance. Workspace checks,
the licensed stock factory timing test and all 29 900-second reports pass;
a stock mission-28 window runs through successive factory outputs.
Initial clock phase, complete RNG ordering and full G7 chronology remain open.
</content>
</entry>
</feed>
