Launcher window before the game: Play, the F1 settings with the mouse, update check, shader build with progress #519

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

@⁠starrockanonigtavi-collab on GitHub · 2026-11-27 23:57 UTC · original
starrockanonigtavi-collab:launcher → main · +2647 −46 · 11 files · 2 commits · open

Depends on #319 (the F1 menu redesign): this branch is built on it and reuses its drawing (menu_look.rs) and its settings page. Until #319 is merged, this PR also shows that commit; the launcher is the last one.

What

scripts\play-foxhound.ps1 now shows a launcher window before the game (victory launcher). It is drawn the same way as the F1 menu: GDI text, shapes with smoothed edges, and the same purple.

  • Starts with: one line with what this start uses (picture size, DLSS, frame generation, frame rate cap, fullscreen or window).
  • Play (or Enter): saves anything changed, then starts the game.
  • Gear (or F1): the F1 menu's settings page, in the window, with the mouse as well as the keys.
    • Click a tab, a row, its < > or a toggle, or a button. The wheel scrolls.
    • A big back arrow sits in the top right.
    • Leaving with changes not saved asks first: Save (picked) or Don't Save.
    • Here the actions read Save And Play, Save, Preload Shaders, Reset and Back.
  • Check updates: asks GitHub for main's newest commit (git ls-remote) and says whether this checkout has it. Nothing is fetched or changed.
  • GitHub: opens the repository's page.
  • Build shaders: runs victory preload as a process of its own, in a box that shows progress.
    • The box shows the step, a count (23000 of 53506), the percentage, the minutes and a bar. These come from preload's own output lines.
    • Stop ends it and keeps what was made. The next build goes on from there.
    • When a build already finished for this victory.exe and these settings, it asks before building again.
    • Its output goes to %LOCALAPPDATA%\victory\logs\victory-preload-*.log.
  • Launcher box: unticked, the game starts at once next time. -Launcher (a new switch) or holding Shift while the script starts brings the window back.
  • The banner at the top is a gradient with Click to add an image.
    • The picture picked (with Windows' file picker) is copied to %LOCALAPPDATA%\victory\launcher-banner.*.
    • Edit image moves the picture (drag) and zooms it (wheel, 1x to 6x), and offers Change Image, Remove, Reset, Cancel and Done. The framing is kept next to the picture.
  • X or Esc closes the window without playing. The window has no frame and is dragged by its banner.

In the menu (in the game too), DLSS Model and DLSS now get a description of what each choice means (Default, K, J, M, L).

Captura de pantalla 2026-11-27 175609

How

  • crates/victory-gpu/src/host/launcher.rs: the window, its pages and boxes, the update check and the shader build. It is entered through victory_gpu::launcher(), which is victory launcher in apps/victory.
  • The window reads the settings from the environment the script set, as the F1 menu does, and saves to the same victory-settings.txt.
  • The exit code says what was picked: 0 play, 1 closed, 3 preload then play, 4 settings reset, 5 build with settings just saved.
    • For 0, 3, 4 and 5 the script starts itself again so it reads what was saved. 4 and 5 show the window again; 5 builds right away.
    • Any other code (for example, an older victory.exe without the command) goes straight on to the game, as before.
  • With the window shown, the settings file now also goes over -More switches of the same name. A shortcut's fixed -More @{VICTORY_FULLSCREEN='1'} used to win over what the window showed and saved, so the window showed one thing and the game started with another.
  • In the game, F1 still saves each change right away (64d4931). In the window it does not: Play saves, and leaving the settings page asks first. The "Launcher" box is written to the same settings file F1 uses (settings_file()).
  • F1's Save And Restart passes -NoLauncher, so a restart from the game does not show the window again.
  • menu.rs:
    • Key handling moved into Menu::key, which returns what an action asks for (Leave). The game and the launcher handle it each their own way.
    • Menu::for_launcher creates the menu for the window.
    • The launcher flag changes the labels and stops changes from applying while playing.
  • menu_look.rs: draw_with_hits also returns where the tabs, rows, < > and buttons are, for the mouse. The canvas helpers are pub(super).
  • New windows features: Win32_Graphics_Imaging (WIC, for the banner picture), Win32_System_Com, and Win32_UI_Controls_Dialogs (the file picker). apps/victory now depends on victory-gpu directly.

No pictures in the repository

Following docs/asset-policy.md, the repository stays text only, and cargo xtask policy passes.

  • "PC" and "PLAY" are outlines (launcher_shapes.rs, lists of points). They are filled in code with non-zero winding and smoothed edges.
    • They come from my design for the window. "PC" is set in Montserrat: SIL Open Font License 1.1, Copyright 2011 The Montserrat Project Authors.
  • The banner ships empty. Everyone adds their own picture, which stays on their machine.
    • I made a picture for it. If you would like one in the repository by default, that would need an exception in xtask/src/policy.rs, which is your call.

Limits

  • The window is shown by play-foxhound.ps1 only. Starting victory.exe with no command (play) does not show it.
  • Check updates needs git on the PATH.
  • The first step of Build shaders (translating every shader) has no known total, so its share of the bar is an estimate. The pipelines, which are most of the time, are counted exactly.
  • The summary line also names "Ultrawide" when VICTORY_MENU_ULTRAWIDE is set (from #137). Without #137 it never shows.

Tests

  • New reads_preload_lines: preload's own output lines move the bar through its three steps.
  • New preview: with VICTORY_LAUNCHER_PREVIEW=<path>, it writes the window (empty banner, image editing, a build under way) as .bmp files.
  • cargo test -p victory-gpu menu passes. cargo xtask policy passes.
  • Used on an RTX 5080 at 3440x1440 (window and borderless).

🤖 Generated with Claude Code

**@⁠starrockanonigtavi-collab** on GitHub · 2026-11-27 23:57 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/519) `starrockanonigtavi-collab:launcher` → `main` · +2647 −46 · 11 files · 2 commits · open **Depends on #319** (the F1 menu redesign): this branch is built on it and reuses its drawing (`menu_look.rs`) and its settings page. Until #319 is merged, this PR also shows that commit; the launcher is the last one. ## What `scripts\play-foxhound.ps1` now shows a launcher window before the game (`victory launcher`). It is drawn the same way as the F1 menu: GDI text, shapes with smoothed edges, and the same purple. - **Starts with**: one line with what this start uses (picture size, DLSS, frame generation, frame rate cap, fullscreen or window). - **Play** (or Enter): saves anything changed, then starts the game. - **Gear** (or F1): the F1 menu's settings page, in the window, with the mouse as well as the keys. - Click a tab, a row, its `<` `>` or a toggle, or a button. The wheel scrolls. - A big back arrow sits in the top right. - Leaving with changes not saved asks first: **Save** (picked) or **Don't Save**. - Here the actions read Save And Play, Save, Preload Shaders, Reset and Back. - **Check updates**: asks GitHub for `main`'s newest commit (`git ls-remote`) and says whether this checkout has it. Nothing is fetched or changed. - **GitHub**: opens the repository's page. - **Build shaders**: runs `victory preload` as a process of its own, in a box that shows progress. - The box shows the step, a count (`23000 of 53506`), the percentage, the minutes and a bar. These come from preload's own output lines. - **Stop** ends it and keeps what was made. The next build goes on from there. - When a build already finished for this victory.exe and these settings, it asks before building again. - Its output goes to `%LOCALAPPDATA%\victory\logs\victory-preload-*.log`. - **Launcher** box: unticked, the game starts at once next time. `-Launcher` (a new switch) or holding Shift while the script starts brings the window back. - **The banner** at the top is a gradient with **Click to add an image**. - The picture picked (with Windows' file picker) is copied to `%LOCALAPPDATA%\victory\launcher-banner.*`. - **Edit image** moves the picture (drag) and zooms it (wheel, 1x to 6x), and offers Change Image, Remove, Reset, Cancel and Done. The framing is kept next to the picture. - **X** or Esc closes the window without playing. The window has no frame and is dragged by its banner. In the menu (in the game too), **DLSS Model** and **DLSS** now get a description of what each choice means (Default, K, J, M, L). <img width="1452" height="861" alt="Captura de pantalla 2026-11-27 175609" src="https://github.com/user-attachments/assets/be4ef890-79ad-44e3-a0dc-cf2803c12424" /> ## How - `crates/victory-gpu/src/host/launcher.rs`: the window, its pages and boxes, the update check and the shader build. It is entered through `victory_gpu::launcher()`, which is `victory launcher` in `apps/victory`. - The window reads the settings from the environment the script set, as the F1 menu does, and saves to the same `victory-settings.txt`. - The exit code says what was picked: 0 play, 1 closed, 3 preload then play, 4 settings reset, 5 build with settings just saved. - For 0, 3, 4 and 5 the script starts itself again so it reads what was saved. 4 and 5 show the window again; 5 builds right away. - Any other code (for example, an older victory.exe without the command) goes straight on to the game, as before. - With the window shown, the settings file now also goes over `-More` switches of the same name. A shortcut's fixed `-More @{VICTORY_FULLSCREEN='1'}` used to win over what the window showed and saved, so the window showed one thing and the game started with another. - In the game, F1 still saves each change right away (64d4931). In the window it does not: Play saves, and leaving the settings page asks first. The "Launcher" box is written to the same settings file F1 uses (`settings_file()`). - F1's Save And Restart passes `-NoLauncher`, so a restart from the game does not show the window again. - `menu.rs`: - Key handling moved into `Menu::key`, which returns what an action asks for (`Leave`). The game and the launcher handle it each their own way. - `Menu::for_launcher` creates the menu for the window. - The `launcher` flag changes the labels and stops changes from applying while playing. - `menu_look.rs`: `draw_with_hits` also returns where the tabs, rows, `<` `>` and buttons are, for the mouse. The canvas helpers are `pub(super)`. - New `windows` features: `Win32_Graphics_Imaging` (WIC, for the banner picture), `Win32_System_Com`, and `Win32_UI_Controls_Dialogs` (the file picker). `apps/victory` now depends on `victory-gpu` directly. ### No pictures in the repository Following `docs/asset-policy.md`, the repository stays text only, and `cargo xtask policy` passes. - "PC" and "PLAY" are outlines (`launcher_shapes.rs`, lists of points). They are filled in code with non-zero winding and smoothed edges. - They come from my design for the window. "PC" is set in Montserrat: SIL Open Font License 1.1, Copyright 2011 The Montserrat Project Authors. - The banner ships empty. Everyone adds their own picture, which stays on their machine. - I made a picture for it. If you would like one in the repository by default, that would need an exception in `xtask/src/policy.rs`, which is your call. ## Limits - The window is shown by `play-foxhound.ps1` only. Starting `victory.exe` with no command (`play`) does not show it. - Check updates needs `git` on the PATH. - The first step of Build shaders (translating every shader) has no known total, so its share of the bar is an estimate. The pipelines, which are most of the time, are counted exactly. - The summary line also names "Ultrawide" when `VICTORY_MENU_ULTRAWIDE` is set (from #137). Without #137 it never shows. ## Tests - New `reads_preload_lines`: preload's own output lines move the bar through its three steps. - New `preview`: with `VICTORY_LAUNCHER_PREVIEW=<path>`, it writes the window (empty banner, image editing, a build under way) as .bmp files. - `cargo test -p victory-gpu menu` passes. `cargo xtask policy` passes. - Used on an RTX 5080 at 3440x1440 (window and borderless). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
`victory launcher`, shown by play-foxhound.ps1 before the game and drawn as
the F1 menu is: what the start uses, Play, the F1 settings page (mouse and
keys, a back arrow, an unsaved-changes question), Check updates (git
ls-remote, nothing fetched), GitHub, Build shaders (`victory preload` with a
progress bar read from its lines; Stop keeps what is done; asks before
building again), a box to skip the window next time (-Launcher or Shift
brings it back), and a banner whose picture each user adds and frames
(kept under %LOCALAPPDATA%\victory; the repository stays text only, "PC"
and "PLAY" are outlines). The script starts again with what it saved; with
the window shown, the settings file goes over -More's switches of the same
name. DLSS Model and DLSS get descriptions in the menu.

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

@⁠starrockanonigtavi-collab on GitHub · 2026-11-27 23:57 UTC · original

No Copyright ... i made this image example.

Captura de pantalla 2026-11-27 175620
**@⁠starrockanonigtavi-collab** on GitHub · 2026-11-27 23:57 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/519#issuecomment-7230536306) No Copyright ... i made this image example. <img width="1452" height="860" alt="Captura de pantalla 2026-11-27 175620" src="https://github.com/user-attachments/assets/9f9869ed-c476-45e2-8435-d0d0548750a0" />
github-bot changed title from Launcher to Launcher window before the game: Play, the F1 settings with the mouse, update check, shader build with progress 2026-11-28 00:04:36 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/host/menu.rs
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/519/head:github-bot/gh-519'
git switch 'github-bot/gh-519'

Merge

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