play: --set wins over the saved VICTORY_MENU_* values #2443
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2443
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2443"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@HyperRamzey on GitHub · 2026-11-29 13:05 UTC · original
HyperRamzey:pr/play-set-menu-precedence→main· +98 −8 · 1 files · 1 commits · openWhat
--set VICTORY_MENU_FPS=30(andVICTORY_MENU_CONSOLE,_RES,_DLSS, ...) was read back from the menu file after the setters had run, so a value the F1 menu had once saved silently overwrote the one given on the command line.settings()read the saved choices frommenuonly; it now reads aVICTORY_MENU_*entry from--setfirst (last occurrence wins, spaces around key and value trimmed), then falls back to the menu file.Why it matters
victory play --set VICTORY_MENU_CONSOLE=series-x --series-skept starting as Series S, and--set VICTORY_MENU_FPS=30kept the file's pacing once the menu had saved 60/120. Verified in game under Proton-CachyOS: with the fix,--set VICTORY_MENU_FPS=30 --set VICTORY_MENU_CONSOLE=series-slogsconsole=series-s,VICTORY_MENU_FPS=30,VICTORY_FRAME_INTERVAL_US=33333, and the F1 overlay reads 30.0 fps / 33.3 ms.Tests
set_overrides_the_fps_the_menu_saved— file says 120,--setsays 60 then 30: the interval is 33333 and the menu value is 30.set_console_overrides_the_series_s_profile—--series-splus the file'sseries-s, overridden toseries-x: the Series X profile and its scene knobs.an_invalid_set_menu_value_falls_back_as_before— a filter-rejected--setvalue changes nothing.All
play::testspass under Wine (cargo xwin test -p victory), sabotage-checked: reverting to the menu-only lookup makes the fps and console tests fail.Resolves
The behaviour the
--setdoc comment already promised. No dedicated issue was found; it is the switch-precedence defect behind several "the setting did not take" reports in the settings discussions.Review feedback (ANDREANIADS)
An invalid
--setmust not mask the saved value.saved()now takes the last--setentry the same per-key filters accept; a rejected value is as if absent. Addedan_invalid_set_value_does_not_mask_the_saved_one: a saved4kplus--set VICTORY_MENU_RES=bogusresolves exactly as the file alone, and--set VICTORY_MENU_RES=1080to1440followed byboguskeeps1080to1440. Sabotage-checked: accepting any value makes the test fail withVICTORY_NATIVE_1440P=1and the file's4koverwritten.All 32
play::tests pass under Wine; the fullvictorysuite shows only the two pre-existing Wine-environment failures (windows_is_not_wine, the System32 d3d12core copy test).@ANDREANIADS on GitHub · 2026-11-29 13:20 UTC · original
The invalid-value test uses an empty menu. With
VICTORY_MENU_RES=4ksaved ando.res="1440", adding only--set VICTORY_MENU_RES=boguschanges the resolved value from4kto1440. I reproduced this in an isolated Rust test usingparse_menu, the lookup and the resolution filter from25e3d4a. With repeated--setvalues,1080to1440, bogusalso yields1440, whilebogus, 1080to1440yields1080to1440.Could the regression test use a saved resolution distinct from the default? To preserve the last-occurrence rule, validate the last explicit resolution first, then fall back to the saved resolution if that value is rejected. Tested parsing only.
25e3d4a749to4a81f5dc8b@HyperRamzey on GitHub · 2026-11-29 20:37 UTC · original
Good catch — fixed.
saved()now takes the last--setentry the same per-key filters accept, so a rejected value acts as absent: it falls back to an earlier--setof the same key, then to the saved value. WithVICTORY_MENU_RES=4ksaved,--set VICTORY_MENU_RES=bogusnow resolves exactly as the file alone;1080to1440, boguskeeps1080to1440.Added
an_invalid_set_value_does_not_mask_the_saved_onecovering both of your cases (the old test used an empty menu, as you noted). It fails under sabotage that accepts any value (VICTORY_NATIVE_1440P=1, file's 4k masked). Allplay::tests pass under Wine. Pushed as4a81f5dc.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.