Browse Source

Merge branch 'hotfix/v21.1.3'

pull/3274/head v21.1.3
Daniel Gibbs 4 years ago
parent
commit
381d7f2b09
  1. 7
      lgsm/config-default/config-lgsm/vhserver/_default.cfg
  2. 2
      lgsm/functions/core_functions.sh
  3. 5
      lgsm/functions/info_messages.sh
  4. 10
      lgsm/functions/info_parms.sh
  5. 3
      linuxgsm.sh
  6. 2
      tests/tests_fctrserver.sh
  7. 2
      tests/tests_jc2server.sh
  8. 2
      tests/tests_mcserver.sh
  9. 2
      tests/tests_ts3server.sh

7
lgsm/config-default/config-lgsm/vhserver/_default.cfg

@ -10,13 +10,14 @@
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters ## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters
servername="Valheim Server" servername="Valheim Server"
# Minimum password length is 5.
serverpassword="" serverpassword=""
port="2456" port="2456"
gameworld="${selfname}" gameworld="${selfname}"
public="1" public="1"
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters ## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
startparameters="-name ${servername} -password ${serverpassword} -port ${port} -world ${gameworld} -public ${public}" startparameters="-name '${servername}' -password ${serverpassword} -port ${port} -world ${gameworld} -public ${public}"
#### LinuxGSM Settings #### #### LinuxGSM Settings ####
@ -138,8 +139,8 @@ stopmode="2"
# 3: gamedig # 3: gamedig
# 4: gsquery # 4: gsquery
# 5: tcp # 5: tcp
querymode="1" querymode="2"
querytype="" querytype="protocol-valve"
## Console type ## Console type
consoleverbose="yes" consoleverbose="yes"

2
lgsm/functions/core_functions.sh

@ -8,7 +8,7 @@
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
modulesversion="v21.1.2" modulesversion="v21.1.3"
# Core # Core

5
lgsm/functions/info_messages.sh

@ -1259,9 +1259,9 @@ fn_info_message_unreal(){
fi fi
if [ "${appid}" ]; then if [ "${appid}" ]; then
if [ "${appid}" == "223250" ]; then if [ "${appid}" == "223250" ]; then
echo -e "< Steam\tINBOUND\t20610\tudp" echo -e "> Steam\tINBOUND\t20610\tudp"
else else
echo -e "< Steam\tINBOUND\t20660\tudp" echo -e "> Steam\tINBOUND\t20660\tudp"
fi fi
fi fi
echo -e "> Web Admin\tINBOUND\t${webadminport}\ttcp\tListenPort=${webadminport}" echo -e "> Web Admin\tINBOUND\t${webadminport}\ttcp\tListenPort=${webadminport}"
@ -1347,6 +1347,7 @@ fn_info_message_vh(){
{ {
echo -e "${lightblue}DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL${default}" echo -e "${lightblue}DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL${default}"
echo -e "> Game\tINBOUND\t${port}\tudp" echo -e "> Game\tINBOUND\t${port}\tudp"
echo -e "> Query\tINBOUND\t${queryport}\tudp"
} | column -s $'\t' -t } | column -s $'\t' -t
} }

10
lgsm/functions/info_parms.sh

@ -235,6 +235,14 @@ fn_info_parms_ut(){
port=${port:-"0"} port=${port:-"0"}
} }
fn_info_parms_vh(){
port=${port:-"0"}
queryport=$((port + 1))
gameworld=${gameworld:-"NOT SET"}
serverpassword=${serverpassword:-"NOT SET"}
servername=${servername:-"NOT SET"}
}
fn_info_parms_wf(){ fn_info_parms_wf(){
port=${port:-"0"} port=${port:-"0"}
queryport="${port:-"0"}" queryport="${port:-"0"}"
@ -293,6 +301,8 @@ elif [ "${shortname}" == "tu" ]; then
fn_info_parms_towerunite fn_info_parms_towerunite
elif [ "${shortname}" == "tw" ]; then elif [ "${shortname}" == "tw" ]; then
fn_info_parms_teeworlds fn_info_parms_teeworlds
elif [ "${shortname}" == "vh" ]; then
fn_info_parms_vh
elif [ "${shortname}" == "mh" ]; then elif [ "${shortname}" == "mh" ]; then
fn_info_parms_mordhau fn_info_parms_mordhau
elif [ "${shortname}" == "mta" ]; then elif [ "${shortname}" == "mta" ]; then

3
linuxgsm.sh

@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x set -x
fi fi
version="v21.1.2" version="v21.1.3"
shortname="core" shortname="core"
gameservername="core" gameservername="core"
commandname="CORE" commandname="CORE"
@ -452,7 +452,6 @@ else
eval preexecutable="$(sed -nr 's/^ *preexecutable=(.*)$/\1/p' "${configdirserver}/_default.cfg")" eval preexecutable="$(sed -nr 's/^ *preexecutable=(.*)$/\1/p' "${configdirserver}/_default.cfg")"
fi fi
eval startparameters="$(sed -nr 's/^ *startparameters=(.*)$/\1/p' "${configdirserver}/_default.cfg")" eval startparameters="$(sed -nr 's/^ *startparameters=(.*)$/\1/p' "${configdirserver}/_default.cfg")"
eval executable="$(sed -nr 's/^ *executable=(.*)$/\1/p' "${configdirserver}/_default.cfg")"
fi fi
# Load the linuxgsm.sh in to tmpdir. If missing download it. # Load the linuxgsm.sh in to tmpdir. If missing download it.

2
tests/tests_fctrserver.sh

@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x set -x
fi fi
version="v21.1.2" version="v21.1.3"
shortname="fctr" shortname="fctr"
gameservername="fctrserver" gameservername="fctrserver"
commandname="CORE" commandname="CORE"

2
tests/tests_jc2server.sh

@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x set -x
fi fi
version="v21.1.2" version="v21.1.3"
shortname="jc2" shortname="jc2"
gameservername="jc2server" gameservername="jc2server"
commandname="CORE" commandname="CORE"

2
tests/tests_mcserver.sh

@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x set -x
fi fi
version="v21.1.2" version="v21.1.3"
shortname="mc" shortname="mc"
gameservername="mcserver" gameservername="mcserver"
commandname="CORE" commandname="CORE"

2
tests/tests_ts3server.sh

@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x set -x
fi fi
version="v21.1.2" version="v21.1.3"
shortname="ts3" shortname="ts3"
gameservername="ts3server" gameservername="ts3server"
commandname="CORE" commandname="CORE"

Loading…
Cancel
Save