<feed xmlns='http://www.w3.org/2005/Atom'>
<title>fparkan/apps/fparkan-game/src/script_coverage.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-26T08:41:29+00:00</updated>
<entry>
<title>chore(coverage): label shared route motion as approximate</title>
<updated>2026-11-26T08:41:29+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-26T08:41:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=56abb3e3362f77a434ce55716891e5fca16b9070'/>
<id>urn:sha1:56abb3e3362f77a434ce55716891e5fca16b9070</id>
<content type='text'>
Use the same coverage label in runtime logs and simulation reports. Document the observed idle warbot handler and the parts of native locomotion still open. The stock AutoDemo keeps the same first shot and destruction times.
</content>
</entry>
<entry>
<title>fix(movement): carry frame time across route waypoints</title>
<updated>2026-11-26T00:54:04+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-26T00:54:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=683d970343383d63eeb22219080c190769f888b1'/>
<id>urn:sha1:683d970343383d63eeb22219080c190769f888b1</id>
<content type='text'>
Route following now spends the same frame interval on turning and all reachable waypoints. Go, Patrol and pursuit keep their existing speeds and share this step. Stop counting the obsolete per-waypoint time loss.

Verified with the corner route regression, workspace checks, release AutoDemo in a window, and two-minute AutoDemo and Single.01 smoke runs. Obstacle avoidance, locomotion animation and comparison with the original remain open.
</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>feat(diagnostics): count unit motion gaps by object</title>
<updated>2026-11-25T23:25:58+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-25T23:25:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=d92cde8b7209b83572aeabd5dab657149ed78d99'/>
<id>urn:sha1:d92cde8b7209b83572aeabd5dab657149ed78d99</id>
<content type='text'>
Track temporary-controller updates and frame time discarded at waypoint boundaries for each object slot, generation and original TMA ID. Preserve completed/dead object records, expose them in --sim-report, and print the same counters when the game window closes. Movement and RNG decisions are unchanged.

A bounded Ghidra inspection identifies Go at Behavior.dll RVA 0x2b670 and the MWalker empty-state helper at 0x3dd80. Restoring the MWalker/Control handoff remains open; no fixed-step or remainder-carry rule is substituted for native behavior. Document this explicit stub and bind the addresses to the verified GOG module hash.

The licensed stock AutoDemo test first failed with empty observations and now reports actual controller updates and nonzero discarded time. A normal 91-second window run also emits per-generation totals after closure. All 29 stock --sim-report 900 runs preserve the preceding commit's world and combat summaries. At 60 Hz, AutoDemo's largest recorded loss for a single object lifetime is 492516 us; losses are observations of FParkan, not original-game timings.

Validation: cargo fmt --all -- --check; cargo check --workspace; cargo test --workspace; release build; focused unit and ignored licensed-stock tests; stock AutoDemo window; all 29 mission coverage runs. The native movement solver and original chronology are not accepted by this diagnostic change.
</content>
</entry>
<entry>
<title>feat(diagnostics): retain combat chronology and failures by object</title>
<updated>2026-11-25T21:59:10+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-25T21:59:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=8a0f8a449dc3b80c5348c60b54982a71a45b0da2'/>
<id>urn:sha1:8a0f8a449dc3b80c5348c60b54982a71a45b0da2</id>
<content type='text'>
Collect shot and destruction counts with first/last mission clocks in the
shared window and headless combat loop. Preserve original IDs and slot
generations after deletion, including projectiles whose shooter has died.
Count preparation, launch, pose and impact failures by object and cause;
separate an unavailable damage result from an error and log its first target.

Validation: workspace fmt/check/tests, release build, licensed stock AutoDemo
through its first destruction, and stock AutoDemo in the window. All 29 stock
900-second simulation summaries and first-event times match the prior build.
Rechecked missions 8 and 19 after separating damage result categories.
Window/headless first shots were 18404/18533 ms and first kills 25947/25933 ms.

The report exposes UnsupportedNodeLifecycle on the factory root in mission 19
and unavailable damage results on building nodes in mission 8. Their behavior
is unchanged. Original five-minute chronology and broader G7 acceptance remain
open; this diagnostic task identifies concrete runtime paths for further work.
</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>
<entry>
<title>fix(patrol): use native cyclic PatrolPlace point batches</title>
<updated>2026-11-25T20:12:41+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-25T20:12:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=3732b97e0393de323f26f750083f556b16ff6b9d'/>
<id>urn:sha1:3732b97e0393de323f26f750083f556b16ff6b9d</id>
<content type='text'>
Generate 15-19 goals with Behavior's two random streams, reject candidates
within 100 units of map edges, and retain the cyclic list until the native
20-second plus 10-second jitter timer expires. Draw coordinate and timer
randomness from the shared Behavior CRT stream rather than a patrol-local
copy. Cache chassis CanFly for autonomous checks and reuse the player parser.

Keep per-object counts of batches, goals, approximate area checks and missing
inputs. The generator's initial seed, owner update order, ground walkability
and physical movement remain explicit approximations.

Verified native Behavior.dll RVA 0x2dd90 by x86 invocation at CW 0x007f,
including edge rejection, and captured a matching batch in live AutoDemo.
Rust golden vectors match all goals, RNG states and deadlines. Workspace
fmt/check/test and licensed patrol, combat and clan-clock regressions pass.
All 29 stock missions reach --sim-report 900 with no script interruptions or
new missing patrol inputs. Observed the change in a stock AutoDemo window.
This does not establish full G7 chronology or G8 movement parity.
</content>
</entry>
<entry>
<title>fix(combat): launch AI projectiles from mounted weapon CPTs</title>
<updated>2026-11-25T19:42:11+00:00</updated>
<author>
<name>Valentin Popov</name>
<email>valentin@popov.link</email>
</author>
<published>2026-11-25T19:42:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.popov.link/fparkan/commit/?id=6f746b8e31de323a55e2a47d8117faca2aa93a50'/>
<id>urn:sha1:6f746b8e31de323a55e2a47d8117faca2aa93a50</id>
<content type='text'>
Resolve weapon node poses and EXTO socket chains on the CPU, replace each
mounted component root with its socket, and transform the selected CPT into
the world. Test terrain sight lines from each barrel rather than the hull.
Share initial Control pose sampling with the window renderer. Count missing
mounts and animation fallbacks by original object ID without losing history
when an object dies.

Checked Control.dll RVA 0x1b4f0 by native invocation, including nonuniform
scale and a rotated world matrix. cargo fmt/check/test workspace pass, as do
licensed stock AutoDemo and scripted patrol/factory regressions. All 29
stock missions reach --sim-report 900 with no script interruption or weapon
pose fallback. Both games were observed in stock AutoDemo windows.

AI turret aim, recoil and first-shot chronology remain approximate; this
change does not establish full G7 or G8 gameplay parity.
</content>
</entry>
</feed>
