Skip to content

Commit 8f6c349

Browse files
committed
Merge branch 'hotfix/v21.4.1'
2 parents 4de1af9 + 6fc99cf commit 8f6c349

14 files changed

+71
-69
lines changed

.github/release-drafter.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/release-drafter.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/version-check.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version=$(grep "version=" linuxgsm.sh | sed -e 's/version//g'| tr -d '="')
2+
modulesversion=$(grep "modulesversion=" lgsm/functions/core_functions.sh | sed -e 's/modulesversion//g'| tr -d '="')
3+
4+
if [ "${version}" != "${modulesversion}" ]; then
5+
echo "Error! LinuxGSM version mismatch"
6+
echo "Version: ${version}"
7+
echo "Modules Version: ${modulesversion}"
8+
exit 1
9+
else
10+
echo "Success! LinuxGSM version match"
11+
echo "Version: ${version}"
12+
echo "Modules Version: ${modulesversion}"
13+
exit
14+
fi

.github/workflows/version-check.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Version Check
4+
5+
# Controls when the action will run. Triggers the workflow on push or pull request
6+
# events but only for the master branch
7+
on: push
8+
9+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
10+
jobs:
11+
# This workflow contains a single job called "build"
12+
Version-Check:
13+
# The type of runner that the job will run on
14+
runs-on: ubuntu-latest
15+
16+
# Steps represent a sequence of tasks that will be executed as part of the job
17+
steps:
18+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
19+
- uses: actions/checkout@v2
20+
21+
# Runs a single command using the runners shell
22+
- name: compare versions
23+
run: chmod +x .github/workflows/version-check.sh; .github/workflows/version-check.sh

lgsm/config-default/config-lgsm/sfserver/_default.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ beaconport="15000"
1515
port="7777"
1616

1717
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
18-
startparameters="FactoryGame -ServerQueryPort=${queryport} -BeaconPort=${beaconport} -GamePort=${port} -log -unattended"
18+
startparameters="FactoryGame -ServerQueryPort=${queryport} -BeaconPort=${beaconport} -Port=${port} -log -unattended"
1919

2020
#### LinuxGSM Settings ####
2121

lgsm/functions/core_functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

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

11-
modulesversion="v21.4.0"
11+
modulesversion="v21.4.1"
1212

1313
# Core
1414

lgsm/functions/info_game.sh

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,14 @@ fn_info_game_kf2(){
790790
defaultmap=${defaultmap:-"NOT SET"}
791791
}
792792

793+
fn_info_game_lo(){
794+
# Parameters
795+
servername=${servername:-"NOT SET"}
796+
port=${port:-"0"}
797+
queryport=${queryport:-"0"}
798+
maxplayers=${slots:-"0"}
799+
}
800+
793801
fn_info_game_mc(){
794802
# Config
795803
if [ ! -f "${servercfgfullpath}" ]; then
@@ -803,7 +811,7 @@ fn_info_game_mc(){
803811
gamemode="${unavailable}"
804812
gameworld="${unavailable}"
805813
else
806-
servername=$(grep "motd" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/motd//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
814+
servername=$(grep "motd" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/motd//g' | tr -d '=\";,:' | sed 's/\\u00A70//g;s/\\u00A71//g;s/\\u00A72//g;s/\\u00A73//g;s/\\u00A74//g;s/\\u00A75//g;s/\\u00A76//g;s/\\u00A77//g;s/\\u00A78//g;s/\\u00A79//g;s/\\u00A7a//g;s/\\u00A7b//g;s/\\u00A7c//g;s/\\u00A7d//g;s/\\u00A7e//g;s/\\u00A7f//g;s/\\u00A7l//g;s/\\u00A7o//g;s/\\u00A7n//g;s/\\u00A7m//g;s/\\u00A7k//g' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
807815
rconpassword=$(grep "rcon.password" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/rcon.password//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
808816
rconport=$(grep "rcon.port" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]')
809817
maxplayers=$(grep "max-players" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]')
@@ -1550,6 +1558,14 @@ fn_info_game_sdtd(){
15501558
fi
15511559
}
15521560

1561+
fn_info_game_sf(){
1562+
# Parameters
1563+
servername=${selfname:-"NOT SET"}
1564+
port=${port:-"0"}
1565+
queryport=${queryport:-"0"}
1566+
beaconport=${beaconport:-"0"}
1567+
}
1568+
15531569
fn_info_game_sof2(){
15541570
# Config
15551571
if [ ! -f "${servercfgfullpath}" ]; then
@@ -1927,7 +1943,8 @@ fn_info_game_unt(){
19271943
# Parameters
19281944
servername=${selfname:-"NOT SET"}
19291945
port=${port:-"0"}
1930-
queryport=$((port+1))
1946+
queryport=${port}
1947+
steamport=$((port+1))
19311948
}
19321949

19331950
fn_info_game_ut(){
@@ -2230,6 +2247,8 @@ elif [ "${shortname}" == "kf" ]; then
22302247
fn_info_game_kf
22312248
elif [ "${shortname}" == "kf2" ]; then
22322249
fn_info_game_kf2
2250+
elif [ "${shortname}" == "lo" ]; then
2251+
fn_info_game_lo
22332252
elif [ "${shortname}" == "mc" ]||[ "${shortname}" == "pmc" ]; then
22342253
fn_info_game_mc
22352254
elif [ "${shortname}" == "mcb" ]; then
@@ -2280,6 +2299,8 @@ elif [ "${shortname}" == "scpsl" ]||[ "${shortname}" == "scpslsm" ]; then
22802299
fn_info_game_scpsl
22812300
elif [ "${shortname}" == "sdtd" ]; then
22822301
fn_info_game_sdtd
2302+
elif [ "${shortname}" == "sf" ]; then
2303+
fn_info_game_sf
22832304
elif [ "${shortname}" == "sof2" ]; then
22842305
fn_info_game_sof2
22852306
elif [ "${shortname}" == "sol" ]; then

lgsm/functions/info_messages.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ fn_info_message_arma3(){
800800
fn_port "header"
801801
fn_port "Game" port udp
802802
fn_port "Voice" voiceport udp
803-
fn_port "Query Steam" queryport udp
803+
fn_port "Query" queryport udp
804804
fn_port "Steam Master" steammasterport udp
805805
fn_port "Voice (unused)" voiceunusedport udp
806806
fn_port "BattleEye" battleeyeport udp
@@ -1517,6 +1517,7 @@ fn_info_message_unt(){
15171517
fn_port "header"
15181518
fn_port "Game" port udp
15191519
fn_port "Query" queryport udp
1520+
fn_port "Steam" steamport udp
15201521
} | column -s $'\t' -t
15211522
}
15221523

lgsm/functions/query_gsquery.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,12 @@ def __init__(self, options, arguments):
5959
self.response = None
6060
self.sanity_checks()
6161

62+
@staticmethod
6263
def fatal_error(self, error_message, error_code=1):
6364
sys.stderr.write('ERROR: ' + str(error_message) + '\n')
6465
sys.exit(error_code)
6566

67+
@staticmethod
6668
def exit_success(self, success_message=''):
6769
sys.stdout.write('OK: ' + str(success_message) + '\n')
6870
sys.exit(0)
@@ -140,6 +142,5 @@ def sanity_checks(self):
140142
help='Display debugging output.'
141143
)
142144
options, arguments = parser.parse_args()
143-
#
144145
server = gsquery(options, arguments)
145146
server.responding()

linuxgsm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
2020
set -x
2121
fi
2222

23-
version="v21.4.0"
23+
version="v21.4.1"
2424
shortname="core"
2525
gameservername="core"
2626
commandname="CORE"

tests/tests_fctrserver.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
2020
set -x
2121
fi
2222

23-
version="v21.4.0"
23+
version="v21.4.1"
2424
shortname="fctr"
2525
gameservername="fctrserver"
2626
commandname="CORE"

tests/tests_jc2server.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
2020
set -x
2121
fi
2222

23-
version="v21.4.0"
23+
version="v21.4.1"
2424
shortname="jc2"
2525
gameservername="jc2server"
2626
commandname="CORE"

tests/tests_mcserver.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
2020
set -x
2121
fi
2222

23-
version="v21.4.0"
23+
version="v21.4.1"
2424
shortname="mc"
2525
gameservername="mcserver"
2626
commandname="CORE"

tests/tests_ts3server.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
2020
set -x
2121
fi
2222

23-
version="v21.4.0"
23+
version="v21.4.1"
2424
shortname="ts3"
2525
gameservername="ts3server"
2626
commandname="CORE"

0 commit comments

Comments
 (0)