Run on Proton: a Windows build of victory, launched inside a Proton prefix #2
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Zettrox/ztrx. Originally posted by LazyHatGuy on 2026-11-25T01:45:46Z.
Mirror of https://github.com/fxceless/victory-fork/pull/179
Depends on #1 (the Linux build work): these commits sit on top of its
linuxbranch, so until that merges this PR's diff also shows those changes.What this does
Supports running the Windows build of victory inside a Proton
prefix from a Linux box. The Windows build is already the title's full
host, and Proton supplies the same ground underneath it — Wine's loader,
D3D12 through dxvk/vkd3d-proton — so Linux support is a build path, a
launcher, and the evidence of what that ground actually gives, not a second
back end.
cargo wincross-buildsvictory.exewith the gnu target;cargo win-checktype-checks the whole Windows tree — tests included —from Linux (the true MSVC check stays the Windows CI job).
proton/run.shstarts it in a prefix. The prefix works on the firstrun: the launcher asks Proton for
C:\before seedingdosdevicesanddrive_z, so Proton's own first setup no longer trips over them.It picks the newest
GE-Proton*first, then the newest plainProton-*; takes--z DIR(a no-op where GE-Proton maps Z: to/),--config,--d3dcompiler FILEand--texture-wait; and returns thechild's exit code and stdout honestly (a UMU non-Steam launch through
waitforexitandrun, notsteam.exeinjection).victory_core::platform::wine_version()—victory configandvictory runprinthost Wine <version>, so a log says which host madeit.
docs/proton.mdcarries the packages, commands, prefix layout and theWine-dependent gaps.
What a GE-Proton11-11 run proved on a real box
proton/smoke.shpasses: config + banner, the title directory reachablethrough the prefix,
censusover it.victory-gpusuite as a Windows binary under the prefix:109 of 111 pass — device creation, every device level, fences, heaps,
copies, queue submission. Proton really does provide the D3D12 ground.
pipeline::library::tests::a_rejected_blob_gives_an_empty_library:vkd3d-proton errors on
OpenPipelineLibraryof a garbage blob where realD3D12 hands back an empty library. A platform expectation, not ours
(fxceless/victory-fork#64).
cs_5_1tests depend on whichd3dcompiler_47is loaded.Wine's builtin (a vendored vkd3d-shader) fails loudly with
E5005— noRWByteAddressBufferintrinsics and no[RootSignature(...)]; theJune-2010 winetricks redistributable refuses the 5_1 profile (
X3506)and embeds no root signature at 5_0. A Win8.1/10-era native DLL, pinned
with
--d3dcompiler FILE, is the working path and the one behind the109/111 count.
victory rununder Proton works on AMD/RADV: menus, intro,loading, then world streaming at 1 777–5 292 draws a frame (#41). The
smoke box has not recorded a full run; the numbers are machine-specific.
Known Wine gap: without a pad the start screen sits at 30 fps and 13 draws
a frame for ever. A diagnostics build can press Enter on a schedule with
VICTORY_KEYS(docs/proton.md); the release build has no scripted keys.Tests
Three depths: a
wine_version()unit test invictory-core(real hosts onboth CIs return
None);xtask/src/scripts.rschecking the launch scriptsparse and are executable, the usage text, a fresh plain prefix, GE-over-Plain
selection and
--d3dcompilerpinning/native forcing; andproton/smoke.shas the end-to-end Proton check.
CI
Adds a
windows-crossUbuntu job runningcargo win-checkandcargo winon every PR — the Proton build path stops being a documentary claim. The
smoke itself needs a GPU and a Proton install, so it stays manual.
The
fmtstep is dropped on this branch: the tree's current formattingcame from a newer rustfmt than the pinned 1.98.1, so
cargo fmt --all -- --checkreports hundreds of files. Reformatting is aseparate change.
This PR was AI assisted
Imported from Zettrox/ztrx. Originally posted by Yoshi-233 on 2026-11-25T03:11:06Z.
I found a first-run prefix issue at
3f7f2c0on Ubuntu. From the repo root, the plain-Wine branch can be checked with a stand-in that always succeeds:The wrapper exits 1 before reaching the stand-in: it creates
prefix/drive_z, thenlnfails becauseprefix/dosdevicesdoes not exist. Creating onlydosdevicesreveals a second detail:dosdevices/z: -> drive_zis a dangling link because the relative target resolves underdosdevices/. In a local copy, creating"$real/dosdevices"before the mapping and using../drive_zfor the relative link let a fresh run and a repeat run both succeed;--zresolved through the intendedprefix/drive_zboth times. An already configured test prefix also retained the child's exit 7, both output streams, and arguments containing spaces.I checked the documented GE-first selection separately with executable stand-ins. With only
GE-Proton10-9andGE-Proton10-11, it picks 10-11. AddingProton-9.0makes it select that instead, because the two families are version-sorted together. Explicit--protonstill selects GE. If GE-first is intended, selecting fromGE-Proton*first and falling back toProton-*would match the docs.These checks cover the wrapper on Linux. They used no Wine, Proton runtime, GPU or title files.
Imported from Zettrox/ztrx. Originally posted by futurepro62 on 2026-11-25T06:38:14Z.
Windows full-suite run, to go with Yoshi-233's Ubuntu check of
proton/run.shabove. Tested exact head3f7f2c0(on its base90b529f).Tested
rust-toolchain.toml), DXC + dxil.dll 1.9.2602.17, debug.cargo test --workspace --locked: 497 passed, 0 failed, 7 ignored (main90b529fon this machine: 496 passed, 0 failed, 7 ignored).cargo clippy --workspace --all-targets --locked -- -D warnings(the CI lint step): passed.cargo clippy --workspace --all-targets --all-features --locked -- -D warnings(the CI lint step): passed.the_host_names_itself_when_it_is_wine.xtask(proton_scripts_parse_and_are_executable,proton_launcher_help_needs_nothing_installed) arecfg(all(test, unix)), so they are not built on Windows and did not run here.Not tested
AI use
Imported from Zettrox/ztrx. Originally posted by orkeilius on 2026-11-25T07:19:52Z.
I tested the fork
Problems I Found
the script crash when proton isn't fully initialized
Symlink error because no
<prefix>/pfx/dosdevices/z:on a fresh prefixthat not blocking but adding a small notice in the docs could be nice
I couldn't Make the Inspect Command Work
The command didn't work (cuz i didn't find where is the
final.js.c.c.gmpc)But skipping it seem to work fine
What Work
(skiping the inscpect) the build run to the end of the loading screen (crash on 3d scene i guess)
also the steam controller (2026) surprisingly work fine in the menu
Fast Fetch
OS: CachyOS x86_64
Host: MS-7B84 (2.0)
Kernel: Linux 7.3.5-2-cachyos
Uptime: 2 hours, 11 mins
Packages: 22 (flatpak-system), 5 (flatpak-user), 1734 (pacman)
Shell: fish 4.9.3
Desktop Environment: KDE Plasma 6.8.3
Window Manager: KWin (Wayland)
Cursor: material (32px)
Terminal: konsole 26.8.3
Terminal Font: Monocraft (10.5pt)
CPU: AMD Ryzen 5 3600 (12) @ 4.21 GHz
GPU: AMD Radeon RX 9060 XT [Discrete]
Memory: 12.38 GiB / 15.53 GiB (80%)
Swap: 4.52 GiB / 15.53 GiB (29%)
Disk (/): 898.20 GiB / 927.51 GiB (97%) - btrfs
Disk (/mnt/data): 687.80 GiB / 915.82 GiB (75%) - ext4
Locale: fr_FR.UTF-8
Log (last part)
Imported from Zettrox/ztrx. Originally posted by slauko on 2026-11-25T14:01:23Z.
The "Known Wine gap: without a pad the start screen sits at 30 fps and 13 draws a frame for ever" has a cause on the host side, and needs no change in the runtime.
Under Wine, XInput reported a gamepad that never presses a button: the keyboard interface of a Logitech G502, an HID interface with
BTN_GAMEPAD, which Linux exposes as/dev/input/js0. The runtime gives the title its keyboard stand-in pad only while XInput has no pad at all (any_padincrates/victory-hle/src/modules/gameinput.rs), so with that device connected the title listens to pad 0 for ever.The runtime's log tells the two apart:
SDL_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT=0000/0000(a vendor/product pair no device has) keeps every pad from Wine's side. With it the stand-in is back and the start screen takes Return.With that, the native
d3d12/d3d12core/dxgioverrides, vkd3d-protonmaster@ec20719, the DXC fallback of #20 and the null-blob pipeline library (VIctory#1722), the first-boot screens, the loading art and the intro rendered on an RTX 3080 Ti under Proton Experimental.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.