Launcher automation for the Steam build of World of Tanks EU. Steam still
launches the game (overlay, playtime and tracking intact); this only
replaces the manual Play click with a scripted boot: headless WGC
broker → settle → game exe, all inside a single Proton/wine session so
the WGCS_IPC token pipe is shared. Login happens via the genuine
token2 SSO — no credentials stored, no traffic modified, no gameplay
touched.
wot-launch.sh— Steam launch-options entry point (dispatcher). Default modeoneclick; see Modes below.wot_boot.bat— runs inside wine: starts the broker with--background, waits for its IPC server to come up (polls the broker's own log forGameCenter initialization finished, 45 s cap), thenstart /waits the game exe via itsS:\…path (the broker only accepts the game folder in that form).
Live copies live in ~/.local/bin/wot-oneclick/; this directory is the
source of truth — edit here, copy out to deploy.
Steam → World of Tanks → Properties → Launch Options:
[PROTON ENV VARS] $HOME/.local/bin/wot-oneclick/wot-launch.sh %command%
(Keep your own env prefix, e.g. ProtonDB tuning like
PROTON_NO_FSYNC=1, WINE_CPU_TOPOLOGY=… — only the trailing
<script> %command% part matters.)
%command% substitution is what makes the rewire possible: Steam
expands it to its normal proton … wgcs_api.exe invocation and our
script receives that as arguments, inheriting the full Steam context
(container, SteamGameId, Steam client IPC, GPU env).
- Script ensures the
s:drive symlink (→ $HOME/.local/share/Steam; Proton prunes it on some startups, WGC'sS:\…paths need it). - Copies
wot_boot.batto/tmpso wine seesZ:\tmp\wot_boot.bat. execs a singleproton waitforexitandrunon the batch → one wineserver → broker and game share the pipe namespace.- Broker onboards headless (Steam ticket → token2 tails, ~5–10 s).
- Once the broker reports a finished initialization (~2.5 s) the game
starts,
VerifyGameImportedsees theS:\…folder, pulls a tail, logs in. Hangar, zero clicks. - After account-done,
wgc.exemay be killed (it leaks RAM under Proton/CEF); the game holds its session. Reconnect-after-drop is the one path that may want the broker back — supervisor respawn is planned, not yet implemented.
oneclick— production path above.transparent— log + exec the original Steam command (stock behavior).wgc-noopen,wgc-background,game-sdirect,full-direct— retired matrix experiments (two-proton split-brain, windowed broker). Kept for debugging;game-sdirect/full-directare known-broken (separate wineservers can't share the pipe).
- Steam build of WoT (WGC publication), Proton Experimental, verified
against WoT EU 2.4.1.0, Oct 2026.
s:mapping,wgcs_api.exechain and token2 SSO are Steam-build specifics. - The wait is a readiness poll, not a fixed sleep, because the game's
WGC client does not retry: its first call must find
\\.\pipe\WgIpcPipeor it bails out with the "relaunch via Steam" dialog (too-short costs a full restart). The broker logsGameCenter initialization finished~2.3 s after its log starts and finishes Steam onboarding ~0.4 s later, so the batch polls for that marker plus a 3 s cushion — ~6 s from click to game instead of 45 s. The poll has to live inside the wine session (batch side) to preserve the single-wineserver pipe sharing. If the marker ever disappears from a future WGC log format the tick cap degrades to the old 45 s wait rather than hanging. - If the game shows the "relaunch via Steam" dialog, the broker wasn't
reachable (pipe split or dead) — check
wgc_*.logfor8023/VerifyGameImportedlines. - Fair-play: this automates launching with genuine credentials only. It does not alter game functionality; still, any third-party process around the client is used at your own risk.