Steam can start the script launcher, and victory run loads MFG Unlocker #1614

Manually merged
github merged 1 commit from github-bot/gh-1614 into main 2026-11-29 08:21:59 +00:00 AGit
Owner

@⁠tribbedev on GitHub · 2026-11-28 22:23 UTC · original
steam-launcher → main · +427 −11 · 7 files · 1 commits · merged 2026-11-29 08:16 UTC

Fixes #1613

What it changes

Steam can start the script launcher. Steam's Add a Non-Steam Game
browser lists .exe files only, so scripts\play-foxhound.ps1 cannot be
picked there — and a start outside Steam gets neither its overlay nor Steam
Input, which is what a pad that is not XInput (a Stadia controller over
Bluetooth) needs to reach the title.

  • scripts\play-steam.rs, built by scripts\build-steam-launcher.cmd
    (rustc, no crates, no cargo): starts Windows PowerShell with
    play-foxhound.ps1 beside it, hands every argument on, waits for the script
    and for the title the script starts, and returns the script's exit code, so
    Steam counts the game as running and keeps Steam Input on it. A first
    argument that is not a switch is taken as the title's path and gets -Exe
    in front of it, so the launch options can be just that path; started with no
    argument at all, the arguments come from play-args.txt beside the program.
    Nothing is baked in: the title's folder is a parameter, as with the other
    launchers.
  • scripts\play-foxhound.ps1: -More also takes NAME=VALUE, several pairs
    comma-separated in one argument. A command line cannot carry a hashtable
    (-File hands the arguments over as they were typed) and PowerShell takes no
    parameter twice, so from Steam's launch options no switch could be set at
    all. A comma inside a value is left alone (VICTORY_LEAVE_OUT has one).

MFG Unlocker is loaded by a start from the script. victory run --execute
loads it when VICTORY_MFG_UNLOCKER=1 and VICTORY_FRAMEGEN=1 — the
condition victory play loads it under (#955, #1089: with frame generation off
it only puts someone else's hooks in the game's DirectX, for nothing, and on an
RTX 3060 it gave black, glitching textures). The script launcher only ever put
the first switch into the environment and never named the DLL — that was
victory play's doing — so the mod was on in the F1 menu's settings and never
loaded in a game started from the script, or from Steam through it.
play::load_mfg_from_menu looks the DLL up where victory get-mfg puts it,
fetches it where it is missing (turning it on was the choice) and loads it as
victory play does; without frame generation it is left out, not even
fetched, and the start says why.

README: how to start it through Steam (launch options, controller settings, the
pad log switch), the -More form, and what frame generation needs before
frames appear at all. .gitignore: scripts\play-args.txt, which holds one's
own paths.

How it was tested

  • GPU and profile (Series X or S, resolution, DLSS, frame generation, ray
    tracing): GeForce RTX 3080 Ti, Windows 11 x64, Series X profile, -Res 1080to1440, DLSS quality with frame generation 2x set through -More
    for the run (saved settings untouched), ray tracing off.
  • Before: VICTORY_MFG_UNLOCKER=1 in the settings, and no "MFG Unlocker" line
    in any log of a start from the script.
  • After: the log reads MFG Unlocker loaded (...) and the start's notice
    FRAME GEN: DLSS, UNLOCKED BY A MOD. With frame generation off, the start
    says that the mod is on and not loaded. Generated frames themselves show
    only in the game world with the window focused; on the title screen the log
    reads 0 presents with it on (see #1513 for open-world gating).
  • The Steam program itself: built by the .cmd, its three tests pass
    (rustc --test), and a start through it reaches the script and returns its
    exit code (no arguments: usage and 2; a path that is not there: the script's
    own "No ..." and 1). The title itself was not started from Steam for this,
    only from the wrapper.
  • For shader changes, the wave sizes tested (32 and/or 64 lanes): none, no
    shader changes.
  • cargo test passed for the crates it touches: yes — cargo build --release --locked -p victory, cargo test --release --locked -p victory (29 + 2),
    cargo clippy --release --locked -p victory (no new findings; the crate's
    existing warnings are untouched), rustfmt --check on the new file.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files
    this touches. Related: #1089 — MFG Unlocker: loaded only at a start with
    DLSS frame generation
    . This PR follows that rule for victory run; the two
    touch the same play.rs area and the same README paragraph, so whichever
    lands second needs a small rebase (this one adds only the loader for the
    run path, and the fetch it does not need when frame generation is off).
    #1558 (play-foxhound.ps1: NVIDIA/AMD files found) changes another part of
    the same script; #1393 (mouse and keyboard from the script) is what the
    README's note on VICTORY_MNK refers to; #1513 is the gating this run met on
    the title screen.
**@⁠tribbedev** on GitHub · 2026-11-28 22:23 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1614) `steam-launcher` → `main` · +427 −11 · 7 files · 1 commits · merged 2026-11-29 08:16 UTC Fixes #1613 ## What it changes **Steam can start the script launcher.** Steam's *Add a Non-Steam Game* browser lists `.exe` files only, so `scripts\play-foxhound.ps1` cannot be picked there — and a start outside Steam gets neither its overlay nor Steam Input, which is what a pad that is not XInput (a Stadia controller over Bluetooth) needs to reach the title. - `scripts\play-steam.rs`, built by `scripts\build-steam-launcher.cmd` (`rustc`, no crates, no cargo): starts Windows PowerShell with `play-foxhound.ps1` beside it, hands every argument on, waits for the script and for the title the script starts, and returns the script's exit code, so Steam counts the game as running and keeps Steam Input on it. A first argument that is not a switch is taken as the title's path and gets `-Exe` in front of it, so the launch options can be just that path; started with no argument at all, the arguments come from `play-args.txt` beside the program. Nothing is baked in: the title's folder is a parameter, as with the other launchers. - `scripts\play-foxhound.ps1`: `-More` also takes `NAME=VALUE`, several pairs comma-separated in one argument. A command line cannot carry a hashtable (`-File` hands the arguments over as they were typed) and PowerShell takes no parameter twice, so from Steam's launch options no switch could be set at all. A comma inside a value is left alone (`VICTORY_LEAVE_OUT` has one). **MFG Unlocker is loaded by a start from the script.** `victory run --execute` loads it when `VICTORY_MFG_UNLOCKER=1` *and* `VICTORY_FRAMEGEN=1` — the condition `victory play` loads it under (#955, #1089: with frame generation off it only puts someone else's hooks in the game's DirectX, for nothing, and on an RTX 3060 it gave black, glitching textures). The script launcher only ever put the first switch into the environment and never named the DLL — that was `victory play`'s doing — so the mod was on in the F1 menu's settings and never loaded in a game started from the script, or from Steam through it. `play::load_mfg_from_menu` looks the DLL up where `victory get-mfg` puts it, fetches it where it is missing (turning it on was the choice) and loads it as `victory play` does; without frame generation it is left out, not even fetched, and the start says why. README: how to start it through Steam (launch options, controller settings, the pad log switch), the `-More` form, and what frame generation needs before frames appear at all. `.gitignore`: `scripts\play-args.txt`, which holds one's own paths. ## How it was tested - GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): GeForce RTX 3080 Ti, Windows 11 x64, Series X profile, `-Res 1080to1440`, DLSS `quality` with frame generation `2x` set through `-More` for the run (saved settings untouched), ray tracing off. - Before: `VICTORY_MFG_UNLOCKER=1` in the settings, and no "MFG Unlocker" line in any log of a start from the script. - After: the log reads `MFG Unlocker loaded (...)` and the start's notice `FRAME GEN: DLSS, UNLOCKED BY A MOD`. With frame generation off, the start says that the mod is on and not loaded. Generated frames themselves show only in the game world with the window focused; on the title screen the log reads `0 presents with it on` (see #1513 for open-world gating). - The Steam program itself: built by the `.cmd`, its three tests pass (`rustc --test`), and a start through it reaches the script and returns its exit code (no arguments: usage and 2; a path that is not there: the script's own "No ..." and 1). The title itself was not started from Steam for this, only from the wrapper. - For shader changes, the wave sizes tested (32 and/or 64 lanes): none, no shader changes. - `cargo test` passed for the crates it touches: yes — `cargo build --release --locked -p victory`, `cargo test --release --locked -p victory` (29 + 2), `cargo clippy --release --locked -p victory` (no new findings; the crate's existing warnings are untouched), `rustfmt --check` on the new file. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #1089 — *MFG Unlocker: loaded only at a start with DLSS frame generation*. This PR follows that rule for `victory run`; the two touch the same `play.rs` area and the same README paragraph, so whichever lands second needs a small rebase (this one adds only the loader for the `run` path, and the fetch it does not need when frame generation is off). #1558 (`play-foxhound.ps1`: NVIDIA/AMD files found) changes another part of the same script; #1393 (mouse and keyboard from the script) is what the README's note on `VICTORY_MNK` refers to; #1513 is the gating this run met on the title screen.
Steam's "Add a Non-Steam Game" browser lists .exe files only, so
scripts\play-foxhound.ps1 cannot be picked there, and a start outside Steam
gets neither its overlay nor Steam Input — which is what a Stadia controller
needs: over Bluetooth it is a generic HID pad, not XInput, and Steam Input is
what turns it into the virtual Xbox pad the title reads (XInputGetState).

scripts\play-steam.rs, built by scripts\build-steam-launcher.cmd (rustc, no
crates, no cargo), is that script as a program Steam takes: it starts Windows
PowerShell with play-foxhound.ps1 beside it and hands every argument on, waits
for the script and for the title the script starts, and returns the script's
exit code. A first argument that is not a switch is taken as the title's path
and gets -Exe in front of it, so the launch options can be just that path;
started with no argument at all, they are read from play-args.txt beside the
program (one argument a line, # comments).

scripts\play-foxhound.ps1: -More also takes NAME=VALUE. A command line cannot
carry a hashtable (-File hands the arguments over as they were typed, and no
parameter can be given twice), so a Steam launch option could set no switch at
all. Several pairs go comma-separated in one -More; a comma inside a value is
left alone (VICTORY_LEAVE_OUT has one) — only a comma in front of another
NAME= separates.

MFG Unlocker: victory run --execute loads it now, when VICTORY_MFG_UNLOCKER=1
and VICTORY_FRAMEGEN=1 — the condition victory play loads it under (#955: with
frame generation off it only put someone else's hooks in the game's DirectX,
for nothing; #1089 states the same rule there). The script launcher only put
the first switch into the environment and never named the DLL — that was
victory play's doing — so the mod was on in the F1 menu's settings and never
loaded in a game started from the script, or from Steam through it.
play::load_mfg_from_menu looks the DLL up where victory get-mfg puts it,
fetches it where it is missing (turning it on was the choice) and loads it as
victory play does; without frame generation it is left out, not even fetched,
and the start says why.

README: how to start it through Steam (launch options, controller settings and
the pad log switch), the -More form, and what frame generation needs before
frames appear at all. .gitignore: scripts\play-args.txt, which holds one's own
paths.

Verified: cargo build --release --locked -p victory, cargo test -p victory
(29 + 2), the launcher's own tests (3), and starts through the new program: its
log reads "MFG Unlocker loaded (...)" with frame generation on and the start's
notice "FRAME GEN: DLSS, UNLOCKED BY A MOD"; with frame generation off it says
that the mod is on but not loaded.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 22:24:37 +00:00
github manually merged commit 404b1e93a5 into main 2026-11-29 08:21:59 +00:00
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!1614
No description provided.