Skip to content

Instantly share code, notes, and snippets.

@irgendwie
Last active March 7, 2017 16:07
Show Gist options
  • Save irgendwie/b4b308f4016e98469b783dec662804af to your computer and use it in GitHub Desktop.
Save irgendwie/b4b308f4016e98469b783dec662804af to your computer and use it in GitHub Desktop.

Make Worms W.M.D runnable on ArchLinux

Create a new file 'RunModified.sh' next to 'Run.sh' and add the following content

#!/bin/bash

GAME_PATH=${GAME_PATH:=~/.steam/steam}

export LC_ALL=C
export LD_LIBRARY_PATH="/usr/lib:/usr/local/lib"
export LD_PRELOAD="$(printf "%s " $GAME_PATH/steamapps/common/WormsWMD/lib/libQt5*.so* \
       			    	  ~/.steam/steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libdbus-1.so.3 \
				  ~/.steam/steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libdbus-1.so.3.5.8)"
export MESA_GL_VERSION_OVERRIDE=2.0COMPAT
export MESA_GLSL_VERSION_OVERRIDE=410
chmod a+x ./Worms\ W.M.Dx64
#gdb ./Worms\ W.M.Dx64 -batch -ex run -ex bt
./Worms\ W.M.Dx64

Set the following launch options

GAME_PATH=foo DISCARD=%command% ./RunModified.sh

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment