Skip to content

Commit

Permalink
Merge branch 'hotfix/v21.1.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibbs64 committed Feb 7, 2021
2 parents 22a4498 + 32320a6 commit 381d7f2
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 12 deletions.
7 changes: 4 additions & 3 deletions lgsm/config-default/config-lgsm/vhserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@

## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters
servername="Valheim Server"
# Minimum password length is 5.
serverpassword=""
port="2456"
gameworld="${selfname}"
public="1"

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

Expand Down Expand Up @@ -138,8 +139,8 @@ stopmode="2"
# 3: gamedig
# 4: gsquery
# 5: tcp
querymode="1"
querytype=""
querymode="2"
querytype="protocol-valve"

## Console type
consoleverbose="yes"
Expand Down
2 changes: 1 addition & 1 deletion lgsm/functions/core_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"

modulesversion="v21.1.2"
modulesversion="v21.1.3"

# Core

Expand Down
5 changes: 3 additions & 2 deletions lgsm/functions/info_messages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1259,9 +1259,9 @@ fn_info_message_unreal(){
fi
if [ "${appid}" ]; then
if [ "${appid}" == "223250" ]; then
echo -e "< Steam\tINBOUND\t20610\tudp"
echo -e "> Steam\tINBOUND\t20610\tudp"
else
echo -e "< Steam\tINBOUND\t20660\tudp"
echo -e "> Steam\tINBOUND\t20660\tudp"
fi
fi
echo -e "> Web Admin\tINBOUND\t${webadminport}\ttcp\tListenPort=${webadminport}"
Expand Down Expand Up @@ -1347,6 +1347,7 @@ fn_info_message_vh(){
{
echo -e "${lightblue}DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL${default}"
echo -e "> Game\tINBOUND\t${port}\tudp"
echo -e "> Query\tINBOUND\t${queryport}\tudp"
} | column -s $'\t' -t
}

Expand Down
10 changes: 10 additions & 0 deletions lgsm/functions/info_parms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,14 @@ fn_info_parms_ut(){
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(){
port=${port:-"0"}
queryport="${port:-"0"}"
Expand Down Expand Up @@ -293,6 +301,8 @@ elif [ "${shortname}" == "tu" ]; then
fn_info_parms_towerunite
elif [ "${shortname}" == "tw" ]; then
fn_info_parms_teeworlds
elif [ "${shortname}" == "vh" ]; then
fn_info_parms_vh
elif [ "${shortname}" == "mh" ]; then
fn_info_parms_mordhau
elif [ "${shortname}" == "mta" ]; then
Expand Down
3 changes: 1 addition & 2 deletions linuxgsm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi

version="v21.1.2"
version="v21.1.3"
shortname="core"
gameservername="core"
commandname="CORE"
Expand Down Expand Up @@ -452,7 +452,6 @@ else
eval preexecutable="$(sed -nr 's/^ *preexecutable=(.*)$/\1/p' "${configdirserver}/_default.cfg")"
fi
eval startparameters="$(sed -nr 's/^ *startparameters=(.*)$/\1/p' "${configdirserver}/_default.cfg")"
eval executable="$(sed -nr 's/^ *executable=(.*)$/\1/p' "${configdirserver}/_default.cfg")"
fi

# Load the linuxgsm.sh in to tmpdir. If missing download it.
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_fctrserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi

version="v21.1.2"
version="v21.1.3"
shortname="fctr"
gameservername="fctrserver"
commandname="CORE"
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_jc2server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi

version="v21.1.2"
version="v21.1.3"
shortname="jc2"
gameservername="jc2server"
commandname="CORE"
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_mcserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi

version="v21.1.2"
version="v21.1.3"
shortname="mc"
gameservername="mcserver"
commandname="CORE"
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_ts3server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
set -x
fi

version="v21.1.2"
version="v21.1.3"
shortname="ts3"
gameservername="ts3server"
commandname="CORE"
Expand Down

0 comments on commit 381d7f2

Please sign in to comment.