From f8d4a958dbad70d07946f5ad5ebf9e943cdea141 Mon Sep 17 00:00:00 2001 From: Adam Bukowski Date: Sun, 24 Nov 2013 16:27:21 +0100 Subject: [PATCH 1/4] Set maxplayers at start of the server It can't be set in config file, while server is running already. Let users to set this here. --- CounterStrike/csserver | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CounterStrike/csserver b/CounterStrike/csserver index c50b543cc..c6bb31030 100644 --- a/CounterStrike/csserver +++ b/CounterStrike/csserver @@ -16,7 +16,8 @@ email="email@example.com" defaultmap="de_aztec" port="27015" clientport="27005" -parms="-game cstrike +map ${defaultmap} -strictportbind -port ${port} +clientport ${clientport}" +maxplayers="16" +parms="-game cstrike +map ${defaultmap} -strictportbind -port ${port} +clientport ${clientport} +maxplayers ${maxplayers}" #### Advanced Variables #### From 1c73962d04f04b0e10af7fe98b18960153a5e527 Mon Sep 17 00:00:00 2001 From: Adam Bukowski Date: Sun, 24 Nov 2013 17:04:12 +0100 Subject: [PATCH 2/4] Fix steamclient.so fix It should be created in the home directory, not the install directory --- CounterStrike/csserver | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CounterStrike/csserver b/CounterStrike/csserver index c6bb31030..3522bdce7 100644 --- a/CounterStrike/csserver +++ b/CounterStrike/csserver @@ -635,9 +635,9 @@ echo "=================================" sleep 1 echo "" echo "Applying steamclient.so fix" - mkdir -v ${rootdir}/.steam - mkdir -v ${rootdir}/.steam/sdk32 - cp -v ${filesdir}/steamclient.so ${rootdir}/.steam/sdk32/steamclient.so + mkdir -v ${HOME}/.steam + mkdir -v ${HOME}/.steam/sdk32 + cp -v ${filesdir}/steamclient.so ${HOME}/.steam/sdk32/steamclient.so sleep 1 fn_header fn_details From 5844952b03b7570308a0665e165f260d172618c4 Mon Sep 17 00:00:00 2001 From: Adam Bukowski Date: Sun, 24 Nov 2013 17:17:00 +0100 Subject: [PATCH 3/4] Set proper server config file I've installed CS server two days ago and there wasn't cfg dir. Touching file failed. Config was placed directly in cstrike dir. Also we don't have to touch file to append content. --- CounterStrike/csserver | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CounterStrike/csserver b/CounterStrike/csserver index 3522bdce7..4064ce0b0 100644 --- a/CounterStrike/csserver +++ b/CounterStrike/csserver @@ -571,8 +571,7 @@ echo "=================================" sleep 1 echo "" echo "Creating server.cfg" - touch ${filesdir}/cstrike/cfg/server.cfg - echo "exec ${servercfg}" > ${filesdir}/cstrike/cfg/server.cfg + echo "exec ${servicename}.cfg" >> ${filesdir}/cstrike/server.cfg sleep 1 echo "Creating default config file:" sleep 0.5 From a46f23fd4b86e3ec69a9db2cb61c76f4977a8678 Mon Sep 17 00:00:00 2001 From: Adam Bukowski Date: Sun, 24 Nov 2013 17:58:30 +0100 Subject: [PATCH 4/4] Set maxplayers parameter for all Source and GoldSource games According to this page https://developer.valvesoftware.com/wiki/Command_Line_Options I've set this as run parameter (-maxplayers), instead of console variable (+maxplayers), because Source games doesn't have the second. --- CounterStrike/csserver | 2 +- CounterStrikeGlobalOffensive/csgoserver | 3 ++- CounterStrikeSource/cssserver | 3 ++- DayOfDefeatSource/dodsserver | 3 ++- HalfLife2Deathmatch/hl2dmserver | 3 ++- Left4Dead2/l4d2server | 3 ++- NoMoreRoomInHell/nmrihserver | 3 ++- TeamFortress2/tf2server | 3 ++- TheHiddenSource/thsserver | 3 ++- 9 files changed, 17 insertions(+), 9 deletions(-) diff --git a/CounterStrike/csserver b/CounterStrike/csserver index 4064ce0b0..7c48d4033 100644 --- a/CounterStrike/csserver +++ b/CounterStrike/csserver @@ -17,7 +17,7 @@ defaultmap="de_aztec" port="27015" clientport="27005" maxplayers="16" -parms="-game cstrike +map ${defaultmap} -strictportbind -port ${port} +clientport ${clientport} +maxplayers ${maxplayers}" +parms="-game cstrike +map ${defaultmap} -strictportbind -port ${port} +clientport ${clientport} -maxplayers ${maxplayers}" #### Advanced Variables #### diff --git a/CounterStrikeGlobalOffensive/csgoserver b/CounterStrikeGlobalOffensive/csgoserver index 89c17445c..ef75f8f2e 100644 --- a/CounterStrikeGlobalOffensive/csgoserver +++ b/CounterStrikeGlobalOffensive/csgoserver @@ -17,7 +17,8 @@ defaultmap="de_dust" port="27015" sourcetvport="27020" clientport="27005" -parms="-game csgo +map ${defaultmap} -strictportbind -port ${port} +tv_port ${sourcetvport} +clientport ${clientport}" +maxplayers="16" +parms="-game csgo +map ${defaultmap} -strictportbind -port ${port} +tv_port ${sourcetvport} +clientport ${clientport} -maxplayers ${maxplayers}" #### Advanced Variables #### diff --git a/CounterStrikeSource/cssserver b/CounterStrikeSource/cssserver index 6f2ec01cf..11d82c7a4 100644 --- a/CounterStrikeSource/cssserver +++ b/CounterStrikeSource/cssserver @@ -17,7 +17,8 @@ defaultmap="de_dust" port="27015" sourcetvport="27020" clientport="27005" -parms="-game cstrike +map ${defaultmap} -strictportbind -port ${port} +tv_port ${sourcetvport} +clientport ${clientport}" +maxplayers="16" +parms="-game cstrike +map ${defaultmap} -strictportbind -port ${port} +tv_port ${sourcetvport} +clientport ${clientport} -maxplayers ${maxplayers}" #### Advanced Variables #### diff --git a/DayOfDefeatSource/dodsserver b/DayOfDefeatSource/dodsserver index 455c310ea..e9e67d003 100644 --- a/DayOfDefeatSource/dodsserver +++ b/DayOfDefeatSource/dodsserver @@ -17,7 +17,8 @@ defaultmap="dod_Anzio" port="27015" sourcetvport="27020" clientport="27005" -parms="-game dod +map ${defaultmap} -strictportbind -port ${port} +tv_port ${sourcetvport} +clientport ${clientport}" +maxplayers="16" +parms="-game dod +map ${defaultmap} -strictportbind -port ${port} +tv_port ${sourcetvport} +clientport ${clientport} -maxplayers ${maxplayers}" #### Advanced Variables #### diff --git a/HalfLife2Deathmatch/hl2dmserver b/HalfLife2Deathmatch/hl2dmserver index 2a8fbfd84..af4bad6ea 100644 --- a/HalfLife2Deathmatch/hl2dmserver +++ b/HalfLife2Deathmatch/hl2dmserver @@ -17,7 +17,8 @@ defaultmap="dm_lockdown" port="27015" sourcetvport="27020" clientport="27005" -parms="-game hl2mp +map ${defaultmap} -strictportbind -port ${port} +tv_port ${sourcetvport} +clientport ${clientport}" +maxplayers="16" +parms="-game hl2mp +map ${defaultmap} -strictportbind -port ${port} +tv_port ${sourcetvport} +clientport ${clientport} -maxplayers ${maxplayers}" #### Advanced Variables #### diff --git a/Left4Dead2/l4d2server b/Left4Dead2/l4d2server index 0dab254e7..af222e25b 100644 --- a/Left4Dead2/l4d2server +++ b/Left4Dead2/l4d2server @@ -17,7 +17,8 @@ defaultmap="c5m1_waterfront" port="27015" sourcetvport="27020" clientport="27005" -parms="-game left4dead2 +map ${defaultmap} -strictportbind -port ${port} +tv_port ${sourcetvport} +clientport ${clientport}" +maxplayers="16" +parms="-game left4dead2 +map ${defaultmap} -strictportbind -port ${port} +tv_port ${sourcetvport} +clientport ${clientport} -maxplayers ${maxplayers}" #### Advanced Variables #### diff --git a/NoMoreRoomInHell/nmrihserver b/NoMoreRoomInHell/nmrihserver index 539b92093..4059a2d5f 100644 --- a/NoMoreRoomInHell/nmrihserver +++ b/NoMoreRoomInHell/nmrihserver @@ -21,7 +21,8 @@ defaultmap="nmo_broadway" port="27015" sourcetvport="27020" clientport="27005" -parms="+map ${defaultmap} -strictportbind -port ${port} +tv_port ${sourcetvport} +clientport ${clientport}" +maxplayers="16" +parms="+map ${defaultmap} -strictportbind -port ${port} +tv_port ${sourcetvport} +clientport ${clientport} -maxplayers ${maxplayers}" #### Advanced Variables #### diff --git a/TeamFortress2/tf2server b/TeamFortress2/tf2server index f34b9ac5b..66a4b30ab 100644 --- a/TeamFortress2/tf2server +++ b/TeamFortress2/tf2server @@ -17,7 +17,8 @@ defaultmap="ctf_2fort" port="27015" sourcetvport="27020" clientport="27005" -parms="-game tf +map ${defaultmap} -strictportbind -port ${port} +tv_port ${sourcetvport} +clientport ${clientport}" +maxplayers="16" +parms="-game tf +map ${defaultmap} -strictportbind -port ${port} +tv_port ${sourcetvport} +clientport ${clientport} -maxplayers ${maxplayers}" #### Advanced Variables #### diff --git a/TheHiddenSource/thsserver b/TheHiddenSource/thsserver index 946914a4e..93d481958 100644 --- a/TheHiddenSource/thsserver +++ b/TheHiddenSource/thsserver @@ -17,7 +17,8 @@ defaultmap="hdn_docks" port="27015" sourcetvport="27020" clientport="27005" -parms="-game hidden +map ${defaultmap} -port ${port} +tv_port ${sourcetvport} +clientport ${clientport}" +maxplayers="16" +parms="-game hidden +map ${defaultmap} -port ${port} +tv_port ${sourcetvport} +clientport ${clientport} -maxplayers ${maxplayers}" #### Advanced Variables ####