In-game settings menu on F1 (VICTORY_MENU=1), fps-only panel mode, run.conf.default #118

Closed
github-bot wants to merge 1 commit from github-bot/gh-118 into main AGit
Owner

@⁠Bushyon on GitHub · 2026-12-01 21:59 UTC · original
Bushyon:settings-menu → main · +916 −33 · 11 files · 11 commits · closed without merging

What it adds

An in-game settings menu, off by default (VICTORY_MENU=1), opened with F1.

  • Settings: the run.conf settings from the README, read from a new run.conf.default (each with a description, its choices and its default). A switch added there appears in the menu with no code change. Rows show the value, (default), or not set; the selected row's description is under the list, with a footer saying how to use the menu.
  • Keys: Up/Down select, Left/Right change, Del resets, Enter on an action row, F1/Esc close. The game still receives the keys while the menu is open.
  • Saving: every change is written at once to local/menu.conf, which run.sh reads after run.conf (plain NAME=value lines only; command-line VAR=value still wins). Settings apply at the next start.
  • Actions: "Save and restart game" (writes local/restart, exits; run.sh starts the game again when it finds the flag) and "Quit game".
  • Size: drawn at a character width that fits about 62% of the window height, centred.
  • Performance panel: VICTORY_PANEL is a menu setting and applies at once: full, compact, fps (new, just the frame rate) or off. Shift+F3 steps full, compact, fps.
  • Switches that can't work here: FSR 4 on a non-Series X profile, or without the FidelityFX DLL (also VICTORY_FSR_HOST), no longer stops the game. The switch is off for the run, said on the console, and the menu marks the row "needs attention" with the reason (local/attention).
  • Input: while the menu is open the title gets no keyboard or mouse input (keys held at that moment are released once). Gamepad input is not blocked.
  • Logging: VICTORY_LOG (info, warn, error, off) is a menu setting; the filter already existed. run.sh turns the Wine, vkd3d-proton and DXVK log lines off unless VERBOSE=1.
  • run.sh: without a run.conf it asks for the game folder (must hold game_scarlett_master.exe) and writes run.conf based on run.conf.default, all settings commented out.

Tested

  • cargo test -p victory-core --lib menu: 7 tests (cycling, file round trip, rejected names and values, parsing the real run.conf.default, attention rows).
  • Release build; in the game (by the owner): the menu opens and changes values, "Save and restart game" and "Quit game" work, the fps panel mode works, and CONSOLE=series-s VICTORY_FSR_4K=performance starts and runs (about 100 FPS) with the row marked.
  • The run.sh folder prompt was tested alone in a pseudo-terminal, not the full script.

Not tested

  • The menu at resolutions other than 1440p.
  • Input blocking while the menu is open, VICTORY_LOG and VERBOSE in the game (they build; the menu tests pass).
  • Defaults in run.conf.default come from the README and run.sh; the rest are left empty and not checked against the code.

AI-assisted.

**@⁠Bushyon** on GitHub · 2026-12-01 21:59 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/118) `Bushyon:settings-menu` → `main` · +916 −33 · 11 files · 11 commits · closed without merging ## What it adds An in-game settings menu, off by default (`VICTORY_MENU=1`), opened with `F1`. - **Settings:** the `run.conf` settings from the README, read from a new `run.conf.default` (each with a description, its choices and its default). A switch added there appears in the menu with no code change. Rows show the value, `(default)`, or `not set`; the selected row's description is under the list, with a footer saying how to use the menu. - **Keys:** Up/Down select, Left/Right change, Del resets, Enter on an action row, `F1`/Esc close. The game still receives the keys while the menu is open. - **Saving:** every change is written at once to `local/menu.conf`, which `run.sh` reads after `run.conf` (plain `NAME=value` lines only; command-line `VAR=value` still wins). Settings apply at the next start. - **Actions:** "Save and restart game" (writes `local/restart`, exits; `run.sh` starts the game again when it finds the flag) and "Quit game". - **Size:** drawn at a character width that fits about 62% of the window height, centred. - **Performance panel:** `VICTORY_PANEL` is a menu setting and applies at once: `full`, `compact`, `fps` (new, just the frame rate) or `off`. `Shift+F3` steps full, compact, fps. - **Switches that can't work here:** FSR 4 on a non-Series X profile, or without the FidelityFX DLL (also `VICTORY_FSR_HOST`), no longer stops the game. The switch is off for the run, said on the console, and the menu marks the row "needs attention" with the reason (`local/attention`). - **Input:** while the menu is open the title gets no keyboard or mouse input (keys held at that moment are released once). Gamepad input is not blocked. - **Logging:** `VICTORY_LOG` (`info`, `warn`, `error`, `off`) is a menu setting; the filter already existed. `run.sh` turns the Wine, vkd3d-proton and DXVK log lines off unless `VERBOSE=1`. - **`run.sh`:** without a `run.conf` it asks for the game folder (must hold `game_scarlett_master.exe`) and writes `run.conf` based on `run.conf.default`, all settings commented out. ## Tested - `cargo test -p victory-core --lib menu`: 7 tests (cycling, file round trip, rejected names and values, parsing the real `run.conf.default`, attention rows). - Release build; in the game (by the owner): the menu opens and changes values, "Save and restart game" and "Quit game" work, the `fps` panel mode works, and `CONSOLE=series-s VICTORY_FSR_4K=performance` starts and runs (about 100 FPS) with the row marked. - The `run.sh` folder prompt was tested alone in a pseudo-terminal, not the full script. ## Not tested - The menu at resolutions other than 1440p. - Input blocking while the menu is open, `VICTORY_LOG` and `VERBOSE` in the game (they build; the menu tests pass). - Defaults in `run.conf.default` come from the README and `run.sh`; the rest are left empty and not checked against the code. AI-assisted.
Edits the run.conf settings the README lists, saved at once to
local/menu.conf, which run.sh reads after run.conf. Settings apply at the
next start. The menu replaces the statistics panel while open.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The menu lists every setting in run.conf.default, so a new switch added
there shows up without code. The selected row is described below the list,
a footer says how to use the menu, and values not set show their default.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The menu is drawn at a character width that fits about 62% of the window
height (and 72% of its width) and is centred. Without a run.conf, run.sh
asks for the game folder, checks it holds game_scarlett_master.exe and
writes run.conf.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
VICTORY_PANEL takes full, compact, fps or off. Shift+F3 steps full,
compact, fps. The menu's VICTORY_PANEL row changes the mode at once and is
saved like the other settings.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Enter on "Save and restart game" saves the settings, writes local/restart
and exits; run.sh starts the game again when it finds the flag. "Quit
game" saves and exits.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
FSR 4 on a non-Series X profile, or without the FidelityFX DLL, no longer
stops the game: the switch is off for the run, said on the console, and
the menu shows the row as needing attention with the reason.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 22:03:25 +00:00
The next session's RAM cap comes from MemAvailable at its start, so
restarting at once gave a low cap and ran out of memory.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
github-bot referenced this pull request from a commit 2026-12-02 01:45:44 +00:00
github-bot closed this pull request 2026-12-02 01:56:38 +00:00
Author
Owner

@⁠Bushyon on GitHub · 2026-12-02 03:10 UTC · original

hey @⁠goldfishdev , got any conflicts or bugs?

**@⁠Bushyon** on GitHub · 2026-12-02 03:10 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/118#issuecomment-7333618243) hey @⁠goldfishdev , got any conflicts or bugs?
Author
Owner

@⁠goldfishdev on GitHub · 2026-12-02 03:22 UTC · original

@⁠Bushyon I didn't have any issues. I didn't test every option though

**@⁠goldfishdev** on GitHub · 2026-12-02 03:22 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/118#issuecomment-7333815629) @⁠Bushyon I didn't have any issues. I didn't test every option though

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.