Add opt-in Linux/Proton helpers and cross-compile guide (secondary, no Windows impact) #228

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

@⁠luniiya on GitHub · 2026-11-24 22:49 UTC · original
luniiya:linux-proton-helpers → main · +94 −0 · 3 files · 2 commits · open

Summary

Adds two strictly opt-in environment switches and a short guide (docs/linux-proton.md) for contributors who are on Linux and want to cross-compile and test victory.exe under Steam Proton / vkd3d-proton.

Important: This is strictly secondary and does not aim to impact Windows work or default behavior in any way. Both switches are off by default; when unset, runtime behavior on Windows is completely unchanged.

Changes

  • VICTORY_LOG_FILE=<path> (crates/victory-core/src/logging.rs): Optionally writes tracing logs to a file (with ANSI disabled) instead of stderr. Useful under Proton where steam.exe swallows console output.
  • VICTORY_SKIP_TITLE_INT3=1 (crates/victory-loader/src/crash.rs): Optionally skips non-fatal int3 (0xcc) breakpoints inside title images (victory-image-*) by advancing Rip += 1 and logging a warning (cached in a OnceLock). Useful under Wine/Proton where non-fatal title asserts otherwise terminate via Breakpad.
  • docs/linux-proton.md: Concise instructions for cross-compiling victory.exe on Linux with cargo-xwin, running under Proton + vkd3d-proton (VKD3D_SHADER_CACHE_PATH, MESA_VK_WSI_PRESENT_MODE=fifo), and a bwrap /dev/dri bind-order note.

Testing

  • Cross-compiled victory.exe (--profile diag --features diagnostics --target x86_64-pc-windows-msvc) via cargo-xwin on Arch Linux with zero warnings/errors.
  • Tested on AMD Radeon RX 7800 XT (RADV / vkd3d-proton) under Proton Experimental: boots, reaches menus at 30 fps, plays intro video, and loads into the world.
**@⁠luniiya** on GitHub · 2026-11-24 22:49 UTC · [original](https://github.com/fxceless/victory-fork/pull/228) `luniiya:linux-proton-helpers` → `main` · +94 −0 · 3 files · 2 commits · open ## Summary Adds two strictly **opt-in** environment switches and a short guide (`docs/linux-proton.md`) for contributors who are on Linux and want to cross-compile and test `victory.exe` under Steam Proton / vkd3d-proton. > **Important:** This is strictly secondary and **does not aim to impact Windows work or default behavior in any way**. Both switches are off by default; when unset, runtime behavior on Windows is completely unchanged. ## Changes - **`VICTORY_LOG_FILE=<path>`** (`crates/victory-core/src/logging.rs`): Optionally writes tracing logs to a file (with ANSI disabled) instead of stderr. Useful under Proton where `steam.exe` swallows console output. - **`VICTORY_SKIP_TITLE_INT3=1`** (`crates/victory-loader/src/crash.rs`): Optionally skips non-fatal `int3` (`0xcc`) breakpoints inside title images (`victory-image-*`) by advancing `Rip += 1` and logging a warning (cached in a `OnceLock`). Useful under Wine/Proton where non-fatal title asserts otherwise terminate via Breakpad. - **`docs/linux-proton.md`**: Concise instructions for cross-compiling `victory.exe` on Linux with `cargo-xwin`, running under Proton + vkd3d-proton (`VKD3D_SHADER_CACHE_PATH`, `MESA_VK_WSI_PRESENT_MODE=fifo`), and a `bwrap` `/dev/dri` bind-order note. ## Testing - Cross-compiled `victory.exe` (`--profile diag --features diagnostics --target x86_64-pc-windows-msvc`) via `cargo-xwin` on Arch Linux with zero warnings/errors. - Tested on AMD Radeon RX 7800 XT (RADV / vkd3d-proton) under Proton Experimental: boots, reaches menus at 30 fps, plays intro video, and loads into the world.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:38:53 +00:00
Author
Owner

@⁠luniiya on GitHub · 2026-11-24 23:51 UTC · original

Thanks for the review @⁠ErRusso! Addressed both points in df04d39:

  1. Updated the launch command to use proton runinprefix (with STEAM_COMPAT_DATA_PATH / STEAM_COMPAT_CLIENT_INSTALL_PATH) or Proton's wine64 binary directly.
  2. Renamed docs/linux-proton.md to docs/linux-cross-compile-proton.md so it won't conflict with #41.
**@⁠luniiya** on GitHub · 2026-11-24 23:51 UTC · [original](https://github.com/fxceless/victory-fork/pull/228#issuecomment-7147867787) Thanks for the review @⁠ErRusso! Addressed both points in `df04d39`: 1. Updated the launch command to use `proton runinprefix` (with `STEAM_COMPAT_DATA_PATH` / `STEAM_COMPAT_CLIENT_INSTALL_PATH`) or Proton's `wine64` binary directly. 2. Renamed `docs/linux-proton.md` to `docs/linux-cross-compile-proton.md` so it won't conflict with #41.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/228/head:github-bot/gh-228'
git switch 'github-bot/gh-228'

Merge

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