feat: anyxboxx run --victory-exe runs a prebuilt VIctory under Proton #228

Manually merged
github merged 6 commits from gh-pr/228/head into gh-pr/228/base 2026-11-26 05:38:50 +00:00
Owner

@⁠Exorion1er on GitHub · 2026-11-25 19:25 UTC · original
Exorion1er:feat/proton-prebuilt-victory → rust/full · +188 −34 · 10 files · 6 commits · merged 2026-11-25 20:29 UTC

Change

Option (a) from #211: anyxboxx.exe run can now run under Proton on Linux.

There is no cargo inside Proton, so anyxboxx run used to stop at cannot start cargo: program not found. The new option --victory-exe <path> (alias --VictoryExe) runs a victory.exe cross-built on the Linux side with --target x86_64-pc-windows-msvc and skips the build. The repository is then not needed. Without the option nothing changes: the repository is located and VIctory is built with cargo, as before.

  • Victory::prebuilt(exe). Victory::build_command() now returns Option<Command>, which is None for a prebuilt exe. A missing exe is an explicit error (victory.exe not found: '…') before anything runs.
  • The "repository not found" check moved from main.rs into run(), so it applies only when VIctory has to be built. The message is unchanged.
  • The graphical launcher only follows the new type. It skips the build step when there is none and otherwise behaves the same. It has no --victory-exe yet, so its Play and Shaders pages still need cargo, which fails under Proton. That is noted in the docs.
  • docs/rust-full-status.md and docs/fr/rust-full-status.md get a Linux (Proton) section:
    • native Linux builds are not supported;
    • the cross-build commands;
    • the kernelx / d3d12_xs lib.exe limit;
    • the --victory-exe launch;
    • anyxboxx run sets the Windows TUNED values, not the linux-amd profile, and VKD3D_CONFIG=descriptor_heap has to be exported.
  • CI now runs on pull requests into rust/full (.github/workflows/tests.yml, pull_request: branches: [main, rust/full]). Before this, PRs into rust/full got no CI at all. Its first run here found the runtime/build/bin copy failure that you fixed in 7bc532b. That fix is merged into this branch, so this PR doesn't touch rust_dlls.cmake.

Not done: VICTORY_DXC in linux-amd. third_party/victory on rust/full never reads VICTORY_DXC. It only exists in my old fork's victory-gpu/src/dxc.rs, and the only DXC variable here is the test-only VICTORY_PC_DXC. The header of profiles.toml says every variable is read by VIctory, so adding it would be a silent no-op. If we want DXC under Wine, that's a port of the fork's dxc.rs into third_party/victory first, in a separate PR.

Verification

Fedora 44, RX 9070 XT (RADV), GE-Proton (Latest), Rust 1.98.1. Everything was cross-built with xwin + lld-link, and the tests ran through Proton's wine as cargo's runner:

cargo test --release --workspace --target x86_64-pc-windows-msvc --exclude anyxboxx-kernelx --exclude anyxboxx-d3d12-xs
                                         → 202 passed, 0 failed (6 new in run::tests)
cargo clippy --release --workspace --all-targets (same target, same excludes) → 0 warnings
cargo fmt --check -p anyxboxx -p anyxboxx-launcher → clean
ruff check --select W605,F,E9 PrototypeScarlett tests tools → All checks passed!
  • New tests:
    • Rust: prebuilt exe has no build command; located VIctory builds with cargo; missing prebuilt exe is refused before anything runs; prebuilt does not need the repository; no prebuilt and no repository → NoRepo.
    • tests/test_anyxboxx_run.py: 3 cases next to the existing ones. The fake prebuilt is named prebuilt.exe, so the log proves which exe ran; cargo.exe stays on the PATH, so any build call would show.
    • These Python cases need Windows PowerShell for the fake tool, so they only run on Windows CI. Not run locally. They pass on CI: test_anyxboxx_run.py 12/12 (run 45688465272).
  • Smoke test under Proton, with a stand-in exe:
    • without --victory-exe: cannot start cargo: program not found, exit 1 (the bug);
    • with it: the prebuilt exe receives run <game>\game_scarlett_master.exe --execute, and its exit code is passed on;
    • missing exe: victory.exe not found, exit 1.
  • Real game (my own copy) under Proton, anyxboxx.exe run --no-tuned-settings --victory-exe <cross-built rust/full diag victory.exe> with the linux-amd values exported by hand:
    • Run 1: --precompile with a cold cache: shaders.rpf 26,503 containers in 125 s (25,635 translated, 254 refused), then the exe and the 2 DLLs (286 refused in all). Then the menu at 30 fps (33.3 ms/frame). Measured from VIctory's log and its window title.
    • Run 2: warm cache, VICTORY_KEYS Enter presses. Menu at 30 s, world reached about 3 min after launch, settling at 3.7 fps (272 ms/frame, ~4,000 draws/frame) from VIctory's host stats line. That is close to the 266 ms median from #199. It covers only about 30 s of settled world before I closed the window, so it's not a long-run measurement.
    • Observed in game (by eye): gameplay is reached, but characters are missing geometry and textures are missing. That comes from VIctory on rust/full under RADV, not from this change. I haven't compared it with my older local build on the same scene yet.

Checklist

  • One behaviour: anyxboxx run with a prebuilt VIctory (plus the docs for it).
  • Tests fail without the change: the Rust tests don't compile without --victory-exe / prebuilt, and the Python cases would log a cargo call.
  • Commands and results above.
  • No game, console or SDK file. The numbers come from running my own copy.
  • CI green on this PR (run 45688465272: lint, VIctory policy, pytest 1260 passed, 5 skipped).

Made with AI assistance (Claude Code).

🤖 Generated with Claude Code

**@⁠Exorion1er** on GitHub · 2026-11-25 19:25 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/228) `Exorion1er:feat/proton-prebuilt-victory` → `rust/full` · +188 −34 · 10 files · 6 commits · merged 2026-11-25 20:29 UTC ## Change Option (a) from #211: `anyxboxx.exe run` can now run under Proton on Linux. There is no cargo inside Proton, so `anyxboxx run` used to stop at `cannot start cargo: program not found`. The new option `--victory-exe <path>` (alias `--VictoryExe`) runs a `victory.exe` cross-built on the Linux side with `--target x86_64-pc-windows-msvc` and skips the build. The repository is then not needed. Without the option nothing changes: the repository is located and VIctory is built with cargo, as before. - `Victory::prebuilt(exe)`. `Victory::build_command()` now returns `Option<Command>`, which is `None` for a prebuilt exe. A missing exe is an explicit error (`victory.exe not found: '…'`) before anything runs. - The "repository not found" check moved from `main.rs` into `run()`, so it applies only when VIctory has to be built. The message is unchanged. - The graphical launcher only follows the new type. It skips the build step when there is none and otherwise behaves the same. It has no `--victory-exe` yet, so its Play and Shaders pages still need cargo, which fails under Proton. That is noted in the docs. - `docs/rust-full-status.md` and `docs/fr/rust-full-status.md` get a **Linux (Proton)** section: - native Linux builds are not supported; - the cross-build commands; - the `kernelx` / `d3d12_xs` `lib.exe` limit; - the `--victory-exe` launch; - `anyxboxx run` sets the Windows `TUNED` values, not the `linux-amd` profile, and `VKD3D_CONFIG=descriptor_heap` has to be exported. - **CI now runs on pull requests into `rust/full`** (`.github/workflows/tests.yml`, `pull_request: branches: [main, rust/full]`). Before this, PRs into `rust/full` got no CI at all. Its first run here found the `runtime/build/bin` copy failure that you fixed in `7bc532b`. That fix is merged into this branch, so this PR doesn't touch `rust_dlls.cmake`. **Not done: `VICTORY_DXC` in `linux-amd`.** `third_party/victory` on `rust/full` never reads `VICTORY_DXC`. It only exists in my old fork's `victory-gpu/src/dxc.rs`, and the only DXC variable here is the test-only `VICTORY_PC_DXC`. The header of `profiles.toml` says every variable is read by VIctory, so adding it would be a silent no-op. If we want DXC under Wine, that's a port of the fork's `dxc.rs` into `third_party/victory` first, in a separate PR. ## Verification Fedora 44, RX 9070 XT (RADV), GE-Proton (Latest), Rust 1.98.1. Everything was cross-built with xwin + `lld-link`, and the tests ran through Proton's `wine` as cargo's runner: ``` cargo test --release --workspace --target x86_64-pc-windows-msvc --exclude anyxboxx-kernelx --exclude anyxboxx-d3d12-xs → 202 passed, 0 failed (6 new in run::tests) cargo clippy --release --workspace --all-targets (same target, same excludes) → 0 warnings cargo fmt --check -p anyxboxx -p anyxboxx-launcher → clean ruff check --select W605,F,E9 PrototypeScarlett tests tools → All checks passed! ``` - **New tests:** - **Rust:** prebuilt exe has no build command; located VIctory builds with cargo; missing prebuilt exe is refused before anything runs; prebuilt does not need the repository; no prebuilt and no repository → `NoRepo`. - **`tests/test_anyxboxx_run.py`:** 3 cases next to the existing ones. The fake prebuilt is named `prebuilt.exe`, so the log proves which exe ran; `cargo.exe` stays on the PATH, so any build call would show. - These Python cases need Windows PowerShell for the fake tool, so they only run on Windows CI. **Not run locally.** They pass on CI: `test_anyxboxx_run.py` 12/12 (run `45688465272`). - **Smoke test under Proton,** with a stand-in exe: - without `--victory-exe`: `cannot start cargo: program not found`, exit 1 (the bug); - with it: the prebuilt exe receives `run <game>\game_scarlett_master.exe --execute`, and its exit code is passed on; - missing exe: `victory.exe not found`, exit 1. - **Real game (my own copy) under Proton,** `anyxboxx.exe run --no-tuned-settings --victory-exe <cross-built rust/full diag victory.exe>` with the `linux-amd` values exported by hand: - **Run 1:** `--precompile` with a cold cache: `shaders.rpf` 26,503 containers in 125 s (25,635 translated, 254 refused), then the exe and the 2 DLLs (286 refused in all). Then the menu at 30 fps (33.3 ms/frame). Measured from VIctory's log and its window title. - **Run 2:** warm cache, `VICTORY_KEYS` Enter presses. Menu at 30 s, world reached about 3 min after launch, settling at **3.7 fps (272 ms/frame, ~4,000 draws/frame)** from VIctory's `host` stats line. That is close to the 266 ms median from #199. It covers only about 30 s of settled world before I closed the window, so it's not a long-run measurement. - **Observed in game (by eye):** gameplay is reached, but characters are missing geometry and textures are missing. That comes from VIctory on `rust/full` under RADV, not from this change. I haven't compared it with my older local build on the same scene yet. ## Checklist - [x] One behaviour: `anyxboxx run` with a prebuilt VIctory (plus the docs for it). - [x] Tests fail without the change: the Rust tests don't compile without `--victory-exe` / `prebuilt`, and the Python cases would log a `cargo` call. - [x] Commands and results above. - [x] No game, console or SDK file. The numbers come from running my own copy. - [x] CI green on this PR (run `45688465272`: lint, VIctory policy, pytest 1260 passed, 5 skipped). Made with AI assistance (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Under Proton there is no cargo, so `anyxboxx run` stopped at "cannot start
cargo". `--victory-exe <path>` (alias `--VictoryExe`) runs a victory.exe
cross-built on the Linux side (`--target x86_64-pc-windows-msvc`) and skips
the build; the repository is then not needed. Without the option nothing
changes: the repository is located and VIctory is built with cargo.

`Victory::build_command` returns `None` for a prebuilt exe; the graphical
launcher skips the build step in that case and otherwise behaves as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Native Linux builds are not supported (VIctory only builds for Windows);
cross-build both workspaces with `--target x86_64-pc-windows-msvc`.
kernelx and d3d12_xs still need MSVC's lib.exe for their forwarder .exp.
Launch through Proton's wine with `anyxboxx.exe run --victory-exe`, with
VKD3D_CONFIG=descriptor_heap and, for the linux-amd values, --no-tuned-settings.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pull requests into rust/full got no CI: the workflow only ran for pull
requests into main. rust/full is the integration branch of the move to
Rust (#211) and takes contributors' pull requests until it is merged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
On a fresh build tree the rust_dlls target can run before any C++ target
has made runtime/build/bin, and file(COPY_FILE) does not create the folder:
"failed to copy ... because: No such file or directory (output)". Seen on
the first CI run of a pull request into rust/full; local trees that were
built before never hit it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	runtime/rust_dlls.cmake
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:38:47 +00:00
github manually merged commit da69a9d4b6 into gh-pr/228/base 2026-11-26 05:38:50 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.