public
Last active

Launch script for the GMOD SVN release, with some extra notes I wrote down while debugging it.

  • Download Gist
gmod_svn.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
#!/bin/bash
# Garry's Mod SVN Shell Script
# Written by Ethan "flibitijibibo" Lee
# http://www.flibitijibibo.com/
 
# Debugging
# GAME_DEBUGGER="gdb"
# GAME_DEBUGGER="strace -f -o strace.log"
 
# Note that this does NOT get GMOD running! Just fixes the silly things.
 
# Major Notes:
# You'll need to mount a Source game "the hard way".
# Case sensitivity problems URRYWHURRR
# Hey Garry, can we have a Linux `./bin/awesomium_process`?
# For now, just grab the SDK and put it in ./bin/.
# Chromium explodes. May not be fixable on our end?
# third_party/tcmalloc/chromium/src/tcmalloc.cc:449] Attempt to free invalid pointer
 
# A few things I did to get it started:
# echo 4000 > steam_appid.txt
# chmod +x * bin/* garrysmod/bin/*
# cd bin
# ln -s libawesomium-1-7.so libawesomium-1-7.so.0
# ln -s GameUI.so gameui.so
# cd ..
# ln -s ~/.steam/root/SteamApps/common/Team\ Fortress\ 2/tf tf
# cd tf; ln -s resource Resource; cd ..
# ln -s ~/.wine/drive_c/Program\ Files/Steam/steamapps/common/portal\ 2/platform/materials/vgui/hud garrysmod/materials/VGUI/hud
# ln -s ~/.wine/drive_c/Program\ Files/Steam/steamapps/common/nuclear\ dawn/base/resource/hltvevents.res garrysmod/resource/hltvevents.res
# cd garrysmod
# ln -s resource Resource
# cd materials
# ln -s console Console
# ln -s VGUI vgui
# cd console
# ln -s background01.vtf startup_loading.vtf
# ln -s background01.vmt startup_loading.vmt
# ln -s ~/.steam/root/ubuntu12_32/libsteam.so ~/.steam/root/linux32/libsteam.so
# yum install GConf2.i686 # On top of what's in my Fedora.txt, of course.
 
# Move to script's directory
cd "`dirname "$0"`"
 
# Set the libpath. Lots of Steam paths, usually Steam does this for us.
# Note that hl2.sh gives us ./bin/, so we don't bother with it here.
# We also add ./garrysmod/bin/, not sure why this isn't covered automatically.
export LD_LIBRARY_PATH=$HOME/.steam/bin/steam-runtime/i386/lib/i386-linux-gnu/:$HOME/.steam/bin/steam-runtime/i386/usr/lib/:$HOME/.steam/bin/steam-runtime/i386/usr/lib/i386-linux-gnu/:$HOME/.steam/root/ubuntu12_32/:./garrysmod/bin/:$LD_LIBRARY_PATH
 
# Run that sucka
./hl2.sh -game garrysmod $@
gmod_trace.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#0 0xf7ffd430 in __kernel_vsyscall ()
#1 0x4e87994f in raise () from /lib/libc.so.6
#2 0x4e87b2a3 in abort () from /lib/libc.so.6
#3 0xe26bbf15 in TCMalloc_CRASH_internal(bool, char const*, int, char const*, char*) () from /home/flibitijibibo/.local/share/Steam/SteamApps/LOLNOPE/garrysmod/bin/libawesomium-1-7.so.0
#4 0xe26bbfb9 in TCMalloc_CrashReporter::PrintfAndDie(char const*, ...) () from /home/flibitijibibo/.local/share/Steam/SteamApps/LOLNOPE/garrysmod/bin/libawesomium-1-7.so.0
#5 0xe26c88a4 in (anonymous namespace)::InvalidFree(void*) () from /home/flibitijibibo/.local/share/Steam/SteamApps/LOLNOPE/garrysmod/bin/libawesomium-1-7.so.0
#6 0xe3b78b8f in ?? () from /home/flibitijibibo/.local/share/Steam/SteamApps/LOLNOPE/garrysmod/garrysmod/bin/client.so
#7 0xe3b78b2a in ?? () from /home/flibitijibibo/.local/share/Steam/SteamApps/LOLNOPE/garrysmod/garrysmod/bin/client.so
#8 0xe3b78c26 in ?? () from /home/flibitijibibo/.local/share/Steam/SteamApps/LOLNOPE/garrysmod/garrysmod/bin/client.so
#9 0xe39d5e74 in ?? () from /home/flibitijibibo/.local/share/Steam/SteamApps/LOLNOPE/garrysmod/garrysmod/bin/client.so
#10 0xe37e122d in ?? () from /home/flibitijibibo/.local/share/Steam/SteamApps/LOLNOPE/garrysmod/garrysmod/bin/client.so
#11 0xe39139fb in ?? () from /home/flibitijibibo/.local/share/Steam/SteamApps/LOLNOPE/garrysmod/garrysmod/bin/client.so
#12 0xf3354732 in ?? () from /home/flibitijibibo/.local/share/Steam/SteamApps/LOLNOPE/garrysmod/bin/engine.so
#13 0xf343a81e in ?? () from /home/flibitijibibo/.local/share/Steam/SteamApps/LOLNOPE/garrysmod/bin/engine.so
#14 0xf3519f50 in ?? () from /home/flibitijibibo/.local/share/Steam/SteamApps/LOLNOPE/garrysmod/bin/engine.so
#15 0xf351eb9f in ?? () from /home/flibitijibibo/.local/share/Steam/SteamApps/LOLNOPE/garrysmod/bin/engine.so
#16 0xf351bd46 in ?? () from /home/flibitijibibo/.local/share/Steam/SteamApps/LOLNOPE/garrysmod/bin/engine.so
#17 0xf356ba60 in ?? () from /home/flibitijibibo/.local/share/Steam/SteamApps/LOLNOPE/garrysmod/bin/engine.so
#18 0xf351d0ff in ?? () from /home/flibitijibibo/.local/share/Steam/SteamApps/LOLNOPE/garrysmod/bin/engine.so
#19 0xf7faff60 in ?? () from bin/launcher.so
#20 0xf7faff60 in ?? () from bin/launcher.so
#21 0xf7f983fd in LauncherMain () from bin/launcher.so
#22 0x080484d4 in main ()

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.