fix(game): Skip title screen off shows the title again when the launcher remembers a save #3067

Merged
HumanBean merged 2 commits from HumanBean/Longshot:fix/skip-title-default into main 2026-12-03 14:34:51 +00:00
Owner

Summary

A player reported that the latest nightly put them straight into their last saved game, with Skip title screen off.

Cause. The Longshot Launcher writes start_slot into the profile's profile.json whenever a player picks a save in its Players list, and the save stays there for every later launch. The builder passes it to the game as HOS_START_SLOT on every start. Before the mod API (#2822), the game never read HOS_START_SLOT, so the title screen showed unless the Skip title row was on. Since #2822, api::title_skip::arm starts the skip when HOS_START_SLOT is set, even with the row off. So any player who has picked a save in the launcher now skips the title on every start.

Fix. The skip starts only while the Skip title screen row (the mod's system.titleSkip toggle) is on. The launcher's slot now only chooses which save that skip starts in. The Skip title mod's script no longer watches for the skip with the row off. The docs and comments that said the slot is followed with the row off now say the opposite.

How to see it on main: in the launcher, pick a save in the Players list. Leave Skip title screen off. Start the game: it loads that save with no title screen.

Read first: game/crates/api/src/title_skip.rs (arm and the new test), then game/mods/skip-title/src/main.ts.

Testing

Tested: Linux, RTX 3090. In the game (headless, rt of 86349506, a throwaway profile with start_slot slot_00, the repository save kokiri-start): with Skip title screen off the title screen shows and no skip title: line is logged; with it on the log says skip title: starting in slot_00 and the run is in play in Kokiri Forest. The old ini line skip_title_screen=0 migrates to off. Not shown: the picked slot winning over a newer save (only one save existed). tests/run_all.py on both bug-fix branches together: 868 passed, 12 skipped, 3 failed, none from these changes: test_vk_wb_cpu_words_fast and test_i18n_complete (fails on main; #3065) and test_lifter (fails on main).

Still to test:

  • This PC, in the game, with a profile whose profile.json has a start_slot (pick a save in the launcher): with Skip title screen off, expecting the title screen; with it on, expecting a start in the picked slot, not the newest (by hand)
  • Not checked: whether migrating the old longshot_options.ini could turn Skip title screen on for a player who had it off. This PR does not change the migration (by hand: a profile with an old ini holding skip_title_screen=0, start once, check settings.toml and the title screen)

Measurements

Nothing to measure: this changes only whether a start skips the title screen.

Risks

A launcher flow that meant "start this save now" with the row off no longer skips the title. The player picks the save on the title screen's file list instead, as before #2822. A revert is enough to undo this. Nothing changes in saves or settings.toml.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says. (headless runs, off and on)
  • mise run test passes (any failure that also fails on main is named). (tests/run_all.py on both bug-fix branches together: 868 passed, 12 skipped, 3 failed, none from these changes: test_vk_wb_cpu_words_fast and test_i18n_complete (fails on main; #3065) and test_lifter (fails on main).)
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here. (With the old arm condition put back, a_launcher_slot_with_the_toggle_off_arms_no_skip fails; with the fix it passes.)
  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

https://claude.ai/code/session_017vw8e2fJhRpDrY7pgVx6oJ

## Summary A player reported that the latest nightly put them straight into their last saved game, with Skip title screen off. **Cause.** The Longshot Launcher writes `start_slot` into the profile's `profile.json` whenever a player picks a save in its Players list, and the save stays there for every later launch. The builder passes it to the game as `HOS_START_SLOT` on every start. Before the mod API (#2822), the game never read `HOS_START_SLOT`, so the title screen showed unless the Skip title row was on. Since #2822, `api::title_skip::arm` starts the skip when `HOS_START_SLOT` is set, even with the row off. So any player who has picked a save in the launcher now skips the title on every start. **Fix.** The skip starts only while the Skip title screen row (the mod's `system.titleSkip` toggle) is on. The launcher's slot now only chooses which save that skip starts in. The Skip title mod's script no longer watches for the skip with the row off. The docs and comments that said the slot is followed with the row off now say the opposite. **How to see it on main:** in the launcher, pick a save in the Players list. Leave Skip title screen off. Start the game: it loads that save with no title screen. Read first: `game/crates/api/src/title_skip.rs` (`arm` and the new test), then `game/mods/skip-title/src/main.ts`. ## Testing **Tested:** Linux, RTX 3090. In the game (headless, `rt` of 86349506, a throwaway profile with `start_slot` `slot_00`, the repository save `kokiri-start`): with Skip title screen off the title screen shows and no `skip title:` line is logged; with it on the log says `skip title: starting in slot_00` and the run is in play in Kokiri Forest. The old ini line `skip_title_screen=0` migrates to off. Not shown: the picked slot winning over a newer save (only one save existed). `tests/run_all.py` on both bug-fix branches together: 868 passed, 12 skipped, 3 failed, none from these changes: `test_vk_wb_cpu_words_fast` and `test_i18n_complete` (fails on `main`; #3065) and `test_lifter` (fails on `main`). **Still to test:** - This PC, in the game, with a profile whose `profile.json` has a `start_slot` (pick a save in the launcher): with Skip title screen off, expecting the title screen; with it on, expecting a start in the picked slot, not the newest (by hand) - Not checked: whether migrating the old `longshot_options.ini` could turn Skip title screen on for a player who had it off. This PR does not change the migration (by hand: a profile with an old ini holding `skip_title_screen=0`, start once, check `settings.toml` and the title screen) ## Measurements Nothing to measure: this changes only whether a start skips the title screen. ## Risks A launcher flow that meant "start this save now" with the row off no longer skips the title. The player picks the save on the title screen's file list instead, as before #2822. A revert is enough to undo this. Nothing changes in saves or `settings.toml`. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. *(headless runs, off and on)* - [x] `mise run test` passes (any failure that also fails on `main` is named). *(`tests/run_all.py` on both bug-fix branches together: 868 passed, 12 skipped, 3 failed, none from these changes: `test_vk_wb_cpu_words_fast` and `test_i18n_complete` (fails on `main`; #3065) and `test_lifter` (fails on `main`).)* - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A fix: a game-free test that fails on `main` and passes here. *(With the old `arm` condition put back, `a_launcher_slot_with_the_toggle_off_arms_no_skip` fails; with the fix it passes.)* - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017vw8e2fJhRpDrY7pgVx6oJ
fix(game): Skip title screen off shows the title again when the launcher remembers a save
Some checks failed
CI / What the change needs (pull_request) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Successful in 12s
PR description / Title and description (pull_request_target) Successful in 7s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
8634950630
The launcher keeps the save a player last picked as the profile's start_slot,
handed to the game as HOS_START_SLOT on every start. Since the mod API (#2822)
the title skip armed on that slot alone, so a player with Skip title screen off
went straight into their save. The skip now arms only while the row is on; the
slot only picks the save.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e2fJhRpDrY7pgVx6oJ
Member

Possibly related, for context:

  • PR #399 feat(menu): skip the title screen and load the newest save — Original title-skip behavior this corrects
  • PR #2827 WIP: fix(sandbox): Windows: a confined start takes its profile's start slot: profile.json is read once the sandbox is in — Prior start-slot/title-skip interaction; closed, not merged
Possibly related, for context: - PR #399 feat(menu): skip the title screen and load the newest save — Original title-skip behavior this corrects - PR #2827 WIP: fix(sandbox): Windows: a confined start takes its profile's start slot: profile.json is read once the sandbox is in — Prior start-slot/title-skip interaction; closed, not merged
HumanBean changed title from WIP: fix(game): Skip title screen off shows the title again when the launcher remembers a save to fix(game): Skip title screen off shows the title again when the launcher remembers a save 2026-12-03 09:36:50 +00:00
BeanBot left a comment

Recommendation: Approve. The startup condition fixes the reported unwanted skip, but the new test shares mutable skip state with another parallel test and can make either test fail nondeterministically. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.

The title screen remains visible when its skip setting is off, even if the launcher remembers a save. When the setting is on, the remembered slot still selects the save; the change is small, but its new regression test needs isolation.

Should fix (2): not blocking, but worth doing before merging.

  • L1 game/crates/api/src/title_skip.rs:354: This test and the existing title-skip test mutate the same process-wide SKIP state without serializing their full sequences. (more on the line) Do: Serialize both tests with a shared test lock held for each entire sequence, or isolate the skip state per test.
  • L2 docs/dev/reference/switches.md:198: The related profile documentation still says that a profile starts on its start_slot without stating that the skip setting must be on. (more on the line) Do: Update the LONGSHOT_PROFILE row and profile reference to describe the toggle-dependent behavior.

Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)

  • L3: The launcher flow has not yet shown that the selected slot wins over a newer save when the setting is on. When: With two loadable saves and the launcher selecting the older one, the reported run used only one save, so it cannot show which slot the full launcher-to-game flow selects. Do: Run the launcher flow with two saves, select the older slot, and check both the title with the setting off and the selected save with it on; also complete the listed old-settings migration check.

@fix can do L1 and L2.

Checks: Still running: 11 checks.

More: does it help, other systems, switches, what was read

Does it help: Yes. The new game-free test exercises the old condition with a launcher slot and the toggle off, and the author reports a headless game run at 86349506 showing the title with the setting off and loading slot_00 with it on. The picked-slot-over-newest case has not been demonstrated in game.

Other systems: The change affects startup and the Skip title system mod on Windows and Linux, independently of GPU rendering. The author tested Linux; the launcher flow with two saves remains to be checked. Save selection and migration code are unchanged.

Switches: HOS_START_SLOT now selects a save only when Skip title screen is on; it no longer starts a skip by itself. The setting defaults to off, which matches the intended behavior. The switch table was updated, but other profile documentation still describes an unconditional start.

Reviewed: 8634950630 against 2ca7d4f741: Read the diff, commit, repository instructions, contribution rules, standards and pull request template; read the changed Rust and TypeScript paths and their startup callers, save selection, fake host and related tests. Skimmed generated modding documentation and the switch and profile references. The adjacent Tooling checkout and docs/review-checklist.md were unavailable; large unchanged documentation and the remainder of the repository were not read in full.; nothing run (a code review).

Checked and fine:

  • The new test would fail with the former arm condition restored.
  • The changed files contain no game-derived output or build artifacts, and the commit records AI assistance.
  • The changed schema description and generated reference agree; no renderer API or shader changes require a version bump or regeneration.

Testing: No commands from the project, builds or tests were run during this review. The author reports headless Linux game runs and a game-free test run; CI was still running.

Overlaps and merge order: Unknown; the network is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as HumanBean took it out of WIP. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The startup condition fixes the reported unwanted skip, but the new test shares mutable skip state with another parallel test and can make either test fail nondeterministically. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge. The title screen remains visible when its skip setting is off, even if the launcher remembers a save. When the setting is on, the remembered slot still selects the save; the change is small, but its new regression test needs isolation. **Should fix (2)**: not blocking, but worth doing before merging. - **L1** `game/crates/api/src/title_skip.rs:354`: This test and the existing title-skip test mutate the same process-wide SKIP state without serializing their full sequences. (more on the line) **Do:** Serialize both tests with a shared test lock held for each entire sequence, or isolate the skip state per test. - **L2** `docs/dev/reference/switches.md:198`: The related profile documentation still says that a profile starts on its start_slot without stating that the skip setting must be on. (more on the line) **Do:** Update the LONGSHOT_PROFILE row and profile reference to describe the toggle-dependent behavior. **Testing before merging (1)** (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation) - **L3**: The launcher flow has not yet shown that the selected slot wins over a newer save when the setting is on. *When:* With two loadable saves and the launcher selecting the older one, the reported run used only one save, so it cannot show which slot the full launcher-to-game flow selects. **Do:** Run the launcher flow with two saves, select the older slot, and check both the title with the setting off and the selected save with it on; also complete the listed old-settings migration check. `@fix` can do L1 and L2. **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes. The new game-free test exercises the old condition with a launcher slot and the toggle off, and the author reports a headless game run at 86349506 showing the title with the setting off and loading slot_00 with it on. The picked-slot-over-newest case has not been demonstrated in game. **Other systems:** The change affects startup and the Skip title system mod on Windows and Linux, independently of GPU rendering. The author tested Linux; the launcher flow with two saves remains to be checked. Save selection and migration code are unchanged. **Switches:** HOS_START_SLOT now selects a save only when Skip title screen is on; it no longer starts a skip by itself. The setting defaults to off, which matches the intended behavior. The switch table was updated, but other profile documentation still describes an unconditional start. **Reviewed:** 8634950630b3 against 2ca7d4f74182: Read the diff, commit, repository instructions, contribution rules, standards and pull request template; read the changed Rust and TypeScript paths and their startup callers, save selection, fake host and related tests. Skimmed generated modding documentation and the switch and profile references. The adjacent Tooling checkout and docs/review-checklist.md were unavailable; large unchanged documentation and the remainder of the repository were not read in full.; nothing run (a code review). **Checked and fine:** - The new test would fail with the former arm condition restored. - The changed files contain no game-derived output or build artifacts, and the commit records AI assistance. - The changed schema description and generated reference agree; no renderer API or shader changes require a version bump or regeneration. **Testing:** No commands from the project, builds or tests were run during this review. The author reports headless Linux game runs and a game-free test run; CI was still running. **Overlaps and merge order:** Unknown; the network is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as HumanBean took it out of WIP. Nothing was run; a maintainer decides.</sub>
@ -196,3 +196,3 @@
| `LONGSHOT_SAFE_START=1` | Set by `longshot-builder play --safe-start` for that play. The builder only passes it on; the Mod API's game side is to read it (no mod starts, and the Mods tab says why): this release's game does not read it yet. Environment only |
| `LONGSHOT_SHADER_CACHE=<folder>` | Keep the shader and pipeline caches (the prepared programs, the pipeline cache and its play files, the pipeline notes, the preparation's record, the driver's faults) in that folder instead of the game folder's `cache/`. longshot-builder sets it for the game it plays and for its shader preparation: `<the builder's cache>/shaders/<translator stamp>/<driver>/`, shared by every build of that translator on this driver ([where things are](build.md#where-things-are)). A whole path, made when missing. Environment only (`longshot_env.txt` cannot name a folder) |
| `HOS_START_SLOT` | Not a switch to set: the builder sets it in the game's environment at every start from the profile's `start_slot` (`build_core::game_env`), for the game's side (the Skip title mod starts in it, past the title screen: the engine's title skip, `api::title_skip`), and takes away one the environment or a file brought. A run that starts on a slot plays a profile whose `profile.json` names it |
| `HOS_START_SLOT` | Not a switch to set: the builder sets it in the game's environment at every start from the profile's `start_slot` (`build_core::game_env`), for the game's side (with Skip title screen on, the Skip title mod starts in it, past the title screen: the engine's title skip, `api::title_skip`), and takes away one the environment or a file brought. A run that starts on a slot plays a profile whose `profile.json` names it |
Member

L2 (should fix): The related profile documentation still says that a profile starts on its start_slot without stating that the skip setting must be on.

When: A developer reading the LONGSHOT_PROFILE row or the start-slot description in docs/dev/reference/profiles.md is told the remembered slot starts the game, although with the default setting off the title screen now appears.

Do: Update the LONGSHOT_PROFILE row and profile reference to describe the toggle-dependent behavior.

**L2** (should fix): The related profile documentation still says that a profile starts on its start_slot without stating that the skip setting must be on. *When:* A developer reading the LONGSHOT_PROFILE row or the start-slot description in docs/dev/reference/profiles.md is told the remembered slot starts the game, although with the default setting off the title screen now appears. **Do:** Update the LONGSHOT_PROFILE row and profile reference to describe the toggle-dependent behavior.
@ -347,0 +351,4 @@
/// for every run, and a player with the row off sees the title screen.
#[test]
fn a_launcher_slot_with_the_toggle_off_arms_no_skip() {
reset();
Member

L1 (should fix): This test and the existing title-skip test mutate the same process-wide SKIP state without serializing their full sequences.

When: Rust tests can run concurrently: after this test calls arm(false), the other test can call skip() and set SKIP to Refused before this test asserts None. Conversely, this test's reset or arm(true) can change the state between the other test's assertions.

Do: Serialize both tests with a shared test lock held for each entire sequence, or isolate the skip state per test.

**L1** (should fix): This test and the existing title-skip test mutate the same process-wide SKIP state without serializing their full sequences. *When:* Rust tests can run concurrently: after this test calls arm(false), the other test can call skip() and set SKIP to Refused before this test asserts None. Conversely, this test's reset or arm(true) can change the state between the other test's assertions. **Do:** Serialize both tests with a shared test lock held for each entire sequence, or isolate the skip state per test.
test(game): the title skip's tests take turns; docs: start_slot needs Skip title screen on
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Successful in 13s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 14s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m27s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 17m35s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 13m5s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 12m44s
CI / Website build and checks (pull_request) Failing after 36s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m5s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 51m45s
73a123bcbf
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e2fJhRpDrY7pgVx6oJ
Author
Owner

BeanBot's review, at 73a123bc:

  • L1 fixed: the two tests that ask for or reset the skip hold a shared lock for their whole sequence. cargo test -p api --lib title_skip: 3 passed.
  • L2 fixed: the LONGSHOT_PROFILE row, the profiles page and the build page now say start_slot is used only with Skip title screen on.
  • L3 still open: no run yet with two saves and the older one picked, or of the old-ini migration. Both stay in Still to test.

Since the headless run at 86349506, only tests and docs changed.

BeanBot's review, at 73a123bc: - **L1** fixed: the two tests that ask for or reset the skip hold a shared lock for their whole sequence. `cargo test -p api --lib title_skip`: 3 passed. - **L2** fixed: the `LONGSHOT_PROFILE` row, the profiles page and the build page now say `start_slot` is used only with Skip title screen on. - **L3** still open: no run yet with two saves and the older one picked, or of the old-ini migration. Both stay in Still to test. Since the headless run at 86349506, only tests and docs changed.
HumanBean deleted branch fix/skip-title-default 2026-12-03 14:34:51 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!3067
No description provided.