aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/autodemo.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-11-26 02:53:21 +0300
committerValentin Popov <valentin@popov.link>2026-11-26 02:53:21 +0300
commit0a4aada114bdcce5dba69bdbb88fa0ed44cf6733 (patch)
tree12ff566b90efe140c628eae5f82b3134e18662b1 /crates/fparkan-runtime/src/autodemo.rs
parentd92cde8b7209b83572aeabd5dab657149ed78d99 (diff)
downloadfparkan-0a4aada114bdcce5dba69bdbb88fa0ed44cf6733.tar.xz
fparkan-0a4aada114bdcce5dba69bdbb88fa0ed44cf6733.zip
fix(movement): use profile requests for scripted Go speed
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.
Diffstat (limited to 'crates/fparkan-runtime/src/autodemo.rs')
0 files changed, 0 insertions, 0 deletions