fix(unt): config is auto generated

This commit is contained in:
Daniel Gibbs 2023-09-05 00:01:07 +01:00
parent 8a9f34321d
commit 65e3a93d0d
2 changed files with 6 additions and 7 deletions

View File

@ -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 ####

View File

@ -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
: