Launcher: F1, -More and -Set names with an I in them apply on Turkish Windows too #3351

Open
github-bot wants to merge 2 commits from github-bot/gh-3351 into main AGit
Owner

@⁠Lyrnc on GitHub · 2026-11-29 22:09 UTC · original
Lyrnc:fix/turkish-i-settings → main · +29 −10 · 4 files · 2 commits · open

No issue filed.

What it changes

What was wrong. On Turkish Windows (culture tr-TR) the desktop launcher skipped every saved F1 setting with an I after VICTORY_, and said nothing: VICTORY_WATER_LIGHT, VICTORY_FPS_LINE, VICTORY_AMBIENT, VICTORY_PIPELINE_WORKERS and more. With VICTORY_WATER_LIGHT=0 lost, for example, the water's tiled light kept running and left dark tiles on open water.

PowerShell's -match, -split, -replace and Select-String ignore case by the system's culture. In tr-TR the lower case of I is the dotless ı, which is not in [a-z], so 'I' -match '[A-Z]' is False there. Checked with Windows PowerShell 5.1 and CurrentCulture = 'tr-TR':

'VICTORY_WATER_LIGHT=0' -match  '^\s*(VICTORY_[A-Z0-9_]+)\s*=(.*)$'   False
'VICTORY_WATER_LIGHT=0' -cmatch '^\s*(VICTORY_[A-Z0-9_]+)\s*=(.*)$'   True
'at I:\x\y' -replace '[A-Za-z]:[\/]...'                               not hidden

The same pattern was in four places:

  • play-foxhound.ps1: reading victory-settings.txt, the F1 menu's file.
  • play-foxhound.ps1: -More NAME=VALUE pairs (Steam's launch options), split and matched.
  • play-rig.ps1: -Set NAME=VALUE pairs.
  • bench.ps1: Hide-Paths missed a drive I:.

apps/victory/src/play.rs reads the same file with ASCII-only comparisons and is not affected. bench.ps1's own settings checks already use -cmatch, and no other [A-Z] class in the scripts is matched with the case ignored.

What this does.

  • The F1 settings file: -cmatch. The menu writes the names in upper case.
  • -More and -Set: [regex]::Split and [regex]::Match with IgnoreCase, CultureInvariant. Names typed in lower case still work, as they did with -match.
  • Hide-Paths: -creplace (its class is already [A-Za-z]).
  • play-rig.Tests.ps1: a -Check run under tr-TR, with VICTORY_AMBIENT and a lower-case name. A small wrapper sets the culture and hands the arguments on.

Credit: the first commit (b5efce87, the F1 settings file) is cansevenhalim0-ui's, from another fork, with their authorship kept. The second (66f088de) carries the same fix to -More, -Set and Hide-Paths.

Rebased onto main 7995b81b (both commits unchanged; none of the four scripts has changed on main since 829188e9).

How it was tested

  • GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): not applicable, scripts only. Windows 11, Windows PowerShell 5.1.
  • Before: the launcher's two parsing blocks, run alone under tr-TR with a settings file holding VICTORY_WATER_LIGHT=0, VICTORY_MENU_DLSS=quality and VICTORY_FPS_LINE=1, and -More 'VICTORY_AMBIENT=0.5,VICTORY_LEAVE_OUT=aa,bb,victory_pipeline_workers=4'. The menu kept only VICTORY_MENU_DLSS. -More printed Ignoring -More "VICTORY_AMBIENT=0.5" and glued the lower-case pair onto VICTORY_LEAVE_OUT.
  • After: all three menu settings, plus VICTORY_AMBIENT=0.5, VICTORY_LEAVE_OUT=aa,bb and victory_pipeline_workers=4.
  • Invoke-Pester .\scripts\tests (Pester 3.4, Windows PowerShell 5.1, en-US host), on 66f088de (rebased onto main 7995b81b): 13 passed, 1 failed. The new tr-TR -Check test ("takes -Set names with an I in them on Turkish Windows too, and in lower case") passes. The one failure, "records the run with its memory columns, keeping older rows" (Expected: {} to match the expression {^cores=(layer|pcores)$}), fails the same way on main 7995b81b without this change (12 passed, 1 failed). #2824 explains it: on a CPU with one kind of core (a Ryzen 7 9800X3D here), -Try cores picks no variant.
    • Note for reruns: "watch-rig.ps1 / reports the end of a run from its log, bounded" fails when another victory.exe runs on the PC at the same time (the watcher latches onto it and never sees the stand-in's end). The run above had no other victory.exe.
  • Every script parses, and the added lines are ASCII; the tests check both.
  • For shader changes, the wave sizes tested (32 and/or 64 lanes): no shader changes.
  • cargo test passed for the crates it touches: not applicable (PowerShell only).
  • Not tested: a real launch on a Turkish Windows install. The culture was set on the PowerShell thread, as the test wrapper does.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches ("Turkish", "tr-TR", "culture", "CultureInvariant", "cmatch", "victory-settings.txt"). No other PR fixes the culture trap in play-foxhound.ps1. Related:
    • #2824 (open): sets play-rig.ps1's thread to InvariantCulture for decimal commas. That would also cover the -Set part here, but not play-foxhound.ps1 or bench.ps1. Different lines; the two go together.
    • #2868 and #2722 (open): edit play-foxhound.ps1 elsewhere (settings persistence, defaults). #2722 moves the -More parsing into Resolve-FoxhoundSettings with the same -split and -match, so it conflicts with the -More hunk here; whichever lands second should carry the CultureInvariant form over.

AI use

Claude Code (Claude Opus 5.5) found the other three places, made the second commit, ran the tr-TR checks and the Pester suite, and wrote this description. The first commit is cansevenhalim0-ui's.

🤖 Generated with Claude Code

**@⁠Lyrnc** on GitHub · 2026-11-29 22:09 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3351) `Lyrnc:fix/turkish-i-settings` → `main` · +29 −10 · 4 files · 2 commits · open No issue filed. ## What it changes **What was wrong.** On Turkish Windows (culture tr-TR) the desktop launcher skipped every saved F1 setting with an `I` after `VICTORY_`, and said nothing: `VICTORY_WATER_LIGHT`, `VICTORY_FPS_LINE`, `VICTORY_AMBIENT`, `VICTORY_PIPELINE_WORKERS` and more. With `VICTORY_WATER_LIGHT=0` lost, for example, the water's tiled light kept running and left dark tiles on open water. PowerShell's `-match`, `-split`, `-replace` and `Select-String` ignore case by the system's culture. In tr-TR the lower case of `I` is the dotless `ı`, which is not in `[a-z]`, so `'I' -match '[A-Z]'` is False there. Checked with Windows PowerShell 5.1 and `CurrentCulture = 'tr-TR'`: ``` 'VICTORY_WATER_LIGHT=0' -match '^\s*(VICTORY_[A-Z0-9_]+)\s*=(.*)$' False 'VICTORY_WATER_LIGHT=0' -cmatch '^\s*(VICTORY_[A-Z0-9_]+)\s*=(.*)$' True 'at I:\x\y' -replace '[A-Za-z]:[\/]...' not hidden ``` The same pattern was in four places: - `play-foxhound.ps1`: reading `victory-settings.txt`, the F1 menu's file. - `play-foxhound.ps1`: `-More NAME=VALUE` pairs (Steam's launch options), split and matched. - `play-rig.ps1`: `-Set NAME=VALUE` pairs. - `bench.ps1`: `Hide-Paths` missed a drive `I:`. `apps/victory/src/play.rs` reads the same file with ASCII-only comparisons and is not affected. `bench.ps1`'s own settings checks already use `-cmatch`, and no other `[A-Z]` class in the scripts is matched with the case ignored. **What this does.** - The F1 settings file: `-cmatch`. The menu writes the names in upper case. - `-More` and `-Set`: `[regex]::Split` and `[regex]::Match` with `IgnoreCase, CultureInvariant`. Names typed in lower case still work, as they did with `-match`. - `Hide-Paths`: `-creplace` (its class is already `[A-Za-z]`). - `play-rig.Tests.ps1`: a `-Check` run under tr-TR, with `VICTORY_AMBIENT` and a lower-case name. A small wrapper sets the culture and hands the arguments on. Credit: the first commit (b5efce87, the F1 settings file) is cansevenhalim0-ui's, from another fork, with their authorship kept. The second (66f088de) carries the same fix to `-More`, `-Set` and `Hide-Paths`. Rebased onto main 7995b81b (both commits unchanged; none of the four scripts has changed on main since 829188e9). ## How it was tested - GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): not applicable, scripts only. Windows 11, Windows PowerShell 5.1. - Before: the launcher's two parsing blocks, run alone under tr-TR with a settings file holding `VICTORY_WATER_LIGHT=0`, `VICTORY_MENU_DLSS=quality` and `VICTORY_FPS_LINE=1`, and `-More 'VICTORY_AMBIENT=0.5,VICTORY_LEAVE_OUT=aa,bb,victory_pipeline_workers=4'`. The menu kept only `VICTORY_MENU_DLSS`. `-More` printed `Ignoring -More "VICTORY_AMBIENT=0.5"` and glued the lower-case pair onto `VICTORY_LEAVE_OUT`. - After: all three menu settings, plus `VICTORY_AMBIENT=0.5`, `VICTORY_LEAVE_OUT=aa,bb` and `victory_pipeline_workers=4`. - `Invoke-Pester .\scripts\tests` (Pester 3.4, Windows PowerShell 5.1, en-US host), on 66f088de (rebased onto main 7995b81b): 13 passed, 1 failed. The new tr-TR `-Check` test ("takes -Set names with an I in them on Turkish Windows too, and in lower case") passes. The one failure, "records the run with its memory columns, keeping older rows" (`Expected: {} to match the expression {^cores=(layer|pcores)$}`), fails the same way on main 7995b81b without this change (12 passed, 1 failed). #2824 explains it: on a CPU with one kind of core (a Ryzen 7 9800X3D here), `-Try cores` picks no variant. - Note for reruns: "watch-rig.ps1 / reports the end of a run from its log, bounded" fails when another `victory.exe` runs on the PC at the same time (the watcher latches onto it and never sees the stand-in's end). The run above had no other `victory.exe`. - Every script parses, and the added lines are ASCII; the tests check both. - For shader changes, the wave sizes tested (32 and/or 64 lanes): no shader changes. - `cargo test` passed for the crates it touches: not applicable (PowerShell only). - Not tested: a real launch on a Turkish Windows install. The culture was set on the PowerShell thread, as the test wrapper does. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches ("Turkish", "tr-TR", "culture", "CultureInvariant", "cmatch", "victory-settings.txt"). No other PR fixes the culture trap in `play-foxhound.ps1`. Related: - #2824 (open): sets `play-rig.ps1`'s thread to `InvariantCulture` for decimal commas. That would also cover the `-Set` part here, but not `play-foxhound.ps1` or `bench.ps1`. Different lines; the two go together. - #2868 and #2722 (open): edit `play-foxhound.ps1` elsewhere (settings persistence, defaults). #2722 moves the `-More` parsing into `Resolve-FoxhoundSettings` with the same `-split` and `-match`, so it conflicts with the `-More` hunk here; whichever lands second should carry the `CultureInvariant` form over. ## AI use Claude Code (Claude Opus 5.5) found the other three places, made the second commit, ran the tr-TR checks and the Pester suite, and wrote this description. The first commit is cansevenhalim0-ui's. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
play-foxhound.ps1 read victory-settings.txt with -match, which compares
case-insensitively by the system's culture. On Turkish Windows (tr-TR) a
capital I does not match [A-Z] that way ('I' -match '[A-Z]' is False), so
every saved setting with an I after VICTORY_ was skipped without a word:
VICTORY_WATER_LIGHT=0 among them, so the water's tiled light kept running
and left dark tiles on open water. -cmatch compares case-sensitively; the
names are upper case.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The same culture trap as the F1 settings file: -match and -split compare
case-insensitively by the system's culture, and on Turkish Windows (tr-TR)
a capital I is not in [A-Z] that way. play-foxhound.ps1's -More pairs and
play-rig.ps1's -Set pairs with an I after VICTORY_ (VICTORY_AMBIENT,
VICTORY_WATER_LIGHT, VICTORY_PIPELINE_WORKERS...) were left out or not split
apart. They are matched with IgnoreCase and CultureInvariant now, so names
typed in lower case still work as before. bench.ps1's path hiding missed a
drive I: the same way; -creplace keeps its [A-Za-z].

play-rig's tests gain a -Check run under tr-TR.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 22:12:14 +00:00
github-bot force-pushed github-bot/gh-3351 from 66f088de68 to 6983a6838b 2026-11-30 18:40:04 +00:00 Compare
github-bot force-pushed github-bot/gh-3351 from 6983a6838b to 260b400497 2026-12-01 04:36:07 +00:00 Compare
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/3351/head:github-bot/gh-3351'
git switch 'github-bot/gh-3351'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3351'
git switch 'github-bot/gh-3351'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3351'
git switch 'github-bot/gh-3351'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3351'
git switch 'main'
git merge --squash 'github-bot/gh-3351'
git switch 'main'
git merge --ff-only 'github-bot/gh-3351'
git switch 'main'
git merge 'github-bot/gh-3351'
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!3351
No description provided.