Open adamnejm opened 3 years ago
Looks like the -multirun
flag is not implemented on Linux/macOS by design in all Source Engine games, including TF2 and CS:GO.
Looks like the
-multirun
flag is not implemented on Linux/macOS by design in all Source Engine games, including TF2 and CS:GO.
We can at least run 2 copies of the game in Linux using a native Steam installation and a sandboxed one (Flatpak) on offline mode. It's good enough for testing stuff:
And here's some usefull commands that I crafted before discovering this issue:
# Get steam lib paths /home/$USER/.steam/bin32/steam-runtime/run.sh --print-steam-runtime-library-paths
# Fix SetLocale('en_US.UTF-8') failed https://github.com/ValveSoftware/halflife/issues/3006
GAMEROOT="/silo/Games/SteamLibrary/steamapps/common/GarrysMod"
cd "${GAMEROOT}"
SteamEnv=1 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"${GAMEROOT}"/bin:/home/$USER/.steam/bin32/steam-runtime/pinned_libs_32:/home/$USER/.steam/bin32/steam-runtime/pinned_libs_64:/usr/lib/x86_64-linux-gnu/libfakeroot:/lib/i386-linux-gnu:/usr/local/lib:/lib/x86_64-linux-gnu:/lib32:/lib:/home/$USER/.steam/bin32/steam-runtime/lib/i386-linux-gnu:/home/$USER/.steam/bin32/steam-runtime/usr/lib/i386-linux-gnu:/home/$USER/.steam/bin32/steam-runtime/lib/x86_64-linux-gnu:/home/$USER/.steam/bin32/steam-runtime/usr/lib/x86_64-linux-gnu:/home/$USER/.steam/bin32/steam-runtime/lib:/home/$USER/.steam/bin32/steam-runtime/usr/lib ./hl2_linux -multirun
# Oh no! -multirun is unsupported... https://github.com/Facepunch/garrysmod-issues/issues/4803
Environment
OS: EndeavourOS Linux 64bit Protocol Version: 24 EXE Version: 2020.10.14 EXE Build: 15:52:02 Jan 8 2021 (8098) GMod Version: 2021.01.22, branch: x86-64, multicore: 1
Details
Temporary
.lock
file is being created in the/tmp
directory despite the-multirun
parameter when runninghl2.sh
which prevents from launching multiple instances until deleted manually.Reproducing
sh hl2.sh -multirun -windowed -w 640 -h 480
fcntl(3) for /tmp/source_engine_2594845368.lock failed
Adding the
-insecure
had no effect.Manual Fix
/tmp/source_engine_2594845368.lock
)