Skip to content

Commit

Permalink
Merge branch 'hotfix/v21.4.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibbs64 committed Oct 29, 2021
2 parents 4de1af9 + 6fc99cf commit 8f6c349
Show file tree
Hide file tree
Showing 14 changed files with 71 additions and 69 deletions.
29 changes: 0 additions & 29 deletions .github/release-drafter.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/release-drafter.yml

This file was deleted.

14 changes: 14 additions & 0 deletions .github/workflows/version-check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version=$(grep "version=" linuxgsm.sh | sed -e 's/version//g'| tr -d '="')
modulesversion=$(grep "modulesversion=" lgsm/functions/core_functions.sh | sed -e 's/modulesversion//g'| tr -d '="')

if [ "${version}" != "${modulesversion}" ]; then
echo "Error! LinuxGSM version mismatch"
echo "Version: ${version}"
echo "Modules Version: ${modulesversion}"
exit 1
else
echo "Success! LinuxGSM version match"
echo "Version: ${version}"
echo "Modules Version: ${modulesversion}"
exit
fi
23 changes: 23 additions & 0 deletions .github/workflows/version-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This is a basic workflow to help you get started with Actions

name: Version Check

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on: push

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
Version-Check:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Runs a single command using the runners shell
- name: compare versions
run: chmod +x .github/workflows/version-check.sh; .github/workflows/version-check.sh
2 changes: 1 addition & 1 deletion lgsm/config-default/config-lgsm/sfserver/_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ beaconport="15000"
port="7777"

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

#### LinuxGSM Settings ####

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.4.0"
modulesversion="v21.4.1"

# Core

Expand Down
25 changes: 23 additions & 2 deletions lgsm/functions/info_game.sh
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,14 @@ fn_info_game_kf2(){
defaultmap=${defaultmap:-"NOT SET"}
}

fn_info_game_lo(){
# Parameters
servername=${servername:-"NOT SET"}
port=${port:-"0"}
queryport=${queryport:-"0"}
maxplayers=${slots:-"0"}
}

fn_info_game_mc(){
# Config
if [ ! -f "${servercfgfullpath}" ]; then
Expand All @@ -803,7 +811,7 @@ fn_info_game_mc(){
gamemode="${unavailable}"
gameworld="${unavailable}"
else
servername=$(grep "motd" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/motd//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
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]*$//')
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]*$//')
rconport=$(grep "rcon.port" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]')
maxplayers=$(grep "max-players" "${servercfgfullpath}" | grep -v "#" | tr -cd '[:digit:]')
Expand Down Expand Up @@ -1550,6 +1558,14 @@ fn_info_game_sdtd(){
fi
}

fn_info_game_sf(){
# Parameters
servername=${selfname:-"NOT SET"}
port=${port:-"0"}
queryport=${queryport:-"0"}
beaconport=${beaconport:-"0"}
}

fn_info_game_sof2(){
# Config
if [ ! -f "${servercfgfullpath}" ]; then
Expand Down Expand Up @@ -1927,7 +1943,8 @@ fn_info_game_unt(){
# Parameters
servername=${selfname:-"NOT SET"}
port=${port:-"0"}
queryport=$((port+1))
queryport=${port}
steamport=$((port+1))
}

fn_info_game_ut(){
Expand Down Expand Up @@ -2230,6 +2247,8 @@ elif [ "${shortname}" == "kf" ]; then
fn_info_game_kf
elif [ "${shortname}" == "kf2" ]; then
fn_info_game_kf2
elif [ "${shortname}" == "lo" ]; then
fn_info_game_lo
elif [ "${shortname}" == "mc" ]||[ "${shortname}" == "pmc" ]; then
fn_info_game_mc
elif [ "${shortname}" == "mcb" ]; then
Expand Down Expand Up @@ -2280,6 +2299,8 @@ elif [ "${shortname}" == "scpsl" ]||[ "${shortname}" == "scpslsm" ]; then
fn_info_game_scpsl
elif [ "${shortname}" == "sdtd" ]; then
fn_info_game_sdtd
elif [ "${shortname}" == "sf" ]; then
fn_info_game_sf
elif [ "${shortname}" == "sof2" ]; then
fn_info_game_sof2
elif [ "${shortname}" == "sol" ]; then
Expand Down
3 changes: 2 additions & 1 deletion lgsm/functions/info_messages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ fn_info_message_arma3(){
fn_port "header"
fn_port "Game" port udp
fn_port "Voice" voiceport udp
fn_port "Query Steam" queryport udp
fn_port "Query" queryport udp
fn_port "Steam Master" steammasterport udp
fn_port "Voice (unused)" voiceunusedport udp
fn_port "BattleEye" battleeyeport udp
Expand Down Expand Up @@ -1517,6 +1517,7 @@ fn_info_message_unt(){
fn_port "header"
fn_port "Game" port udp
fn_port "Query" queryport udp
fn_port "Steam" steamport udp
} | column -s $'\t' -t
}

Expand Down
3 changes: 2 additions & 1 deletion lgsm/functions/query_gsquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ def __init__(self, options, arguments):
self.response = None
self.sanity_checks()

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

@staticmethod
def exit_success(self, success_message=''):
sys.stdout.write('OK: ' + str(success_message) + '\n')
sys.exit(0)
Expand Down Expand Up @@ -140,6 +142,5 @@ def sanity_checks(self):
help='Display debugging output.'
)
options, arguments = parser.parse_args()
#
server = gsquery(options, arguments)
server.responding()
2 changes: 1 addition & 1 deletion 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.4.0"
version="v21.4.1"
shortname="core"
gameservername="core"
commandname="CORE"
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.4.0"
version="v21.4.1"
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.4.0"
version="v21.4.1"
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.4.0"
version="v21.4.1"
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.4.0"
version="v21.4.1"
shortname="ts3"
gameservername="ts3server"
commandname="CORE"
Expand Down

0 comments on commit 8f6c349

Please sign in to comment.