From 8173949a059b7df029b29c632e3cc8e20e08b312 Mon Sep 17 00:00:00 2001 From: Marvin Lehmann Date: Tue, 26 May 2015 16:18:21 +0200 Subject: [PATCH 1/4] Fixed 'Unknown command "servercfgfile"' Left 4 Dead 1 doesn't support this command. To run multiple server with different configs you have to use -fork and a few other parameters. --- Left4Dead/l4dserver | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Left4Dead/l4dserver b/Left4Dead/l4dserver index 80eec42ab..df71a4692 100644 --- a/Left4Dead/l4dserver +++ b/Left4Dead/l4dserver @@ -4,7 +4,7 @@ # Author: Daniel Gibbs # Contributor: Summit Singh Thakur # Website: http://gameservermanagers.com -# Version: 090515 +# Version: 260515 #### Variables #### @@ -27,7 +27,7 @@ updateonstart="no" # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server fn_parms(){ -parms="-game left4dead -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} -tickrate ${tickrate} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" +parms="-game left4dead -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} -tickrate ${tickrate} +map ${defaultmap} -maxplayers ${maxplayers}" } #### Advanced Variables #### From 309ee91730858e43085f93d4473e4458876107d4 Mon Sep 17 00:00:00 2001 From: Marvin Lehmann Date: Tue, 26 May 2015 16:21:49 +0200 Subject: [PATCH 2/4] Added lock file removal for all servers Otherwise the server will restart if you stopped it when monitoring is active. --- functions/fn_stop | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/fn_stop b/functions/fn_stop index 5f5a79b20..e0c67e54a 100644 --- a/functions/fn_stop +++ b/functions/fn_stop @@ -129,6 +129,8 @@ else fn_scriptlog "Stopped ${servername}" fi fi + # Remove lock file + rm -f "${rootdir}/${lockselfname}" sleep 1 echo -en "\n" } @@ -137,4 +139,4 @@ if [ "${gamename}" == "Teamspeak 3" ]; then fn_stop_teamspeak3 else fn_stop_tmux -fi \ No newline at end of file +fi From 31c9bcd195d6af5ad75e6d01625c8ad5a8ad7be4 Mon Sep 17 00:00:00 2001 From: Marvin Lehmann Date: Tue, 26 May 2015 16:26:00 +0200 Subject: [PATCH 3/4] Fixed Steam / LAN error This fixes: - Unable to load Steam support library. - This server will operate in LAN mode only. --- functions/fn_install_glibcfix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/functions/fn_install_glibcfix b/functions/fn_install_glibcfix index 619dadfa0..d9ef9c246 100644 --- a/functions/fn_install_glibcfix +++ b/functions/fn_install_glibcfix @@ -84,6 +84,10 @@ elif [ "$(ldd --version | sed -n '1 p' | tr -cd [:digit:] | tail -c 3)" -lt 215 wget -nv -N --no-check-certificate https://github.com/dgibbs64/linuxgsm/raw/master/Insurgency/dependencies/libm.so.6 wget -nv -N --no-check-certificate https://github.com/dgibbs64/linuxgsm/raw/master/Insurgency/dependencies/librt.so.1 wget -nv -N --no-check-certificate https://github.com/dgibbs64/linuxgsm/raw/master/Insurgency/dependencies/libpthread.so.0 + elif [ "${gamename}" == "Left 4 Dead" ]; then + glibcversion="2.07" + fn_glibcfixmsg + cp -v "${rootdir}/steamcmd/linux32/libstdc++.so.6" "${filesdir}/bin/libstdc++.so.6" # Natural Selection 2 elif [ "${gamename}" == "Natural Selection 2" ]; then glibcversion="2.15" @@ -122,4 +126,4 @@ elif [ "$(ldd --version | sed -n '1 p' | tr -cd [:digit:] | tail -c 3)" -lt 215 : #Else glibcfix not required. fi fi -sleep 1 \ No newline at end of file +sleep 1 From da7f3d0b34e842c0d0b07d865b45847b1c52f48a Mon Sep 17 00:00:00 2001 From: Marvin Lehmann Date: Tue, 26 May 2015 16:33:19 +0200 Subject: [PATCH 4/4] Added default input "y" when opening console Now you just have to press ENTER. Note that this requires v4 of bash. --- functions/fn_console | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/fn_console b/functions/fn_console index ddaa47c58..d4b8c01a3 100644 --- a/functions/fn_console +++ b/functions/fn_console @@ -17,7 +17,7 @@ echo "Press \"CTRL+b d\" to exit console." fn_printwarningnl "Do NOT press CTRL+c to exit." echo "" while true; do - read -p "Continue? [y/N]" yn + read -e -i "y" -p "Continue? [y/N]" yn case $yn in [Yy]* ) break;; [Nn]* ) echo Exiting; return 1;; @@ -45,4 +45,4 @@ else * ) echo "Please answer yes or no.";; esac done -fi \ No newline at end of file +fi