launcher.py: an optional GTK 4 launcher, with Auto as a run.sh layer under presets and run.conf #130

Open
github-bot wants to merge 7 commits from github-bot/gh-130 into main AGit
Owner

@⁠skalel on GitHub · 2026-12-01 23:22 UTC · original
skalel:feat/launcher → main · +2574 −7 · 8 files · 7 commits · open

An optional GTK 4 launcher, and what it needs from run.sh and the F1 menu to sit under the presets and run.conf rather than over them.

This PR was opened before the presets and the menu writing run.conf (#348) existed. It is rebased on 0fd7614 and changed for them: see "Since the review" below.

launcher.py

One Python file, nothing beyond PyGObject. It writes run.conf and its logs in local/run, and calls run.sh and setup.sh.

  • Auto: every box is on Auto until run.conf or the preset says otherwise. Auto is worked out at each start from the card, RAM and screen. It is not written down, so ./run.sh play alone does what it did before.
  • By hand: what is set in the window or in the file is shown as it is and wins. Comments and order are kept. Lines that only bash can evaluate are shown, not edited.
  • Preset: a box for VICTORY_PRESET. The preset is read as the base run.conf stands on, and a box on Auto shows what the preset gives ("Auto (Off, from the preset)").
  • Notes: it warns of combinations known not to work (with the issue), and of VICTORY_ switches in run.conf that no source here reads.
  • Without the window: play, warm, shaders, setup, fix-shaders, set, doctor, fps. fps a.log b.log compares the frame rate in the world of two runs and shows the settings that differ.

Auto gives most cards Series S, 1920x1080 and the title's own upscaler (FSR 4 in its place where it is fetched and the card is known to get it: an RX 9000, or a card where one of the latest runs made an FSR 4 context, since an RX 6800 XT was offered none, #89), and a card of 16 GB or more (RDNA3/4, 30 GB of RAM, a 4K screen) Series X at 4K. With a preset (all of them turn on FSR 4 to the output) it gives Series X. Everything else is left to run.sh and the game.

Outside launcher.py

  • run.sh: VICTORY_AUTO, the lowest layer. The launcher gives Auto as VICTORY_AUTO="NAME=value ...", which run.sh puts under the preset, run.conf and the command line (each pair checked as the menu.conf migration does). As arguments it was over all three: with VICTORY_PRESET=high Auto gave CONSOLE=series-s with FSR 4 to the output, which does not start, and the menu's "Save and restart" ran again with the arguments, over what it had just saved.
  • menu.rs: Auto as the default of the rows nothing sets. run.sh passes on the pairs it took, and the menu shows them where run.conf and the preset set nothing. Without it, a run on Series S at 1080p showed Series X at 1440p in F1. Nothing of it is written to run.conf.
  • Docs. docs/SETTINGS.md and run.conf.default (so the menu lists them) gain VICTORY_UPSCALER, VICTORY_RENDER_SCALE, VICTORY_AMBIENT_MOST, VICTORY_NATIVE_INPUT, VICTORY_PLANES, VICTORY_UI_PLANE_720, and the values the code takes that were not listed (native, title, 0). VICTORY_AUTO is listed with the runtime-only settings.
  • .gitignore gains __pycache__/: python3 -m unittest without -B leaves one, which cargo xtask policy refuses.

Since the review

  • xtask/src/policy.rs is no longer touched: main already allows py.
  • What a box says of Auto is no longer prose about run.sh: a box's default is a field, its "Auto:" text is made from it, and a test holds it to docs/SETTINGS.md and run.conf.default, with the box's choices among the documented values. It found three that had moved: the frame limit (it said 100 fps, the old 10 ms clock), the overlay's values, and FSR 4 on Series X with no Off to use over a preset.
  • run.sh --print-plan was not added: run.sh picks nothing from the hardware, so there is no plan of its own to ask for. What the launcher picks is its own, and ./launcher.py play --dry-run prints it.

Tested

  • python3 -B -m unittest discover -s tests/launcher: 132 pass, the window's off screen (skipped without gtk4-broadwayd). cargo test -p victory-core menu: 19 pass. cargo xtask policy: 360 files ok. bash -n run.sh.
  • RX 6750 XT 12 GB, Ryzen 7 5700X, 1920x1080, CachyOS, Proton-CachyOS, a build of this branch merged with #216's (9bfbb2b). Started from the launcher with the profile and the size on Auto: the run got CONSOLE=series-s and VICTORY_OUTPUT=1920x1080 from Auto (the log says whose each setting is), and F1 showed them. In F1, output to 1280x720 and "Save and restart": the game came back at 1280x720 (before, Auto's 1920x1080 argument won). A preset in the window moves the profile to Series X with FSR (--dry-run).

Not tested

  • The Series X at 4K that Auto gives big cards, and a whole session on a preset: there is no 16 GB card here.
  • Other desktops than Hyprland, other distributions.
  • Without systemd (#84): the launcher finds and stops runs by the um-* scopes of run.sh, so it cannot tell that one is running.

🤖 Generated with Claude Code

**@⁠skalel** on GitHub · 2026-12-01 23:22 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/130) `skalel:feat/launcher` → `main` · +2574 −7 · 8 files · 7 commits · open An optional GTK 4 launcher, and what it needs from `run.sh` and the F1 menu to sit under the presets and `run.conf` rather than over them. This PR was opened before the presets and the menu writing `run.conf` (#348) existed. It is rebased on `0fd7614` and changed for them: see "Since the review" below. ## launcher.py One Python file, nothing beyond PyGObject. It writes `run.conf` and its logs in `local/run`, and calls `run.sh` and `setup.sh`. - **Auto:** every box is on Auto until `run.conf` or the preset says otherwise. Auto is worked out at each start from the card, RAM and screen. It is not written down, so `./run.sh play` alone does what it did before. - **By hand:** what is set in the window or in the file is shown as it is and wins. Comments and order are kept. Lines that only bash can evaluate are shown, not edited. - **Preset:** a box for `VICTORY_PRESET`. The preset is read as the base `run.conf` stands on, and a box on Auto shows what the preset gives ("Auto (Off, from the preset)"). - **Notes:** it warns of combinations known not to work (with the issue), and of `VICTORY_` switches in `run.conf` that no source here reads. - **Without the window:** `play`, `warm`, `shaders`, `setup`, `fix-shaders`, `set`, `doctor`, `fps`. `fps a.log b.log` compares the frame rate in the world of two runs and shows the settings that differ. Auto gives most cards Series S, 1920x1080 and the title's own upscaler (FSR 4 in its place where it is fetched and the card is known to get it: an RX 9000, or a card where one of the latest runs made an FSR 4 context, since an RX 6800 XT was offered none, #89), and a card of 16 GB or more (RDNA3/4, 30 GB of RAM, a 4K screen) Series X at 4K. With a preset (all of them turn on FSR 4 to the output) it gives Series X. Everything else is left to `run.sh` and the game. ## Outside launcher.py - **`run.sh`: `VICTORY_AUTO`, the lowest layer.** The launcher gives Auto as `VICTORY_AUTO="NAME=value ..."`, which `run.sh` puts under the preset, `run.conf` and the command line (each pair checked as the `menu.conf` migration does). As arguments it was over all three: with `VICTORY_PRESET=high` Auto gave `CONSOLE=series-s` with FSR 4 to the output, which does not start, and the menu's "Save and restart" ran again with the arguments, over what it had just saved. - **`menu.rs`: Auto as the default of the rows nothing sets.** `run.sh` passes on the pairs it took, and the menu shows them where `run.conf` and the preset set nothing. Without it, a run on Series S at 1080p showed Series X at 1440p in F1. Nothing of it is written to `run.conf`. - **Docs.** `docs/SETTINGS.md` and `run.conf.default` (so the menu lists them) gain `VICTORY_UPSCALER`, `VICTORY_RENDER_SCALE`, `VICTORY_AMBIENT_MOST`, `VICTORY_NATIVE_INPUT`, `VICTORY_PLANES`, `VICTORY_UI_PLANE_720`, and the values the code takes that were not listed (`native`, `title`, `0`). `VICTORY_AUTO` is listed with the runtime-only settings. - **`.gitignore`** gains `__pycache__/`: `python3 -m unittest` without `-B` leaves one, which `cargo xtask policy` refuses. ## Since the review - `xtask/src/policy.rs` is no longer touched: main already allows `py`. - What a box says of Auto is no longer prose about `run.sh`: a box's default is a field, its "Auto:" text is made from it, and a test holds it to `docs/SETTINGS.md` and `run.conf.default`, with the box's choices among the documented values. It found three that had moved: the frame limit (it said 100 fps, the old 10 ms clock), the overlay's values, and FSR 4 on Series X with no Off to use over a preset. - `run.sh --print-plan` was not added: `run.sh` picks nothing from the hardware, so there is no plan of its own to ask for. What the launcher picks is its own, and `./launcher.py play --dry-run` prints it. ## Tested - `python3 -B -m unittest discover -s tests/launcher`: 132 pass, the window's off screen (skipped without `gtk4-broadwayd`). `cargo test -p victory-core menu`: 19 pass. `cargo xtask policy`: 360 files ok. `bash -n run.sh`. - RX 6750 XT 12 GB, Ryzen 7 5700X, 1920x1080, CachyOS, Proton-CachyOS, a build of this branch merged with #216's (`9bfbb2b`). Started from the launcher with the profile and the size on Auto: the run got `CONSOLE=series-s` and `VICTORY_OUTPUT=1920x1080` from Auto (the log says whose each setting is), and F1 showed them. In F1, output to 1280x720 and "Save and restart": the game came back at 1280x720 (before, Auto's 1920x1080 argument won). A preset in the window moves the profile to Series X with FSR (`--dry-run`). ## Not tested - The Series X at 4K that Auto gives big cards, and a whole session on a preset: there is no 16 GB card here. - Other desktops than Hyprland, other distributions. - Without systemd (#84): the launcher finds and stops runs by the `um-*` scopes of `run.sh`, so it cannot tell that one is running. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
An optional GTK 4 launcher. Boxes are on Auto until run.conf says otherwise:
Auto is worked out at each start from the card, RAM and screen and passed to
run.sh, and what is set by hand is shown as it is and wins. It writes run.conf
and its logs, and calls run.sh and setup.sh. Without the window: play, warm,
shaders, setup, fix-shaders, set, doctor and fps.

The asset policy gains py in its extensions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 23:27:52 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-12-01 23:24 UTC · original · edited 2026-12-01 23:29 UTC

Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T23:29:30.135149Z c2be344 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-12-01 23:24 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/130#issuecomment-7329307645) · edited 2026-12-01 23:29 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"c2be344270ee870ceb96fa5ce219109dae1767be","has_any_findings":true,"has_unresolved_findings":true,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-12-01T23:29:30.135149Z">2026-12-01T23:29:30.135149Z</relative-time> | `c2be344` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-12-01 23:29 UTC · original · reviewed

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c2be344270

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback".

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-12-01 23:29 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/130#pullrequestreview-6142089359) · **reviewed** <!-- codex-review-receipt:v1 --> ### 💡 Codex Review Here are some automated review suggestions for this pull request. **Reviewed commit:** `c2be344270` <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback". </details>
@ -0,0 +337,4 @@
host = not fsr and conf.get("VICTORY_FSR_HOST", "").strip() == "1"
console = conf.get("CONSOLE")
if console is None:
console = auto["CONSOLE"] = ("series-x" if fsr or height(output) > 1080 or (output is None and big) else "series-s")
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-12-01 23:29 UTC · original

P2 Badge Avoid choosing Series S from an unevaluated output

When run.conf computes VICTORY_OUTPUT in Bash (for example, VICTORY_OUTPUT=$(printf 3840x2160)), Conf.get() returns the unevaluated expression, so height(output) is 0 and output is None is false. On a machine that qualifies for big, resolve() therefore chooses Series S and suppresses the automatic output override and the later above-1080p warning. run.sh evaluates the expression and starts Series S at 4K, which the launcher itself notes fails at startup. Treat an unresolvable output as unknown when choosing a profile, or warn before launch.

Useful? React with 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-12-01 23:29 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/130#discussion_r4762521779) **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Avoid choosing Series S from an unevaluated output** When `run.conf` computes `VICTORY_OUTPUT` in Bash (for example, `VICTORY_OUTPUT=$(printf 3840x2160)`), `Conf.get()` returns the unevaluated expression, so `height(output)` is 0 and `output is None` is false. On a machine that qualifies for `big`, `resolve()` therefore chooses Series S and suppresses the automatic output override and the later above-1080p warning. `run.sh` evaluates the expression and starts Series S at 4K, which the launcher itself notes fails at startup. Treat an unresolvable output as unknown when choosing a profile, or warn before launch. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
Auto took a VICTORY_OUTPUT, CONSOLE or VICTORY_FSR_4K that run.conf works out in
bash for a value of its own, and could pair Series S with a size it stops at.
It now picks no profile and no size there, and says so. An EXE worked out in
bash no longer counts as missing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ -0,0 +341,4 @@
host = not fsr and conf.get("VICTORY_FSR_HOST", "").strip() == "1"
console = conf.get("CONSOLE")
if console is None and not unsure:
console = auto["CONSOLE"] = ("series-x" if fsr or height(output) > 1080 or (output is None and big) else "series-s")
Author
Owner

@⁠skalel on GitHub · 2026-12-02 00:00 UTC · original

Fixed in c459fa8. Reproduced first: on a card that qualifies for Series X at 4K, a computed VICTORY_OUTPUT gave CONSOLE=series-s with no note.

Where only bash can tell VICTORY_OUTPUT, CONSOLE or VICTORY_FSR_4K, Auto now picks no profile and no size (what run.conf does not set is left to run.sh) and says so. With CONSOLE=series-s set by hand it warns that the size cannot be checked.

Two cases of the same kind are fixed with it: a computed CONSOLE was given VICTORY_OUTPUT=3840x2160 on such a card, and a computed EXE counted as not built. Tests cover all three.

**@⁠skalel** on GitHub · 2026-12-02 00:00 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/130#discussion_r4762786835) Fixed in c459fa8. Reproduced first: on a card that qualifies for Series X at 4K, a computed `VICTORY_OUTPUT` gave `CONSOLE=series-s` with no note. Where only bash can tell `VICTORY_OUTPUT`, `CONSOLE` or `VICTORY_FSR_4K`, Auto now picks no profile and no size (what `run.conf` does not set is left to `run.sh`) and says so. With `CONSOLE=series-s` set by hand it warns that the size cannot be checked. Two cases of the same kind are fixed with it: a computed `CONSOLE` was given `VICTORY_OUTPUT=3840x2160` on such a card, and a computed `EXE` counted as not built. Tests cover all three.
Without ray tracing, how much of the title's own sky light the shade keeps, as a
multiple of what is estimated from the screen. Auto leaves the title's 2.2x.
On an RX 6750 XT, a porch wall in the shade by day measured 6 of 255 at 2.2,
15 at 4 and 56 at 20; indoors 2.2, 8 and 20 looked alike (#141). With ray
tracing it does nothing, and the window says so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
On Series S, FSR 4 serves the title's own FidelityFX (VICTORY_FSR_HOST=1,
720p to 1080p). On an RX 6750 XT it ran as fast as the title's own
upscaler (18.9 against 18.8 fps in the same heavy scenes) and looked
sharper, as #140 found on an RX 9060 XT.

Auto gives it on Series S where FSR 4 is fetched and the card is known to
be offered it: an RX 9000, or any card where one of the latest 30 runs
logged an FSR 4 context. The card's name does not tell: an RX 6750 XT is
offered FSR 4, an RX 6800 XT was offered FSR 3.1 only and the game did not
start (#89). The same proof drops the RX 6000 note. What run.conf sets
(VICTORY_FSR_HOST, the title's own upscaler) is left as it is.

The Auto tests now run on an empty checkout of their own, so what this
PC has fetched or run does not change them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Owner

@⁠Luxuride on GitHub · 2026-12-04 12:03 UTC · original

The work is careful — 1,227 lines of tests, and they actually run on Linux (122 tests, 43 s) — so yes, worth landing, after a rebase and one decision.

The decision: this recomputes run.sh's "Auto" logic in a third language with nothing tying the two together. launcher.py:361-419 re-derives the picks from hardware instead of asking run.sh, and the tooltips assert run.sh's behaviour in prose (launcher.py:209 "Auto: on, as run.sh has it."). When run.sh's defaults move, these rows silently start lying, and test_every_switch_with_a_box_is_one_the_game_reads (tests/launcher/test_launcher.py:452) only proves the key names exist, not that the values match. The cheapest fix that keeps the PR alive is a run.sh --print-plan mode the launcher asks, or at minimum a test that fails when run.sh's defaults move.

Before that:

  • ROWS (launcher.py:188-224) publishes switches main does not document: VICTORY_AMBIENT_MOST (:212), VICTORY_PLANES/VICTORY_UI_PLANE_720 (:361-364). Fix the docs first, or the launcher UI becomes the only spec for them.
  • Drop the xtask/src/policy.rs ALLOWED_EXTENSIONS edit — main already allows "py" (policy.rs:19), so only the added assert at :237 is left, and dropping it shrinks the conflict to README.md.

Everything else reads well: save() (launcher.py:174-183) does bash -n, write-.new, copymode, os.replace, and the state directory is already covered by .gitignore.

**@⁠Luxuride** on GitHub · 2026-12-04 12:03 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/130#issuecomment-7410915655) The work is careful — 1,227 lines of tests, and they actually run on Linux (122 tests, 43 s) — so yes, worth landing, after a rebase and one decision. The decision: this recomputes `run.sh`'s "Auto" logic in a third language with nothing tying the two together. `launcher.py:361-419` re-derives the picks from hardware instead of asking `run.sh`, and the tooltips assert `run.sh`'s behaviour in prose (`launcher.py:209` "Auto: on, as run.sh has it."). When `run.sh`'s defaults move, these rows silently start lying, and `test_every_switch_with_a_box_is_one_the_game_reads` (`tests/launcher/test_launcher.py:452`) only proves the key names exist, not that the values match. The cheapest fix that keeps the PR alive is a `run.sh --print-plan` mode the launcher asks, or at minimum a test that fails when `run.sh`'s defaults move. Before that: - `ROWS` (`launcher.py:188-224`) publishes switches main does not document: `VICTORY_AMBIENT_MOST` (`:212`), `VICTORY_PLANES`/`VICTORY_UI_PLANE_720` (`:361-364`). Fix the docs first, or the launcher UI becomes the only spec for them. - Drop the `xtask/src/policy.rs` `ALLOWED_EXTENSIONS` edit — main already allows `"py"` (`policy.rs:19`), so only the added assert at `:237` is left, and dropping it shrinks the conflict to `README.md`. Everything else reads well: `save()` (`launcher.py:174-183`) does `bash -n`, write-`.new`, `copymode`, `os.replace`, and the state directory is already covered by `.gitignore`.
github-bot force-pushed github-bot/gh-130 from 668accf53a to 8d2308b581 2026-12-04 14:09:17 +00:00 Compare
Author
Owner

@⁠skalel on GitHub · 2026-12-04 14:08 UTC · original

Thanks for the careful read. Rebased on 0fd7614 and pushed. This PR predates the presets and the menu writing run.conf (#348), and the rebase showed two problems with them, so it now touches run.sh and menu.rs too (title and body updated).

run.sh's Auto logic. run.sh picks nothing from the hardware: the profile, size and upscaler Auto gives are the launcher's own, so a --print-plan would have nothing to print (./launcher.py play --dry-run prints the launcher's). Where you are right is the tooltips asserting defaults in prose. A box's default is now a field (Row.default), its "Auto:" text is made from it, and test_every_box_is_documented_with_the_default_it_shows holds it to the Default column of docs/SETTINGS.md and to run.conf.default, with the box's choices among the documented values. It caught three that had already moved: the frame limit said "Auto: 100 fps" (the old 10 ms clock; it is the title's interval now), the overlay offered 1/0 where the values are full/compact/fps/off, and FSR 4 on Series X had no Off to use over a preset.

Undocumented switches. docs/SETTINGS.md and run.conf.default now have VICTORY_AMBIENT_MOST, VICTORY_PLANES, VICTORY_UI_PLANE_720, and the other boxes that had no row (VICTORY_UPSCALER, VICTORY_RENDER_SCALE, VICTORY_NATIVE_INPUT), written from what the code does.

policy.rs. Dropped, assert included; the PR no longer touches it.

What the rebase found:

  • Auto went as arguments after the mode, over the preset and run.conf. With VICTORY_PRESET=high it gave CONSOLE=series-s with FSR 4 to the output, which does not start; and F1's "Save and restart" ran again with the same arguments, over what the menu had just saved. Auto now goes in VICTORY_AUTO, which run.sh puts under the preset, run.conf and the command line, and the launcher reads the preset as the base.
  • F1 showed run.conf.default's Series X at 1440p for rows run.conf left unset while the run was Series S at 1080p. run.sh passes on the pairs it took, and the menu shows them as those rows' defaults, never writing them.

Checked here (RX 6750 XT): profile and size on Auto, F1 showed what the run got, and changing the output in F1 then "Save and restart" brought the game back at the new size, which the Auto argument used to override.

**@⁠skalel** on GitHub · 2026-12-04 14:08 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/130#issuecomment-7413892524) Thanks for the careful read. Rebased on `0fd7614` and pushed. This PR predates the presets and the menu writing `run.conf` (#348), and the rebase showed two problems with them, so it now touches `run.sh` and `menu.rs` too (title and body updated). **`run.sh`'s Auto logic.** `run.sh` picks nothing from the hardware: the profile, size and upscaler Auto gives are the launcher's own, so a `--print-plan` would have nothing to print (`./launcher.py play --dry-run` prints the launcher's). Where you are right is the tooltips asserting defaults in prose. A box's default is now a field (`Row.default`), its "Auto:" text is made from it, and `test_every_box_is_documented_with_the_default_it_shows` holds it to the Default column of `docs/SETTINGS.md` and to `run.conf.default`, with the box's choices among the documented values. It caught three that had already moved: the frame limit said "Auto: 100 fps" (the old 10 ms clock; it is the title's interval now), the overlay offered `1`/`0` where the values are `full/compact/fps/off`, and FSR 4 on Series X had no Off to use over a preset. **Undocumented switches.** `docs/SETTINGS.md` and `run.conf.default` now have `VICTORY_AMBIENT_MOST`, `VICTORY_PLANES`, `VICTORY_UI_PLANE_720`, and the other boxes that had no row (`VICTORY_UPSCALER`, `VICTORY_RENDER_SCALE`, `VICTORY_NATIVE_INPUT`), written from what the code does. **`policy.rs`.** Dropped, assert included; the PR no longer touches it. **What the rebase found:** - Auto went as arguments after the mode, over the preset and `run.conf`. With `VICTORY_PRESET=high` it gave `CONSOLE=series-s` with FSR 4 to the output, which does not start; and F1's "Save and restart" ran again with the same arguments, over what the menu had just saved. Auto now goes in `VICTORY_AUTO`, which `run.sh` puts under the preset, `run.conf` and the command line, and the launcher reads the preset as the base. - F1 showed `run.conf.default`'s Series X at 1440p for rows `run.conf` left unset while the run was Series S at 1080p. `run.sh` passes on the pairs it took, and the menu shows them as those rows' defaults, never writing them. Checked here (RX 6750 XT): profile and size on Auto, F1 showed what the run got, and changing the output in F1 then "Save and restart" brought the game back at the new size, which the Auto argument used to override.
github-bot changed title from launcher.py: a GTK 4 window for run.sh and run.conf (optional) to launcher.py: an optional GTK 4 launcher, with Auto as a run.sh layer under presets and run.conf 2026-12-04 14:14:37 +00:00
This pull request has changes conflicting with the target branch.
  • docs/SETTINGS.md
  • run.conf.default
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.
git fetch -u origin '+refs/pull/130/head:github-bot/gh-130'
git switch 'github-bot/gh-130'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-130'
git switch 'github-bot/gh-130'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-130'
git switch 'github-bot/gh-130'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-130'
git switch 'main'
git merge --squash 'github-bot/gh-130'
git switch 'main'
git merge --ff-only 'github-bot/gh-130'
git switch 'main'
git merge 'github-bot/gh-130'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.