fix(crash): a crash with ray tracing on turns it off for the next start #3310

Merged
HumanBean merged 1 commit from HumanBean/Longshot:fix/rt-crash-off into main 2026-12-06 04:50:38 +00:00
Owner

When the game crashes with ray tracing on, the builder now takes the ray tracing rows and the preset out of the run's settings.toml, so the next start has ray tracing off. The player turns it on again in the menu.

  • builder/crates/crash/src/safe.rs: removes ray_tracing_preset and the rt_* rows from the ["system/graphics"] table (a setting at its default has no line, so Off is the absence of them). Other tables, other rows and rt_reflections_roughness stay.
  • after_run calls it on a Crash verdict only (not an unclean end, so a kill or out-of-memory end keeps the settings), and prints one line saying so.
  • A row set only for the run (--set, LONGSHOT_SET, RX_VK_RT) is not in the file and is untouched.
  • docs/dev/reference/crash-window.md says it.

Checked: cargo test -p crash --lib safe (compiles, 2 new tests pass). Not run in the game.

🤖 Generated with Claude Code

When the game crashes with ray tracing on, the builder now takes the ray tracing rows and the preset out of the run's `settings.toml`, so the next start has ray tracing off. The player turns it on again in the menu. - `builder/crates/crash/src/safe.rs`: removes `ray_tracing_preset` and the `rt_*` rows from the `["system/graphics"]` table (a setting at its default has no line, so Off is the absence of them). Other tables, other rows and `rt_reflections_roughness` stay. - `after_run` calls it on a `Crash` verdict only (not an unclean end, so a kill or out-of-memory end keeps the settings), and prints one line saying so. - A row set only for the run (`--set`, `LONGSHOT_SET`, `RX_VK_RT`) is not in the file and is untouched. - `docs/dev/reference/crash-window.md` says it. Checked: `cargo test -p crash --lib safe` (compiles, 2 new tests pass). Not run in the game. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(crash): a crash with ray tracing on turns it off for the next start
Some checks are pending
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
CI / What the change needs (pull_request) Waiting to run
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Waiting to run
PR description / Title and description (pull_request_target) Waiting to run
4790facd95
The builder takes the ray tracing rows and the preset out of the run's settings file when the game crashed with one on, so the next start has ray tracing off.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
HumanBean changed title from WIP: fix(crash): a crash with ray tracing on turns it off for the next start to fix(crash): a crash with ray tracing on turns it off for the next start 2026-12-06 04:50:34 +00:00
HumanBean deleted branch fix/rt-crash-off 2026-12-06 04:50:38 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
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!3310
No description provided.