A launcher: install, update and play from one window #2982

Open
github-bot wants to merge 4 commits from github-bot/gh-2982 into main AGit
Owner

@⁠Danijimzzz on GitHub · 2026-11-29 19:12 UTC · original
Danijimzzz:launcher → main · +10829 −0 · 18 files · 4 commits · open

What it changes

The README's easy way is "download victory.exe, put it beside the game, double-click". It works, but it leaves players who have never used git or a terminal on their own for everything after that: updating, trying a fix that is only on main, picking settings for their card, getting NVIDIA's/AMD's/Microsoft's files, preloading shaders, and finding out why a start did nothing.

This adds launcher/: a small Windows program (Rust + egui, one .exe) that does all of that from one window, in English and Spanish.

Getting victory.exe

  • Stable: victory.exe from the newest GitHub release, its SHA-256 checked against the digest GitHub gives for the asset.
  • Latest (main): the newest main as a source archive (no git), built on the PC with cargo build --release --locked -p victory. If Rust or Visual Studio's C++ build tools are missing it installs them through winget (one button); rustup fetches the version rust-toolchain.toml pins. The target folder is kept between updates, so later builds only rebuild what changed.
  • The version before an update is kept, and one button puts it back.
  • A three-step first start: pick game_scarlett_master.exe, pick the channel, tick the optional downloads (get-dlss, get-fsr, get-d3d12; Direct3D 12 is pre-ticked on Windows 10). They are fetched by victory.exe itself, as now.

Playing

  • PLAY runs victory.exe play <game> [--preload] [--set …]: nothing is re-implemented, play.rs decides everything as it does for a double click. There is no console window (DLSS Enabler stays off in a process that has one, as play-foxhound.ps1 notes), and the output goes to %LOCALAPPDATA%\victory\logs\launcher-<time>.log.
  • Profiles: Performance (Series S), Balanced (Series X, 1080p to 1440p, DLSS Performance) and Quality (Series X, 1440p, DLSS Quality). One is suggested from the card's memory and the RAM. They are written to victory-settings.txt with the same VICTORY_MENU_* names play.rs reads, so the launcher and the in-game F1 menu always agree. A change in either shows in both, and every other line of that file is kept.
  • Expert mode (off by default): console, resolution, DLSS mode, frame generation 2x to 4x and its type, frame cap, extra --set switches, and the exact command line with a Copy button.
  • When the game opens: keep the launcher, hide it until the game closes (it comes back by itself with the session's result), or close it.

Seeing what is going on
The start is followed from its output, at the bottom of the window:

  • Getting the game ready: a new version's first start prepares the game's code, which takes minutes with no window yet. Before this, it looked like a hidden victory.exe burning CPU and doing nothing.
  • Shader preload: the lines are read the way scripts\preload-window.ps1 reads them. That gives three steps (translating the shaders, making the pipelines earlier runs used, storing the ones the game loads at the start), how far each is, about how long is left, Skip (ends the preload, keeps what it made, then the game starts) and Stop. Step 1 uses the "% of bytes" figure precompile prints. It also shows when play preloads by itself on a new victory.exe's first start.
  • Stop ends play and every process under it (taskkill /T). Closing the launcher before the game is up does the same, so no preload is left running out of sight. A game that is already up keeps running.
  • A start that ends before the game comes up says so, with the exit code and its last lines.
  • Help has a report to paste into an issue (PC, channel and version, settings, command, end of the last log), the logs folder, and answers to the usual problems.

How it fits the repository

  • It is not a workspace member ([workspace] in its own Cargo.toml). Its dependencies (eframe, ureq, zip, resvg, …) stay out of the root Cargo.lock, so VICTORY_TRANSLATOR and everyone's shader cache are untouched. The emulator's build does not change.
  • No image files (docs/asset-policy.md): the Vice City sunset and the icon are SVG text in launcher/src/art.rs, drawn at start-up. The frosted-glass panels are a blurred copy of that background, made once, because egui cannot blur what is behind a panel. The icons are drawn with lines, not emoji. cargo xtask policy --staged: 18 files ok.
  • The log lines it reads are checked by tests against play.rs, run.rs, warm.rs and translate.rs, so if those messages change, cargo test fails instead of the progress silently breaking.
  • CI: two steps added to ci.yml, clippy (-D warnings) and tests for launcher/ through --manifest-path.
  • README: one paragraph under Quick start pointing to launcher/README.md, which describes everything above.

Not in this PR: a built victory-launcher.exe on the releases. For players who don't build anything it only helps once it is attached to each release, like victory.exe. I can add a workflow step for that if you want it.

How it was tested

  • GPU and profile: RTX 3060 12 GB, 32 GB RAM. Stable channel (v2026.11.29.01) and Latest (main) built through the launcher, with the Balanced profile (Series X, 1080p to 1440p, DLSS Performance), no frame generation.
  • Before: n/a (new program; nothing in the emulator changes).
  • After, all done on Windows from the launcher:
    • first-start setup with the DLSS/FSR downloads;
    • Stable install and update, and going back to the previous version;
    • building main;
    • playing with and without "Preload shaders first": progress steps, Skip and Stop, and no victory.exe left behind in Task Manager;
    • profile changes showing up in F1 and back;
    • Keep / Hide / Close when the game opens.
  • For shader changes, the wave sizes tested: no shader changes.
  • cargo test passed for the crates it touches: yes (cargo test --manifest-path launcher/Cargo.toml --locked: 7 passed, 1 ignored with the reason "asks GitHub: needs the network"; clippy -D warnings clean). The workspace and its Cargo.lock are untouched.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #2653 (VIctory Studio, a window inside victory.exe: this launcher is a separate program that also installs and updates victory.exe and builds main, for players who have nothing yet), #2840 (RecompLauncher support, a third-party launcher), #2773 (the preload window and the log's colour codes; the launcher reads the same lines)

🤖 Generated with Claude Code

https://claude.ai/code/session_01XuJSRWfHwn8QZtUsa3NXvt

**@⁠Danijimzzz** on GitHub · 2026-11-29 19:12 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2982) `Danijimzzz:launcher` → `main` · +10829 −0 · 18 files · 4 commits · open ## What it changes The README's easy way is "download `victory.exe`, put it beside the game, double-click". It works, but it leaves players who have never used git or a terminal on their own for everything after that: updating, trying a fix that is only on `main`, picking settings for their card, getting NVIDIA's/AMD's/Microsoft's files, preloading shaders, and finding out why a start did nothing. This adds **`launcher/`**: a small Windows program (Rust + egui, one `.exe`) that does all of that from one window, in **English and Spanish**. **Getting `victory.exe`** - **Stable**: `victory.exe` from the newest GitHub release, its SHA-256 checked against the digest GitHub gives for the asset. - **Latest (main)**: the newest `main` as a source archive (no git), built on the PC with `cargo build --release --locked -p victory`. If Rust or Visual Studio's C++ build tools are missing it installs them through winget (one button); rustup fetches the version `rust-toolchain.toml` pins. The target folder is kept between updates, so later builds only rebuild what changed. - The version before an update is kept, and one button puts it back. - A three-step first start: pick `game_scarlett_master.exe`, pick the channel, tick the optional downloads (`get-dlss`, `get-fsr`, `get-d3d12`; Direct3D 12 is pre-ticked on Windows 10). They are fetched by `victory.exe` itself, as now. **Playing** - **PLAY** runs `victory.exe play <game> [--preload] [--set …]`: nothing is re-implemented, `play.rs` decides everything as it does for a double click. There is no console window (DLSS Enabler stays off in a process that has one, as `play-foxhound.ps1` notes), and the output goes to `%LOCALAPPDATA%\victory\logs\launcher-<time>.log`. - **Profiles**: Performance (Series S), Balanced (Series X, 1080p to 1440p, DLSS Performance) and Quality (Series X, 1440p, DLSS Quality). One is suggested from the card's memory and the RAM. They are written to `victory-settings.txt` with the same `VICTORY_MENU_*` names `play.rs` reads, so **the launcher and the in-game F1 menu always agree**. A change in either shows in both, and every other line of that file is kept. - **Expert mode** (off by default): console, resolution, DLSS mode, frame generation 2x to 4x and its type, frame cap, extra `--set` switches, and the exact command line with a Copy button. - **When the game opens**: keep the launcher, hide it until the game closes (it comes back by itself with the session's result), or close it. **Seeing what is going on** The start is followed from its output, at the bottom of the window: - **Getting the game ready**: a new version's first start prepares the game's code, which takes minutes with no window yet. Before this, it looked like a hidden `victory.exe` burning CPU and doing nothing. - **Shader preload**: the lines are read the way `scripts\preload-window.ps1` reads them. That gives three steps (translating the shaders, making the pipelines earlier runs used, storing the ones the game loads at the start), how far each is, about how long is left, **Skip** (ends the preload, keeps what it made, then the game starts) and **Stop**. Step 1 uses the "% of bytes" figure `precompile` prints. It also shows when `play` preloads by itself on a new `victory.exe`'s first start. - **Stop** ends `play` and every process under it (`taskkill /T`). Closing the launcher before the game is up does the same, so no preload is left running out of sight. A game that is already up keeps running. - **A start that ends before the game comes up** says so, with the exit code and its last lines. - **Help** has a report to paste into an issue (PC, channel and version, settings, command, end of the last log), the logs folder, and answers to the usual problems. **How it fits the repository** - **It is not a workspace member** (`[workspace]` in its own `Cargo.toml`). Its dependencies (eframe, ureq, zip, resvg, …) stay out of the root `Cargo.lock`, so `VICTORY_TRANSLATOR` and everyone's shader cache are untouched. The emulator's build does not change. - **No image files** (`docs/asset-policy.md`): the Vice City sunset and the icon are SVG text in `launcher/src/art.rs`, drawn at start-up. The frosted-glass panels are a blurred copy of that background, made once, because egui cannot blur what is behind a panel. The icons are drawn with lines, not emoji. `cargo xtask policy --staged`: 18 files ok. - **The log lines it reads are checked by tests** against `play.rs`, `run.rs`, `warm.rs` and `translate.rs`, so if those messages change, `cargo test` fails instead of the progress silently breaking. - **CI**: two steps added to `ci.yml`, clippy (`-D warnings`) and tests for `launcher/` through `--manifest-path`. - **README**: one paragraph under Quick start pointing to `launcher/README.md`, which describes everything above. **Not in this PR**: a built `victory-launcher.exe` on the releases. For players who don't build anything it only helps once it is attached to each release, like `victory.exe`. I can add a workflow step for that if you want it. ## How it was tested - GPU and profile: RTX 3060 12 GB, 32 GB RAM. Stable channel (v2026.11.29.01) and Latest (main) built through the launcher, with the Balanced profile (Series X, 1080p to 1440p, DLSS Performance), no frame generation. - Before: n/a (new program; nothing in the emulator changes). - After, all done on Windows from the launcher: - first-start setup with the DLSS/FSR downloads; - Stable install and update, and going back to the previous version; - building `main`; - playing with and without "Preload shaders first": progress steps, Skip and Stop, and no `victory.exe` left behind in Task Manager; - profile changes showing up in F1 and back; - Keep / Hide / Close when the game opens. - For shader changes, the wave sizes tested: no shader changes. - `cargo test` passed for the crates it touches: yes (`cargo test --manifest-path launcher/Cargo.toml --locked`: 7 passed, 1 ignored with the reason "asks GitHub: needs the network"; clippy `-D warnings` clean). The workspace and its `Cargo.lock` are untouched. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #2653 (VIctory Studio, a window inside victory.exe: this launcher is a separate program that also installs and updates victory.exe and builds main, for players who have nothing yet), #2840 (RecompLauncher support, a third-party launcher), #2773 (the preload window and the log's colour codes; the launcher reads the same lines) 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01XuJSRWfHwn8QZtUsa3NXvt
Quick start points to launcher/README.md; launcher/target/ is ignored.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XuJSRWfHwn8QZtUsa3NXvt
The launcher is not a workspace member, so the workspace steps do not build it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XuJSRWfHwn8QZtUsa3NXvt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XuJSRWfHwn8QZtUsa3NXvt
A Windows program in launcher/ for players who do not use git: the newest release or a build of main, profiles shared with F1, the shader preload's progress with Skip/Stop, keep/hide/close when the game opens, and a report for issues.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XuJSRWfHwn8QZtUsa3NXvt
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 19:13:38 +00:00
This pull request has changes conflicting with the target branch.
  • README.md
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/2982/head:github-bot/gh-2982'
git switch 'github-bot/gh-2982'

Merge

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