mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #1819] [MERGED] TOOLS-WINE-GAME-RUN: scripts/run_game_wine.sh, one bounded retail run under Wine with a counts-only summary #1832
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1832
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1819
Author: @aslan2142
Created: 11/25/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:tools-wine-game-run📝 Commits (1)
597cf76TOOLS-WINE-GAME-RUN: scripts/run_game_wine.sh, one bounded game run under Wine📊 Changes
7 files changed (+926 additions, -1 deletions)
View changed files
📝
docs/README.md(+1 -1)📝
docs/linux.md(+1 -0)📝
docs/linux_proton.md(+46 -0)➕
scripts/run_game_wine.sh(+293 -0)➕
tests/test_game_run_summary.py(+158 -0)➕
tests/test_run_game_wine.py(+202 -0)➕
tools/game_run_summary.py(+225 -0)📄 Description
Claim:
TOOLS-WINE-GAME-RUN(https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7162247285)What
scripts/run_game_wine.shrunsgta6rt.exe --runonce under Wine on Linux, with the startup and D3D12 traces on.kwin_wayland --virtual --xwaylandsession, or on the current display with--visible. Xvfb has no DRI3, so RADV can't present there.LEONIDA_AUDIO=silentmakes the runtime serve the silent output endpoint from #1598.--device VID:DIDpins the Vulkan device (MESA_VK_DEVICE_SELECT). Without it, the script warns that Mesa picks one.LEONIDA_*variables pass through,LEONIDA_INPUT_SCRIPTincluded.--screenshot-every Scaptures the game window into the run folder. The shots are game content and stay local.--build,--exe,--game-dir,--shaders,--out); nothing is user-specific.tools/game_run_summary.pyprints counts only and never a log line: run time, how the run ended, exceptions, D3D12 calls by outcome, presents, the top failing calls, and log categories with digits masked. The summary can be shared in issues; the run folder's own logs may quote what the title prints and stay local.Why
There was no repeatable way to run the retail game under Wine and share the result safely. This complements #851 (the optional native launcher to check, build and start the port) and
scripts/run_wine_session.sh(unit tests under Wine).Tested
tests/test_run_game_wine.py(9 cases): the script against stubwine/setsid, with no Wine or game. It coversbash -n,--help, missing and wrong arguments, the missing-kwin_waylandmessage, noDISPLAY, a held lock, and a whole--visiblerun.tests/test_game_run_summary.py(8 cases): synthetic run folders, including a check that planted log text is never echoed.tests/test_docs_*.py,test_text_write_line_endings,test_ci_registration,test_ctest_registrationandtest_shell_launcherspass, as docompileallandcheck_no_game_data.py.--visiblerun of the retail 1.0.2.1 package onmain0d80bc5df: 3,752 presents, the silent endpoint served, 4 failedCreatePipelineStatecalls, stopped at the limit.GPUs tested: AMD Radeon RX 7900 XTX, Mesa RADV, Wine 11.22 (Staging), Arch Linux (kernel 7.3, zen).
AI-assisted (Claude Code, Claude Opus 5.5).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.