Skip to content

GamingX on Linux

Play Stronghold HD and Stronghold Crusader HD in GamingX rooms from Linux, with Steam Proton.

The GamingX App is a Windows program. On Linux it runs inside the game's Proton prefix, next to the game. Online play needs Microsoft DirectPlay in that prefix: with Wine's own DirectPlay you can neither host a game nor join one, so the App refuses Ready until Microsoft DirectPlay is installed.

What you need

  • Steam for Linux. Keep it running while you play.
  • The game on Steam: Stronghold HD (Steam app ID 40950) or Stronghold Crusader HD (app ID 40970).
  • Proton Experimental, installed from Steam. Steam adds Steam Linux Runtime 4.0 with it.
  • protontricks, from your distribution's packages or as a Flatpak.
  • The GamingX App for Windows: the ZIP from the App download page.

1. Run the game once with Proton Experimental

In Steam, open the game's Properties, then Compatibility. Turn on forcing a specific Steam Play compatibility tool and choose Proton Experimental. Start the game once from Steam, so that Steam creates the game's Proton prefix, then close the game.

Do not use the older runtime called “sniper”: Proton Experimental needs Steam Linux Runtime 4.0, and under sniper it fails with “GLIBC_2.38 not found”.

2. Install Microsoft DirectPlay into the game's prefix

Close the game first; the GamingX App may stay open. Then run these commands in a terminal. They are for Stronghold HD: for Stronghold Crusader HD, replace 40950 with 40970 in the first and last lines.

P="$HOME/.steam/steam/steamapps/compatdata/40950/pfx/drive_c/windows/syswow64"
for f in dplaysvr.exe dplayx.dll dpmodemx.dll dpnet.dll dpnhpast.dll dpnhupnp.dll dpnsvr.exe dpwsockx.dll; do
  [ -L "$P/$f" ] && rm "$P/$f"
done
protontricks 40950 directplay

Do not skip the first part. In a Proton prefix, the DirectPlay files are links into Proton itself. A plain protontricks 40950 directplay writes through those links: it changes Proton's own files for every game that uses it, and the next Proton update quietly undoes that. With the links removed first, Microsoft DirectPlay goes into this game's prefix, and Proton's updates keep it there.

protontricks runs winetricks directplay inside the Steam runtime. It installs Microsoft's DirectPlay files from the DirectX redistributable (checked against a known hash), sets the DirectPlay DLL overrides to native, and registers DirectPlay.

Is the game in another Steam library? Then use its own prefix: this command prints the prefix's folder. Put that folder's drive_c/windows/syswow64 in the first line.

protontricks -c 'echo $WINEPREFIX' 40950

With the Flatpak protontricks, use this instead of the last line:

flatpak run com.github.Matoking.protontricks 40950 directplay

3. Put the GamingX App into the game's prefix

Unzip the App into the folder drive_c/GamingX of the game's prefix, so that gamingx-app.exe is directly in it. Inside the prefix this folder is C:\GamingX. For Stronghold HD it is:

~/.steam/steam/steamapps/compatdata/40950/pfx/drive_c/GamingX/

The App starts the game and watches it, so it must run in the same prefix as the game. It keeps itself up to date in that folder. Playing both games? Set up each game's prefix the same way.

4. Start the App inside the game's prefix

Steam must be running. Start the App through Steam Linux Runtime 4.0 and Proton Experimental, in the game's prefix. This is the script we use: save it as run_gx_proton.sh, make it executable, and run it with the game's app ID:

#!/bin/bash
# run_gx_proton.sh <appid> [exe]   run the GamingX App inside that Steam game's Proton prefix
C=$HOME/.steam/steam/steamapps; A=${1:-40950}
EXE=${2:-$C/compatdata/$A/pfx/drive_c/GamingX/gamingx-app.exe}
export STEAM_COMPAT_CLIENT_INSTALL_PATH=$HOME/.steam/steam STEAM_COMPAT_DATA_PATH=$C/compatdata/$A
export SteamAppId=$A SteamGameId=$A STEAM_COMPAT_APP_ID=$A
exec "$C/common/SteamLinuxRuntime_4/_v2-entry-point" --verb=waitforexitandrun -- \
  "$C/common/Proton - Experimental/proton" waitforexitandrun "$EXE"
./run_gx_proton.sh 40950

The script expects the game, Proton Experimental and the runtime in your main Steam library (~/.steam/steam/steamapps). If they are somewhere else, change the paths in it.

The App (247 and later) sets dpwsockx=native,builtin in the prefix by itself, so that Wine uses the GamingX DLL next to the game. With an older App, or when the game runs in a different prefix from the App, add this to the game's Steam launch options:

WINEDLLOVERRIDES="dpwsockx=n,b" %command%

Check that it worked

  • In the game's prefix, drive_c/windows/syswow64/dplayx.dll is now a real file of 230,400 bytes from Microsoft Corporation, not a link.
  • The prefix's DLL overrides (HKCU\Software\Wine\DllOverrides, kept in the prefix's user.reg) list *dplayx as native.
  • In the App, join a room and press Ready. Ready is accepted: the App no longer says that Wine's own DirectPlay cannot play online.

Troubleshooting

“GLIBC_2.38 not found”
The game or the App is running under the older “sniper” runtime. Choose Proton Experimental in the game's Compatibility settings, and start the App through SteamLinuxRuntime_4 as in step 4. protontricks needs the runtime too: do not run it with --no-runtime.
Ready says “Install Microsoft DirectPlay for this game”
At Ready, the App checks which DirectPlay the game will load, and it found Wine's own. Do step 2 for this game's app ID: each game has its own prefix, so Stronghold HD (40950) and Stronghold Crusader HD (40970) each need it. Close the game before you install, then check as above.
Hosting or joining
With Wine's own DirectPlay, neither works: when you host, your guests never finish joining, and when you join a host on Windows, the join times out. With Microsoft DirectPlay the game plays online as it does on Windows; joining real GamingX games from Linux has been tested this way. If guests cannot join a game you host from Linux, check step 2 and ask us on Discord.
I already ran plain “protontricks directplay”
Then the DirectPlay files went into Proton itself, for every game that uses it, and the next Proton update undoes that, so Ready can be refused again later. Do step 2 as shown: it removes the links and installs into the game's own prefix.
The App cannot start the game
Steam must be running, and the App must run in the same prefix as the game (steps 3 and 4).

What does not work on Linux

  • The virtual network adapter: Wine has no Windows drivers. Automatic rooms use the GamingX DLL instead, which works on Linux; a room set to the virtual adapter cannot take a Linux player.
  • Repair network does nothing under Wine.
  • There are no administrator (UAC) prompts, so anything that needs administrator rights fails.

Need help?

Ask in the GamingX Discord. Tell us your Linux distribution, the game, and the exact message the App shows.