<feed xmlns='http://www.w3.org/2005/Atom'>
<title>fparkan/crates/fparkan-runtime/src/patrol_speed.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-25T23:53:21+00:00</updated>
<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>feat(combat): feed weapon charge from Control energy budgets</title>
<updated>2026-11-25T21:38:43+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-25T21:38:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=8ac763f7bfda827016d17c66372d02b85d5a9bb5'/>
<id>urn:sha1:8ac763f7bfda827016d17c66372d02b85d5a9bb5</id>
<content type='text'>
Keep factory-2/30 charge in the owner's Control table. AI and player banks
read it before firing, debit completed shots and wait for regeneration.
Preserve one charge across bank changes and accumulate energy waits by
object, including an idle bank publishing after an active bank.

Mobile owners now run the resource budget. Restore the shared factory-1
callbacks, factory-2/30 charging and factory-10 passive upkeep. Factory 30
uses the weapon constructor's native disabled default. Motion demand is
still an explicit zero-rate stub; unsupported budgets disable charge
limiting for that owner and record the reason.

Execute unmodified GOG Control.dll callbacks at RVA 0x29a40/0x29a90,
0x264b0/0x26510 and 0x21860/0x21890; check the common constructor at
0x294c0. Rust golden vectors cover disabled refill, zero capacity,
negative charge and x87 rounding at control word 0x007f.
SHA-256: bcb86318089028548a178b03a21accdce15df0cc85ddd91674cf3c2f55012c6e.

Validated fmt, workspace check/tests, release, licensed shared-bank charge
exhaustion/recovery, stock combat and damaged-profile regressions. All 29
stock missions reached 900 seconds; the only mobile-budget stub was the
known motion input. Observed stock window combat and replenishment.
Full live native mission comparison and motion energy remain open.
</content>
</entry>
<entry>
<title>fix(control): refresh motion limits after node damage</title>
<updated>2026-11-25T20:57:43+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-25T20:57:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=530afea388f4e487a5a1320381c59e7d217717d8'/>
<id>urn:sha1:530afea388f4e487a5a1320381c59e7d217717d8</id>
<content type='text'>
Run the supported dirty Control profile branch on the resource clock,
before the existing factory/laboratory budget pass. Mobile owners now
participate in these clocks. Root hits reduce the drive's current E00
value and the next place-patrol speed request uses the updated limit.
Keep mutable node-group means and publish profile words atomically.

Move FCA0 projection into control_profile rather than extending lib.rs.
Count clock checks, publications and unsupported updates per object;
alarm damage, activation and mobile device budgets remain explicit gaps.

Native Control.dll RVA 0x12a40 -&gt; 0xfca0 confirms mean retention,
clean-call behavior and the healthy-critical-group branch that bypasses
the aggregate threshold. Golden outputs are covered by Rust tests.
SHA-256: bcb86318089028548a178b03a21accdce15df0cc85ddd91674cf3c2f55012c6e.

Validated fmt, workspace check/tests, release, licensed stock damage,
combat and patrol regressions, plus all 29 stock missions for 900 seconds
without new profile-update stops. Stock window AI hits change limits.
The additional live native interception yielded no usable sample;
its supported calculation branches were executed directly in the DLL.
</content>
</entry>
<entry>
<title>fix(patrol): request place patrol speed from Control limits</title>
<updated>2026-11-25T20:31:54+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-25T20:31:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=2d7c17b13b0dc2e4a4712fee25aa8f06161a141b'/>
<id>urn:sha1:2d7c17b13b0dc2e4a4712fee25aa8f06161a141b</id>
<content type='text'>
Unengaged PatrolPlace movement uses current owner-profile word 7 times
0.8 instead of one fixed speed for every chassis. Preserve a counted
fallback for unavailable profiles and report per-object speed samples.
The profile is projected at load time; runtime updates, acceleration,
turning and speeds of other orders remain approximate.

Confirmed the current-profile selector by executing GOG Behavior.dll
RVA 0x1bbe0. A live request at RVA 0x2dc67 maps limit 0x416b55d8
and factor 0x3f4ccccd to 0x413c44ad, covered by a Rust regression.
Behavior.dll SHA-256:
ddfbdbde07832358fe6e35e01c8dba9b58e7313789498b6049ed51d4ed9baf99.

Validated fmt, workspace check/tests, release build, licensed stock
profile and patrol-list tests, and all 29 stock missions for 900 seconds.
Observed stock AutoDemo movement, combat and replenishment in the window;
this does not establish full native movement or opening chronology parity.
</content>
</entry>
</feed>
