From c34b9cdaeea8524a8d5bf90529f2b67ec0385551 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 3 Feb 2019 00:22:14 +0000 Subject: [PATCH 1/3] fix(monitor): correct quakeworld query --- lgsm/functions/query_gamedig.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lgsm/functions/query_gamedig.sh b/lgsm/functions/query_gamedig.sh index 8fa8d1b45..affef935c 100644 --- a/lgsm/functions/query_gamedig.sh +++ b/lgsm/functions/query_gamedig.sh @@ -30,6 +30,14 @@ if [ "$(command -v gamedig 2>/dev/null)" ]&&[ "$(command -v jq 2>/dev/null)" ]; fi done + local engine_query_array=( quake ) + for engine_query in "${engine_query_array[@]}" + do + if [ "${engine_query}" == "${engine}" ]; then + gamedigengine="protocol-quake1" + fi + done + local engine_query_array=( idtech2 iw2.0 ) for engine_query in "${engine_query_array[@]}" do @@ -38,7 +46,7 @@ if [ "$(command -v gamedig 2>/dev/null)" ]&&[ "$(command -v jq 2>/dev/null)" ]; fi done - local engine_query_array=( idtech3 quake iw3.0 ) + local engine_query_array=( idtech3 iw3.0 ) for engine_query in "${engine_query_array[@]}" do if [ "${engine_query}" == "${engine}" ]; then From 06fd9d823f44abe69862c70aae06b6e1d1b92c1f Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 3 Feb 2019 00:24:53 +0000 Subject: [PATCH 2/3] fix(qwserver): define qwserver query port --- lgsm/functions/info_parms.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lgsm/functions/info_parms.sh b/lgsm/functions/info_parms.sh index 133365fd8..24d9c0c68 100644 --- a/lgsm/functions/info_parms.sh +++ b/lgsm/functions/info_parms.sh @@ -77,6 +77,7 @@ fn_info_parms_projectzomboid(){ fn_info_parms_quakeworld(){ port=${port:-"0"} + queryport=${port} } fn_info_parms_quake2(){ From e060b65665088d222a9400cda6ba0d324c81077b Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 3 Feb 2019 00:28:57 +0000 Subject: [PATCH 3/3] fix(query): correct quake query --- lgsm/functions/query_gsquery.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lgsm/functions/query_gsquery.py b/lgsm/functions/query_gsquery.py index 3f8ec590b..e5dd40463 100644 --- a/lgsm/functions/query_gsquery.py +++ b/lgsm/functions/query_gsquery.py @@ -18,8 +18,8 @@ class gsquery: self.default_buffer_length = 1024 # sourcequery=[ 'avalanche3.0','madness','quakelive','realvirtuality','refractor','source','goldsource','spark','starbound','unity3d', 'unreal4', 'wurm' ] - idtech3query=['idtech3','quake','iw3.0'] - idtech2query=['idtech2','iw2.0'] + idtech3query=['idtech3','iw3.0'] + idtech2query=['idtech2','quake','iw2.0'] minecraftquery=['minecraft','lwjgl2'] if self.option.engine in sourcequery: self.query_prompt_string = b'\xFF\xFF\xFF\xFFTSource Engine Query\0'