Scripts: the one-click start and bench.ps1 read the F1 settings in VICTORY_HOME #2694

Open
github-bot wants to merge 1 commit from github-bot/gh-2694 into main AGit
Owner

@⁠iBooM72 on GitHub · 2026-11-29 16:12 UTC · original
iBooM72:fix/victory-home-settings → main · +12 −8 · 2 files · 1 commits · open

What it changes

With VICTORY_HOME set, play-foxhound.ps1 and victory play read the F1 menu's victory-settings.txt from that folder. Two scripts looked elsewhere:

  • play-gta6-framegen.ps1 looked only in the repository folder. It could miss FSR 3 chosen in F1, so it said AMD's files weren't needed and didn't fetch them.
  • bench.ps1 looked only in %LOCALAPPDATA%\victory. It could miss saved choices that change a run, or stop because of a file play doesn't read. It also missed NVIDIA's files in VICTORY_HOME.

Each script now looks where the launcher it starts does. Without VICTORY_HOME, nothing changes. bench.ps1 starts play in the repository folder, so it resolves a relative VICTORY_HOME from there.

play-gta6-framegen.ps1 uses [IO.Path]::Combine because Join-Path stops -Check with an error if VICTORY_HOME is on a missing drive (tested). #774 made other scripts follow VICTORY_HOME.

How it was tested

  • GPU and profile: RTX 4070 Ti (the launcher's -Check uses the card's name). No game, full benchmark or download was run. Windows 11, Windows PowerShell 5.1.
  • I ran the launcher's -Check with a placeholder game folder. For bench.ps1, I ran only its settings and NVIDIA file checks, in temporary folders.
Case Before After
Launcher: FSR 3 saved in VICTORY_HOME AMD's files "not needed" "not yet (downloaded at first start ...)"
Bench: conflicting choice in VICTORY_HOME missed stops and names that file
Bench: the same, with a relative VICTORY_HOME missed stops and names that file
Bench: conflict only in the unused default file stops continues
Bench: NVIDIA's files in VICTORY_HOME "no NVIDIA files" found
  • Without VICTORY_HOME, the launcher still reads the repository's file, and bench.ps1 still uses its default folder. bench.ps1 still stops when it can't find NVIDIA's files.
  • For shader changes, the wave sizes tested: not a shader change.
  • cargo test passed for the crates it touches: no crate touched (scripts only). cargo xtask policy --staged passed.
  • The three CI commands (tests with --no-fail-fast) fail here and on unmodified 829188e9, with no new clippy errors. 6 tests failed here. 5 also failed in the full run on 829188e9. The other, a_change_is_saved_at_once_however_the_game_was_started, failed in 1 of 6 repeat runs there (#2500 fixes it).

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: none makes these scripts use VICTORY_HOME. #2628 (mine) and #2475 also edit bench.ps1, and both fit with this change. #1328, #1348, #1357, #1360, #1363 and #1399 also edit the launcher. None changes this settings path.

🤖 Generated with Claude Code

**@⁠iBooM72** on GitHub · 2026-11-29 16:12 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2694) `iBooM72:fix/victory-home-settings` → `main` · +12 −8 · 2 files · 1 commits · open ## What it changes With `VICTORY_HOME` set, `play-foxhound.ps1` and `victory play` read the F1 menu's `victory-settings.txt` from that folder. Two scripts looked elsewhere: - **`play-gta6-framegen.ps1`** looked only in the repository folder. It could miss FSR 3 chosen in F1, so it said AMD's files weren't needed and didn't fetch them. - **`bench.ps1`** looked only in `%LOCALAPPDATA%\victory`. It could miss saved choices that change a run, or stop because of a file `play` doesn't read. It also missed NVIDIA's files in `VICTORY_HOME`. Each script now looks where the launcher it starts does. Without `VICTORY_HOME`, nothing changes. `bench.ps1` starts `play` in the repository folder, so it resolves a relative `VICTORY_HOME` from there. `play-gta6-framegen.ps1` uses `[IO.Path]::Combine` because `Join-Path` stops `-Check` with an error if `VICTORY_HOME` is on a missing drive (tested). #774 made other scripts follow `VICTORY_HOME`. ## How it was tested - GPU and profile: RTX 4070 Ti (the launcher's `-Check` uses the card's name). **No game, full benchmark or download was run.** Windows 11, Windows PowerShell 5.1. - I ran the launcher's `-Check` with a placeholder game folder. For `bench.ps1`, I ran only its settings and NVIDIA file checks, in temporary folders. | Case | Before | After | |---|---|---| | Launcher: FSR 3 saved in `VICTORY_HOME` | AMD's files "not needed" | "not yet (downloaded at first start ...)" | | Bench: conflicting choice in `VICTORY_HOME` | missed | stops and names that file | | Bench: the same, with a relative `VICTORY_HOME` | missed | stops and names that file | | Bench: conflict only in the unused default file | stops | continues | | Bench: NVIDIA's files in `VICTORY_HOME` | "no NVIDIA files" | found | - Without `VICTORY_HOME`, the launcher still reads the repository's file, and `bench.ps1` still uses its default folder. `bench.ps1` still stops when it can't find NVIDIA's files. - For shader changes, the wave sizes tested: not a shader change. - `cargo test` passed for the crates it touches: no crate touched (scripts only). `cargo xtask policy --staged` passed. - The three CI commands (tests with `--no-fail-fast`) fail here and on unmodified `829188e9`, with no new clippy errors. 6 tests failed here. 5 also failed in the full run on `829188e9`. The other, `a_change_is_saved_at_once_however_the_game_was_started`, failed in 1 of 6 repeat runs there (#2500 fixes it). ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: none makes these scripts use `VICTORY_HOME`. #2628 (mine) and #2475 also edit `bench.ps1`, and both fit with this change. #1328, #1348, #1357, #1360, #1363 and #1399 also edit the launcher. None changes this settings path. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
With VICTORY_HOME set, play-foxhound.ps1 and `victory play` read
victory-settings.txt there. play-gta6-framegen.ps1 looked only in the
repository folder, so it could miss a saved FSR 3 and not fetch AMD's
files. bench.ps1 looked only in %LOCALAPPDATA%\victory, so it could miss
choices that change a run, or stop for a file `play` does not read. It
looked for NVIDIA's files there too.

Each now looks where the launcher it starts does. bench.ps1 starts
`play` in the repository folder, so a relative VICTORY_HOME is taken
from there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 16:15:42 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2694/head:github-bot/gh-2694'
git switch 'github-bot/gh-2694'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2694'
git switch 'github-bot/gh-2694'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2694'
git switch 'github-bot/gh-2694'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2694'
git switch 'main'
git merge --squash 'github-bot/gh-2694'
git switch 'main'
git merge --ff-only 'github-bot/gh-2694'
git switch 'main'
git merge 'github-bot/gh-2694'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
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
github/trustno1-coder--VIctory-NVIDIA!2694
No description provided.