Browse Source

standardized workshop variables

pull/1936/head
Daniel Gibbs 7 years ago
parent
commit
d0ed7c2cb7
  1. 15
      lgsm/config-default/config-lgsm/csgoserver/_default.cfg
  2. 11
      lgsm/config-default/config-lgsm/gmodserver/_default.cfg

15
lgsm/config-default/config-lgsm/csgoserver/_default.cfg

@ -33,16 +33,15 @@ tickrate="64"
# More info: https://linuxgsm.com/gslt # More info: https://linuxgsm.com/gslt
gslt="" gslt=""
## Optional: Workshop Parameters ## Workshop Parameters | https://developer.valvesoftware.com/wiki/CSGO_Workshop_For_Server_Operators
# https://developer.valvesoftware.com/wiki/CSGO_Workshop_For_Server_Operators # To get an API key visit - https://steamcommunity.com/dev/apikey
# To get an authkey visit - http://steamcommunity.com/dev/apikey wsapikey=""
authkey="" wscollectionid=""
ws_collection_id="" wsstartmap=""
ws_start_map=""
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters ## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
fn_parms(){ fn_parms(){
parms="-game csgo -usercon -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +sv_setsteamaccount ${gslt} -tickrate ${tickrate} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers_override ${maxplayers} +mapgroup ${mapgroup} +game_mode ${gamemode} +game_type ${gametype} +host_workshop_collection ${ws_collection_id} +workshop_start_map ${ws_start_map} -authkey ${authkey} -nobreakpad" parms="-game csgo -usercon -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +sv_setsteamaccount ${gslt} -tickrate ${tickrate} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers_override ${maxplayers} +mapgroup ${mapgroup} +game_mode ${gamemode} +game_type ${gametype} +host_workshop_collection ${wscollectionid} +workshop_start_map ${wsstartmap} -authkey ${wsapikey} -nobreakpad"
} }
#### LinuxGSM Settings #### #### LinuxGSM Settings ####
@ -87,7 +86,7 @@ pushovertoken="accesstoken"
# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram # Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". # You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring".
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need # like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need
# any custom string in curl - simple ignore this parameter. # any custom string in curl - simple ignore this parameter.
telegramalert="off" telegramalert="off"
telegramtoken="accesstoken" telegramtoken="accesstoken"

11
lgsm/config-default/config-lgsm/gmodserver/_default.cfg

@ -18,9 +18,10 @@ maxplayers="16"
tickrate="66" tickrate="66"
gamemode="sandbox" gamemode="sandbox"
## Workshop Parameters | http://wiki.garrysmod.com/page/Workshop_for_Dedicated_Servers ## Workshop Parameters | https://wiki.garrysmod.com/page/Workshop_for_Dedicated_Servers
workshopauth="" # To get an API key visit - https://steamcommunity.com/dev/apikey
workshopcollectionid="" wsapikey=""
wscollectionid=""
## Custom Start Parameters ## Custom Start Parameters
# Default +r_hunkalloclightmaps 0, fixes a start issue on maps with many lights # Default +r_hunkalloclightmaps 0, fixes a start issue on maps with many lights
@ -34,7 +35,7 @@ gslt=""
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters ## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
fn_parms(){ fn_parms(){
parms="-game garrysmod -strictportbind -ip ${ip} -port ${port} -tickrate ${tickrate} +host_workshop_collection ${workshopcollectionid} -authkey ${workshopauth} +clientport ${clientport} +tv_port ${sourcetvport} +gamemode ${gamemode} +map ${defaultmap} +sv_setsteamaccount ${gslt} +servercfgfile ${servercfg} -maxplayers ${maxplayers} ${customparms}" parms="-game garrysmod -strictportbind -ip ${ip} -port ${port} -tickrate ${tickrate} +host_workshop_collection ${wscollectionid} -authkey ${wsapikey} +clientport ${clientport} +tv_port ${sourcetvport} +gamemode ${gamemode} +map ${defaultmap} +sv_setsteamaccount ${gslt} +servercfgfile ${servercfg} -maxplayers ${maxplayers} ${customparms}"
} }
#### LinuxGSM Settings #### #### LinuxGSM Settings ####
@ -79,7 +80,7 @@ pushovertoken="accesstoken"
# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram # Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring". # You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring".
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need # like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need
# any custom string in curl - simple ignore this parameter. # any custom string in curl - simple ignore this parameter.
telegramalert="off" telegramalert="off"
telegramtoken="accesstoken" telegramtoken="accesstoken"

Loading…
Cancel
Save