Browse Source

fix(unt): config is auto generated

pull/4310/head
Daniel Gibbs 2 years ago
parent
commit
65e3a93d0d
  1. 6
      lgsm/config-default/config-lgsm/untserver/_default.cfg
  2. 7
      lgsm/modules/install_config.sh

6
lgsm/config-default/config-lgsm/untserver/_default.cfg

@ -13,14 +13,16 @@ ip="0.0.0.0"
port="27015"
maxplayers="20"
defaultmap="PEI"
servername="LinuxGSM"
perspective="first" # Values: first, third, vehicle, Both.
gamemode="normal" # Values: normal, easy, gold.
## Game Server Login Token (GSLT): Required
# GSLT is required for running a public server.
# More info: https://docs.linuxgsm.com/steamcmd/gslt
gslt=""
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
startparameters="-nographics -batchmode -bind ${ip} -port ${port} -maxplayers ${maxplayers} -map ${defaultmap} -gslt ${gslt} +InternetServer/${selfname}"
startparameters="-nographics -batchmode -bind ${ip} -port ${port} -maxplayers ${maxplayers} -perspective ${perspective} -mode ${gamemode} -name ${servername} -map ${defaultmap} -gslt ${gslt} +InternetServer/${selfname}"
#### LinuxGSM Settings ####

7
lgsm/modules/install_config.sh

@ -781,11 +781,8 @@ elif [ "${shortname}" == "ut99" ]; then
fn_set_config_vars
fn_list_config_locations
elif [ "${shortname}" == "unt" ]; then
array_configs+=(Config.json)
fn_fetch_default_config
fn_default_config_remote
fn_set_config_vars
fn_list_config_locations
# Config is generated on first run
:
elif [ "${shortname}" == "vints" ]; then
# Config is generated on first run
:

Loading…
Cancel
Save