Skip to content

Leave UltraSpeedBoost off at startup; boost Ultrafast playback per run - #13

Open
s1f102500012 wants to merge 1 commit into
pardeike:mainfrom
s1f102500012:ultrafast-boost-opt-in
Open

s1f102500012 wants to merge 1 commit into
pardeike:mainfrom
s1f102500012:ultrafast-boost-opt-in

Conversation

@s1f102500012

Copy link
Copy Markdown

With RimBridgeServer installed, TickManager.UltraSpeedBoost is switched on at startup and stays on, so speed 4 changes for normal play too: vanilla Ultrafast jumps to the debug rate, and mods that mirror vanilla's boost branch (e.g. Smart Speed, where a configured 15x becomes 150x) multiply their own rate. Players who only have the mod installed for occasional agent sessions see this without asking for it — similar to the camera zoom extension in #4.

This keeps the boost for automation but scopes it to the runs that need it:

  • RimBridgeStartup no longer sets UltraSpeedBoost.
  • play_for and play_until_letter turn the boost on when the requested speed is Ultrafast (or forceRequestedSpeed is set) and restore the previous value afterwards, including on the failure path. Other speeds leave the flag untouched.
  • set_time_speed with ultraSpeedBoost still sets it explicitly for the session.
  • Tool descriptions and the README playback note are updated; docs/tool-reference.md and the README tool surface are regenerated.

Testing:

  • scripts/build-mod.sh --test: build ok, 212 tests pass.
  • Live check over GABP against a running game (quicktest map), before vs after:
2.3.0 this branch
UltraSpeedBoost right after startup true false
play_for Normal, 1.5 s flag stays true flag untouched (false)
play_for Ultrafast, 1.5 s 8720 ticks, flag still true after 6886 ticks, flag restored to false
set_time_speed with ultraSpeedBoost true/false works works

The live check ran on the RimWorld 1.7 unstable branch (that is the build I have locally), not on 1.6.

… run

The flag is process-wide, so enabling it at startup also changed speed 4 for normal play and for mods that mirror vanilla's boost branch. play_for and play_until_letter now enable it for Ultrafast (or forceRequestedSpeed) runs and restore the previous value afterwards.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant