Steam Utility Launcher
Downloads game utilities from GitHub releases and launches them. On Linux it
runs them within the same Proton prefix the game uses, so trainers and practice
tools function properly. On Windows the same utilities are downloaded, updated
and run directly, and the things that are about Steam rather than Proton work
too: adding the non-Steam game entries, Dark Souls II's controls and its Steam
Input layout. What is about Proton itself (proton, manual, prefix-path,
enable-hwid-access, and the options of rotk-launcher and zemu that tune
the game under Proton) is Linux-only: on Windows those commands say so and
exit, and those options aren't accepted.
Installation
pipx install steam-utility-launcher
Usage
Note: Always launch the game first, then run the utility. The tool runs inside the game's already-running Proton wineserver, so the game must be open before the launcher is invoked.
Global flags (--log-file, -v, -q, --debug) must come before the
subcommand name:
steam-utility-launcher --debug dsr-gadget # correct
steam-utility-launcher dsr-gadget --debug # ignored
Preset utilities
After launching Dark Souls: Remastered, run DSR-Gadget:
steam-utility-launcher dsr-gadget
After launching Hitman WoA, run the Peacock private server:
steam-utility-launcher hitman-peacock
Linux note: Peacock requires
nodeto be installed and in yourPATH(node chunk0.jsis run directly, outside of Wine). Peacock user data (userdata/,contracts/,contractSessions/) is preserved across updates.
After launching Dark Souls: Remastered, run SilkySouls:
steam-utility-launcher silky-souls
Install and run ROTK Launcher for Z1 Battle Royale. On Linux this runs as a Steam shortcut, so Steam runs Proton (in its runtime container) as it does for any game. Run the command on its own and it sets the shortcut up and starts it:
steam-utility-launcher rotk-launcher --max-fps 150
This adds a non-Steam game, "Z1 Battle Royale (ROTK)", to your Steam library, with
SVT-GE-Proton (see below) as its compatibility tool, ROTK
Launcher's own icon (copied out of the installed launcher once it's there),
Z1 Battle Royale's banner, capsules and logo (copied from Steam's library
cache, if it has them; images you set yourself are kept, and Steam needs a
restart to show them),
and the options you gave baked into its launch options
(... rotk-launcher --max-fps 150 -- %command%). Then it has Steam start it
(--no-launch leaves that to you), so the first run is also the first launch:
it makes the shortcut's own prefix, installs ROTK Launcher in it and sets it
up, which takes a while. The game's files are copied by ROTK Launcher from the
Steam library Z1 Battle Royale is installed in, so that must be installed.
Steam keeps its library in memory and ignores changes made to its files while
it runs, so when the shortcut has to be added or changed, Steam is closed first
(you're asked; -y skips the question) and started again by the launch. Run
it again with different options and it updates the shortcut's launch options
to match and tells you what it changed. Run it again with the same options, or
with none, and nothing is touched or closed: it just starts the shortcut. The
options can also be edited in the shortcut's Properties in Steam, and work the
same: they go between rotk-launcher and the --.
On Windows it works the same way, with nothing to wrap: the entry runs this
program itself (steam-utility-launcher rotk-launcher --run-from-steam), which
installs ROTK Launcher if it isn't, then runs it. Run
steam-utility-launcher rotk-launcher on its own to add that entry and start
it; Steam is closed and started again for that as on Linux. The options that
tune the game under Proton (--hud, --max-fps, --vsync, the TPM and
overlay ones) aren't there, as the game isn't running under DXVK.
To set the shortcut up by hand instead: add a non-Steam game (its target is
never run, but it can't be empty or Steam shows no icon: use /usr/bin/true),
force SVT-GE-Proton-11 under Properties > Compatibility, and set its launch
options to steam-utility-launcher rotk-launcher -- %command% (options of this
program go before the --).
Linux note: the shortcut has to use SVT-GE-Proton.
rotk-launcherrefuses to start otherwise, because on other Protons the game can hang while starting. To run with whatever Proton the shortcut uses anyway, add--allow-any-proton.
Overlay. Steam's overlay is left as Steam sets it up for the shortcut: turn
it on in the shortcut's Properties and it works in the launcher and the game,
turn it off and it isn't there. It is drawn over every window of the process,
so it also appears over the launcher. If the game ever stalls while starting
with it, --no-steam-overlay takes it away from the launcher and the game
whatever Steam says. DXVK's own overlay is separate, and can be shown alongside
it or instead of it:
steam-utility-launcher rotk-launcher --default-hud
steam-utility-launcher rotk-launcher --hud fps,gpuload,scale=1.5,opacity=0.8
--hud takes what DXVK's DXVK_HUD variable takes and passes it on as it
is: a comma-separated list of items (fps, gpuload, frametimes, memory,
devinfo, pipelines, ...) and of name=value options, which is how scale
(0.25 to 4) and opacity (0.1 to 1) are set. It can't contain spaces, quotes,
brackets or ;. --default-hud is the same with the author's preferred settings
(fps,gpuload,scale=0.8,opacity=1.0). The two can't be combined.
The overlay is shown in the game only, not over the launcher's own window. It
is passed as DXVK_CONFIG="[H1Z1.exe];dxvk.hud=<items>": every DXVK process
gets the variable, but DXVK applies a section only to the program it names. No
file is written. A DXVK_CONFIG already in your environment is kept (the
overlay is added after it). A DXVK_HUD in your environment takes precedence
over all of this and shows the overlay in every window; avoid setting it.
Which Steam app the game is. The shortcut is its own Steam app, and the
game's processes keep the ids Steam gave them (SteamAppId, SteamGameId), so
Steam applies the shortcut's own settings (its overlay switch, compatibility
tool, playtime), not those of Z1 Battle Royale.
Frame rate limit. --max-fps FPS caps the game's frame rate with DXVK's
dxgi.maxFrameRate, for example to match your monitor's refresh rate instead
of using vsync (a menu that isn't limited renders as fast as the GPU allows,
which means full load and heat for nothing):
steam-utility-launcher rotk-launcher --default-hud --max-fps 144
It takes a whole number of at least 1 (DXVK's own 0 and negative values are
special modes that don't belong here), and is passed in the same
DXVK_CONFIG section as the overlay, so it too applies to the game only. No
limit is set unless you ask for one.
Vsync. --vsync N overrides the game's vsync with DXVK's
dxgi.syncInterval, the number of monitor refreshes between frames: 0 turns
vsync off (frames are presented at once), 1 shows a frame every refresh
(60 fps on a 60 Hz monitor), 2 every second refresh (half the refresh rate),
up to 4, which is as far as DXGI allows. Nothing is overridden unless you
pass it, which leaves the choice to the game's own setting.
steam-utility-launcher rotk-launcher --vsync 0 --max-fps 60
Whether turning vsync off tears depends on your display setup: an X server
that composes every frame in sync with the display (the NVIDIA driver's
ForceFullCompositionPipeline, or a compositor with vsync) shows no tearing
whatever the game does. Frames the game renders beyond the refresh rate are
then wasted, which is what --max-fps is for.
If ROTK Launcher isn't installed yet, this downloads the latest release,
verifies its checksum against the release's SHA256SUMS.txt, and runs the
installer silently inside the shortcut's own Proton prefix (the one Steam
makes for the "Z1 Battle Royale (ROTK)" shortcut, compatdata/<shortcut id>/pfx, never
Z1 Battle Royale's) before launching the app. Everything this tool puts in a
prefix (the installer, the Visual C++ runtime, the PowerShell stand-in, the
list of Steam libraries) goes into that prefix alone, whatever id the shortcut
has: it gets a new one, and a new prefix, if it is added again, and the next
launch sets that one up the same way.
The game's files are copied by ROTK Launcher from the Steam library Z1 Battle
Royale is installed in, so that library is listed for it: this tool writes a
libraryfolders.vdf in the prefix's Program Files/Steam/steamapps that names
the library (as a Z: path) and has the container show it, so the launcher
finds the game by itself. Z1 only has to be installed for that first copy; once
C:\Games\ROTK has the files, the prefix doesn't depend on Z1 or on Z1's own
prefix. Nothing else is shared with Z1 (the processes are the shortcut's own
Steam app).
If it's already installed, this does not update it — ROTK Launcher has
its own in-app auto-updater, so this tool defers to that rather than
fighting over version state. It checks GitHub for a newer release at most
once a day (not on every run) and logs a warning (visible even without
-v/--debug) when one's found, so you're occasionally reminded one is
available without hitting the network every time you launch:
steam-utility-launcher rotk-launcher --force
Pass --force to install the latest release immediately instead of waiting
on the in-app updater (also useful to repair an installation, since it
reinstalls even if already at the latest version).
Wine's powershell.exe is an unimplemented stub: it never runs the script
it's given and always exits 0. ROTK Launcher's installer (and its own
in-app auto-updater, which shares the same NSIS installer machinery) uses a
PowerShell one-liner to check whether an old instance of itself is running
before installing, treating exit 0 as "yes, it's running" — since the
stub always exits 0, it would otherwise conclude the app is permanently
running and get stuck forever on a "cannot be closed" dialog. To avoid
that, rotk-launcher disables powershell.exe (via WINEDLLOVERRIDES) for
just the installer's process, making it fail to launch
instead of falsely succeeding. The installer's own template already handles
PowerShell being unavailable, falling back to tasklist/findstr/
taskkill to answer the same check. Nothing is written to the prefix, and
the override applies only to that process; the shared Proton installation
and every other prefix and process are untouched.
Hardware ID (hwid_required). ROTK's account service now refuses launches
that carry no hardware fingerprint, and the app collects it by running
PowerShell/WMI queries, which Wine's stub can't answer. This tool therefore
replaces the prefix's powershell.exe (both system32 and syswow64, each
with its own architecture's build) with a small native Windows program
(resources/wine_powershell_hwid.c, prebuilt by build-powershell-hwid.sh).
It is left in place permanently: every rotk-launcher run checks that it is
present and current and reinstalls it if it's missing or differs (for
example after a prefix reset or a new build), and never takes it back out.
It can't be removed after the launch, because ROTK Launcher 2.0.29 and later
carries on in another process a few seconds after the one we start exits,
and its in-app updater runs an installer after the app has quit. Wine's own
stub is only a symlink into the Proton installation, which is not touched.
It must be a real .exe: Wine can't connect a Windows process's pipes to a
native Unix program, and spawning one that way crashes the launcher.
The stand-in never executes the script it is given, and it only answers the
exact fingerprint query ROTK Launcher 2.0.24 sends: the same scaffold, only
slot names it knows, and, for every slot, the byte-for-byte PowerShell
expression the launcher uses for it (copied from its source into a table in
resources/wine_powershell_hwid.c). It answers with this machine's real
values (the prefix's MachineGuid, the C: volume serial, the first disk's
serial/model/firmware, DMI/BIOS data, CPU name, physical MAC addresses).
Anything it can't read is omitted, never invented. The ROTK team does not
officially support Linux, so their server may still decide to refuse it.
It also answers, for real, the other fixed commands the app runs, each matched exactly and each from a genuine source rather than an invented one:
- The installer's "is the app running / close it" checks (what ROTK's in-app updater runs), with real process enumeration.
- Two diagnostics commands. System info comes from Wine's own WMI (OS,
memory, GPU;
pageFilesis empty because Wine has no Windows pagefile). The crash-event query answers an empty list, because Wine keeps no Windows Application log. - The two TPM proofs. ROTK Launcher signs a one-time challenge with a key
held in a TPM so that a modified launcher can't make up a hardware identity.
The stand-in does the same with this machine's real TPM 2.0, through
/dev/tpmrm0(seeenable-hwid-access): the signing and identity keys live in the TPM and can't be exported (the files under~/.local/share/steam-utility-launcher/tpm/are only TPM-wrapped blobs that load on this TPM alone), and it reports the endorsement key, TPM manufacturer, version and firmware. All of this is opt-in (rotk-launcher --tpm): by default the TPM commands are declined and the app sees exactly what it would on a PC without a TPM. Once you opt in it has to work: if there is no TPM, your user can't use it (runenable-hwid-access), or setting it up fails,rotk-launcherstops with an error before starting anything. Two further extras need--tpm-endorsement(which implies--tpm), and are meant only for the day the server starts requiring them. They make the TPM answer as an elevated Windows user would, using nothing but this machine's own TPM and certificates. On AMD TPMs, which keep no certificate inside the TPM, the launcher then fetches the endorsement key's certificate chain once fromftpm.amd.com(the URL is a hash of your endorsement public key, the only thing AMD sees; nothing else is ever requested) and keeps it asek-cert-N.dernext to the key blobs; it is sent with the anchor. The credential activation the server may then request is performed by the TPM too (with an endorsement-hierarchy policy session), so the launcher shows the enrolment as an elevated Windows user would see it. If the TPM can't be used, the commands are declined, exactly as on a PC without one: it never substitutes a software key.
Every PowerShell command that reaches the stand-in is appended to
~/.local/share/steam-utility-launcher/powershell-commands.log; rotk-launcher
prints that path at the start of every run. Each record has a verdict:
answered: the exact fingerprint query (only the slot names are logged (answered, unreadable here, or without a reader), never the hardware values), or one of the other fixed commands above.declined: anything else, and a TPM command when the TPM can't be used (the record says why). It exits 1 with no output, as a missing PowerShell would, which is what those callers expect.HWID-UNRECOGNIZED: a command that references hardware-ID data (the WMI classes and registry value the fingerprint reads, or the fingerprint's scaffold) but is not exactly the query above, for example because ROTK reworded it, changed a slot's expression, or added a slot. The stand-in refuses it and makes sure you notice: the record says which part differed, a message box is shown (by a separate process, so it outlives the call), a message goes to stderr naming the log, it exits 190, androtk-launcherprints an error with the log path when the app exits. It never guesses at a changed format, so a wrongly formatted value is never sent. The fix is to update the stand-in to match.
Two environment variables exist for testing: SUL_POWERSHELL_LOG (log file,
set by rotk-launcher; default %TEMP%\sul-powershell-commands.log) and
SUL_POWERSHELL_NO_POPUP (suppress the message box).
SVT-GE-Proton
SVT-GE-Proton is GE-Proton
with a few fixes
(sevaht/SVT-proton-ge-custom;
SVT-GE-Proton-11 is GE-Proton 11). The ones ROTK Launcher and Z1 Battle Royale
depend on:
- the game no longer hangs at start-up: ROTK's patch library can suspend the
game's main thread while Wine is doing its one-time window setup, and
SVT-GE-Proton does that setup first (
rotk-launcherasks for it withPROTON_EAGER_DESKTOP); - dragging a window by its own title bar no longer leaves the window manager stuck in a move.
Install it, or update it to the latest release, with:
steam-utility-launcher proton svt-ge
then restart Steam so it lists SVT-GE-Proton-11. The download is checked
against the release's .sha512sum, and an update replaces the installed tool
(--force installs even when it is current).
Every Proton installed with proton keeps your user_settings.py, Proton's own
place for per-tool environment defaults, which apply to every game run with that
Proton unless the game's launch options or Steam's environment already set the
variable. An update keeps the one in the folder it replaces, and a new install
(the next GE release, or the next SVT-GE-Proton series) takes the one of the
newest other tool of the same kind. svt-ge also makes one, if there is none to
take over: it sets PROTON_ENABLE_WAYLAND=1 only when Proton starts in a Wayland
session (it checks for WAYLAND_DISPLAY each time, so it follows the session you
are in and not the one it was made in). After that the file is yours: edit it
freely. If a later version of this tool changes the default, a file that is
exactly an older default (you never changed it) is brought up to date the next
time you run proton svt-ge, even when the tool itself is current; a file with
any change in it, or a link, is never touched.
The same command installs
upstream GE-Proton (proton ge; --tag GE-Proton10-4 picks a release, and
each one is a tool of its own), and proton on its own lists them. Doing it by
hand works too: unpack a release's .tar.gz into
~/.local/share/Steam/compatibilitytools.d/.
Unless the shortcut uses SVT-GE-Proton, rotk-launcher says why and exits
without starting or installing anything. --allow-any-proton skips that
requirement (the game may hang while starting).
Visual C++ runtime
ROTK's anti-cheat module is built with a recent MSVC and needs a recent
msvcp140.dll. Its std::mutex needs no initialization call, but the 2016
msvcp140.dll that Steam's redistributable installer leaves in a game's prefix
dereferences a null pointer when locking one, so the game died about three
seconds after the module loaded. 14.40 is the first release that handles it.
Without the real runtime the game dies a few minutes into a match: Wine's builtin
vcruntime140.dll only has a stub for __C_specific_handler_noexcept (which
code built with a recent MSVC calls when an exception crosses a noexcept
function), so ROTK's anti-cheat aborts with Call from ... to unimplemented function vcruntime140.dll.__C_specific_handler_noexcept, aborting, which looks
like a disconnect.
A new Proton prefix has no Microsoft runtime at all: its msvcp140.dll,
vcruntime140.dll and the rest are Wine's own builtin stand-ins, and the
builtin msvcp140.dll even carries a version resource claiming 14.42. So the
version alone says nothing; the builtins are recognised by the marker Wine puts
in them.
Before every launch, rotk-launcher checks the runtime DLLs in the prefix (both
system32 and syswow64: msvcp140 and its _1, _2, _atomic_wait and
_codecvt_ids variants, vcruntime140 (and _1 on x64), concrt140,
vccorlib140 and vcomp140; a few file reads, no network). If any of them is
missing, is still Wine's builtin, or (for msvcp140.dll and vcruntime140.dll)
is older than 14.40, it installs Microsoft's Visual C++ runtime into the prefix,
the same thing winetricks vcrun2022 does, so neither winetricks nor
protontricks is needed. The installers (vc_redist.x64.exe and .x86.exe) are
downloaded once from Microsoft, checked against pinned SHA-256 hashes, and kept
in ~/.local/share/steam-utility-launcher/VC-Redist/; a download that doesn't
match is never run. They are run silently (/install, then /repair if a file
is still wrong, which happens when the bundle is registered but its files were
replaced). They replace the builtins with Microsoft's files. Even silent, they
need a graphical session (they create a hidden window and exit with status 2
without one). After installing, the DLLs are checked again and the launch stops
with an error naming each file that is still wrong. aka.ms serves whatever
Microsoft currently publishes, so when Microsoft updates it the pinned hashes
stop matching; update them in vc_runtime.py.
enable-hwid-access
Four values (smbios_uuid, baseboard_serial, bios_serial,
enclosure_serial) come from firmware files under /sys/class/dmi/id that
Linux makes root-only, and the TPM (/dev/tpmrm0) is normally only usable by
the tss group. To let your user read the files and use the TPM, run once, as
yourself:
steam-utility-launcher enable-hwid-access
It checks whether they're already readable and does nothing if so. Otherwise it
prints the small script it will run, asks for confirmation (-y skips that),
and runs it with sudo python3 -I -B - piped over stdin: nothing of this tool
runs as root and no root-owned .pyc files are created. The script writes
/etc/tmpfiles.d/steam-utility-launcher-hwid.conf (a z ... 0444 line per
file) and applies it immediately with systemd-tmpfiles, so it takes effect at
once (no new shell or logout needed) and again at every boot. Without
systemd-tmpfiles it changes the permissions directly, which lasts until reboot.
Every local user can then read those serials, as WMI already allows on Windows.
If the machine has a TPM it also writes
/etc/udev/rules.d/70-steam-utility-launcher-tpm.rules, a uaccess rule that
gives the logged-in desktop user access to the TPM's resource manager (applied
at once with udevadm). Each open of that device is isolated by the kernel, so
this only lets your own programs use the TPM, the usual arrangement on a
desktop. Undo it all with:
steam-utility-launcher enable-hwid-access --disable
Access to those files is required. rotk-launcher checks them first, before
downloading, installing or starting anything, and if any of them exists but
can't be read by your user it stops with an error telling you to run
enable-hwid-access. It never carries on with an incomplete fingerprint. (A
file that doesn't exist on your firmware is fine: there is nothing to read.)
The TPM is optional, and only checked when you pass --tpm: then a missing
TPM or one your user can't use is an error with the same fix
(enable-hwid-access), and so is a TPM that fails to set up.
ZEmu: King of the Kill
ZEmu is a community server for the 2017 Pre-Season 3 H1Z1 client. Install and run its official launcher (on Linux, pointed at your Proton):
steam-utility-launcher zemu
Unlike ROTK Launcher, ZEmu Launcher has a native Linux build with Wine/Proton support of its own. It downloads the game client (it uses the same Steam app as Z1 Battle Royale, 433850, at an older version, so you sign in to Steam in its window) and starts it through Proton itself. On Linux this command therefore just:
- Downloads the latest ZEmu Launcher AppImage from ZEmu's own releases the first time, and verifies its signature (ZEmu signs releases with a minisign key, which is pinned in the tool) before installing or running anything. A file that fails verification is never written to disk.
- Points ZEmu Launcher at the Proton Steam uses for Z1 Battle Royale (else
the newest stable one, or pass
--proton PATH), in its own settings file. ZEmu follows it: if its runtime is anything else it is changed to match (and the change is logged as a warning), so switching Z1 to another Proton switches ZEmu too. Only the runtime is touched: nothing else in the file is changed, Wine switched off there is respected, and ZEmu keeps its own dedicated prefix, separate from your Z1/ROTK one. A newer Proton upgrades that prefix, which Proton can't undo, so copy it first if that matters.--no-configureskips this step, for a runtime you want to pick in ZEmu's own Properties screen. - Runs it, with
WEBKIT_DISABLE_DMABUF_RENDERER=1set (a blank-window workaround for NVIDIA) unless you've set it, andAPPIMAGE_EXTRACT_AND_RUN=1if FUSE 2 isn't installed.
On Windows, the same command downloads ZEmu's Windows installer, verifies
its signature against the same pinned key, installs it silently into this
tool's own folder (ZEmu-Launcher\app under the tool's data directory) and
runs it. There's no Proton, FUSE or settings step, and ZEmu Launcher starts the
game itself. This path has only been tested with unit tests, not on a real
Windows machine.
Requirements (Linux): the AppImage needs FUSE 2 (libfuse.so.2) to run
directly, which many distributions no longer install by default: fuse2 on Arch,
libfuse2 (libfuse2t64 on newer Ubuntu) on Debian/Ubuntu, fuse-libs on
Fedora. Without it the tool falls back to extracting the AppImage on every
launch (APPIMAGE_EXTRACT_AND_RUN=1), which works but starts slower, so
installing it is recommended. You also need Steam with a Proton install and a
Vulkan-capable graphics driver; nothing else outside this project is required.
Like rotk-launcher, an existing install isn't updated by this command, because
ZEmu Launcher updates itself once it's running. A newer release is only
mentioned, at most once a day; --force installs the latest right away.
None of ROTK's workarounds (the PowerShell stand-in, enable-hwid-access, the
Visual C++ runtime step) are applied, since ZEmu's launcher doesn't need them
for itself. Whether the game client needs anything extra under Proton is
untested.
This tool is not affiliated with ZEmu. ZEmu Launcher's licence lets you use and study it but not redistribute or modify it, so it is downloaded from ZEmu's releases when you run this and is never bundled here, and none of its code is used. ZEmu Launcher — https://zemu.uk
Dark Souls II
The Dark Souls II: Scholar of the First Sin commands are under ds2 (or
dark-souls-2, which is the same): ds2 bindings, ds2 controller,
ds2 deadzone-fix and ds2 death-lag-fix.
Dark Souls II analog stick deadzone
The game ignores a stick near either axis, which makes diagonals awkward; the
other Dark Souls games use a round 36% deadzone. The "Center Deadzone Mod"
(Nexus Mods, Dark Souls II mod 1200) changes that by rewriting the one function
that works it out: 202 bytes of the 28 MB DarkSoulsII.exe. Nothing of the
game is bundled here; this knows only those bytes, as the game has them and as
the mod does, and switches between them in the game's installed executable:
steam-utility-launcher ds2 deadzone-fix # says which it has
steam-utility-launcher ds2 deadzone-fix on # the round deadzone
steam-utility-launcher ds2 deadzone-fix off # the game's own
An executable that has neither (another game version) is never written; the
file isn't backed up, since Steam's "verify integrity of game files" restores
it. A game update restores the original deadzone, so run on again. Close the
game first. --executable picks another file, and --dry-run says what would
change.
Dark Souls II slowing down with every death
On an account that has every achievement, Dark Souls II: Scholar of the First
Sin gets a little slower with every death, until the game is restarted (the
frame rate starts to fall after about ten). Whenever Steam tells the game its
stats, the game goes through all of its achievements and, if all but the first
("The Dark Soul": earn them all) are unlocked, awards that one again and tells
Steam to store it, without checking that it is already unlocked. Steam answers
by saying the stats were stored, and the game answers that by asking for the
stats again: about 120 Steam calls every 300 ms, for as long as the game runs.
Every death awards an achievement too, and that store starts one more copy of
the loop, which is never removed. This changes 45 bytes of the 28 MB
DarkSoulsII.exe, in the function that handles those stats, so that it doesn't
award an achievement it already has; the loop then ends at its first pass:
steam-utility-launcher ds2 death-lag-fix # says which it has
steam-utility-launcher ds2 death-lag-fix on # the fix, in the executable
steam-utility-launcher ds2 death-lag-fix dll # the fix, by a dinput8.dll
steam-utility-launcher ds2 death-lag-fix off # the game's own
dll leaves the executable as the game has it, and instead puts a 3.5 KB
dinput8.dll in the game's folder (resources/ds2_death_lag_dinput8.c,
prebuilt by build-ds2-death-lag-dll.sh). The game loads it for its controller
input (Wine and Proton load a DLL from the program's own folder before their
own, so no setting is needed); it changes the same 45 bytes in memory, only if
they are the game's own, and passes everything else to the system's
dinput8.dll. on, off and dll replace one another, removing what the
others put there; another dinput8.dll already in the folder is never
replaced or removed.
Nothing of the game is bundled; this knows only those bytes, as the game has
them and as they are fixed. Awarding "The Dark Soul" for the first time still
works, and an account that is missing an achievement is not affected, since the
game never gets as far as awarding it. An executable that has neither version
(another game version) is never written; the file isn't backed up, since
Steam's "verify integrity of game files" restores it. A game update restores
the original, so run on again. Close the game first. --executable picks
another file, and --dry-run says what would change. It can be used together
with ds2 deadzone-fix; they change different places.
Dark Souls II controls
Dark Souls II: Scholar of the First Sin keeps its keyboard and mouse controls in its save file, so they can be set without going through the menus. Close the game, then run:
steam-utility-launcher ds2 bindings
This finds the game's save (in its Proton prefix on Linux, in
%APPDATA%\DarkSoulsII on Windows), backs it up beside itself
(DS2SOFS0000.sl2.sul-backup-<time>), and sets every control listed in the
bundled resources/ds2_key_bindings.toml. Only the controls are changed; the
rest of the file is left as it was.
The config names each action and what to set it to:
[keyboard]
run_forward = "W"
function_1 = "P"
toggle_menu_left = { key = "Left", modifier = "Shift" }
[mouse]
attack_right_hand = "Right click"
jump = { button = "Click mouse wheel", modifier = "Shift" }
Pass --config for a file of your own; actions it doesn't list are left
alone, and setting a plain key clears any modifier it had. --show prints the
save's controls in this same format (a good way to start your own file),
--dry-run says what would change without changing it, and --save names a
save file to use instead of looking for one.
The game rewrites its save when it exits, so it must not be running; the command refuses to write if it is.
There doesn't have to be a save yet. To make one, for the Steam account in
use (or the one --steam-id names, by its 17 digit id or the 16 hex digits of
a save's folder):
steam-utility-launcher ds2 bindings --create
It makes the save in the game's Proton prefix, with the controls set and the
game's terms and conditions marked as accepted (so it doesn't ask; leave that
to the game with --no-accept-terms), and with every character slot empty. It
never replaces a save that is there. It writes only what the game reads, so the
file is the size of a real save but holds none of the leftover data one does.
Proton fills in the rest of the prefix when the game is first started.
Keys are named (A..Z, 0..9, Esc, Enter, Space, Up, ...). Only
keys seen in the game are named, so others (the function and numpad keys, for
one) have to be given by number, as the game stores them; --show prints a
control set to one as a number. The bundled file is one particular scheme, to
go with a Steam Input layout that sends those keys from a gamepad.
Dark Souls II controller layout
The controls above are keyboard keys, so playing on a gamepad needs Steam Input
to send them. This program ships the layout for that (in resources/), which
maps the buttons to the keys of the bundled controls, and can have Steam use it
for the game, whatever the controller:
steam-utility-launcher ds2 controller
Steam keeps a layout, and the choice of which a game uses, for each kind of
controller, so this puts the layout in place for each: generic (the XInput-style
gamepads Steam has no type of its own for, such as 8BitDo's), Xbox 360, Xbox
One (which Steam also uses for the Elite), PS4, PS5 and Switch Pro. The layouts
are the same buttons and keys, told apart in Steam by their titles ("DS2 SOTFS
(sevaht) - PS5"). --controller-type (once for each) limits it to some kinds.
Choices Steam has for a particular controller, by its USB ids, may take
priority; the command lists any it finds for the game that aren't this layout.
The layout is of the buttons by where they are, as on an Xbox: A is the bottom face button. On a Switch controller that is its B, unless the controller's "Use Nintendo button layout" setting in Steam is on, which is up to you and is not changed here.
Steam keeps the layouts and the choices in memory and saves them when it exits,
so it has to be closed for the change; the command asks first (-y to skip the
question) and starts it again afterwards (--no-restart to leave it closed).
This works the same on Linux and Windows.
Files it replaces are backed up beside themselves, and nothing is touched, or
closed, if Steam already uses the layouts. --dry-run says what would change,
and --layout uses a layout file of your own (as Steam saves one) instead.
Manual usage
Run any arbitrary Windows executable inside a game's Proton prefix. The game's
Steam App ID is in its store page URL —
store.steampowered.com/app/570940/Dark_Souls_Remastered/.
# Specify the game by its Steam App ID
steam-utility-launcher manual -g 570940 /path/to/SomeTool.exe
# Auto-detect the currently running Proton game
steam-utility-launcher manual --auto /path/to/SomeTool.exe
--autocaveat: detection scans running processes for an active wineserver and picks the first match. If multiple games are running in Proton simultaneously the result is unpredictable; use-ginstead.
Add -w/--wait to block until the launched process exits, then exit with
its status code. Useful for installers or any tool whose result you need to
check:
steam-utility-launcher manual -g 433850 --wait /path/to/Installer.exe
echo "exit code: $?"
Finding a game's Proton prefix
Print the WINEPREFIX path used by a game, without launching anything:
steam-utility-launcher prefix-path -g 570940
steam-utility-launcher prefix-path --auto
This correctly resolves the game's Steam library (primary or a secondary library), so it works even for games not installed in the default Steam library.
Installed tool locations
(SVT-GE-Proton is the exception: it goes where Steam looks for tools, see SVT-GE-Proton.) Tools are downloaded to:
~/.local/share/steam-utility-launcher/<ToolName>/ (Linux)
%LOCALAPPDATA%\steam-utility-launcher\<ToolName>\ (Windows)
For example, DSR-Gadget lives at
~/.local/share/steam-utility-launcher/DSR-Gadget/ on Linux.
Each tool directory contains a .github_release_tag file recording the
installed version. The launcher checks GitHub on every run and updates
automatically when a newer release is available. To force a fresh download,
delete that file:
rm ~/.local/share/steam-utility-launcher/DSR-Gadget/.github_release_tag
Logging
Add --log-file FILE to write logs to a rotating file. Use -v / -q /
--debug to control console verbosity.
Metadata
Release files for steam-utility-launcher 1.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| steam_utility_launcher-1.2.3.tar.gz | 313.1 kB | With provenance | Details for steam_utility_launcher-1.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| steam_utility_launcher-1.2.3-py3-none-any.whl | Python 3 | none | any | Details for steam_utility_launcher-1.2.3-py3-none-any.whl |
Total release size: 568.3 kB
Release files / steam_utility_launcher-1.2.3.tar.gz
| Download URL | steam_utility_launcher-1.2.3.tar.gz |
|---|---|
| Size | 313.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f9a66440ad636bcfae0ca62ccba892c91a021e9b109fd25af6760210c860e88
|
|
BLAKE2b-256 checksum How to use checksums |
0f7b89a418ed129d367b9eddd1e307a8439e6478e21b2d8c3761f44497347173
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logRelease files / steam_utility_launcher-1.2.3-py3-none-any.whl
| Download URL | steam_utility_launcher-1.2.3-py3-none-any.whl |
|---|---|
| Size | 255.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc153e8e708c5b049d5806656d23d994b19f508a69bc1efc2057899274c99369
|
|
BLAKE2b-256 checksum How to use checksums |
b60e8f0ba79e00fbb10199a274bda4b28e953cc7b089fc1bd93fc075a9f7219b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logSecurity for steam-utility-launcher 1.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for steam_utility_launcher-1.2.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.