diff --git a/lgsm/functions/info_parms.sh b/lgsm/functions/info_parms.sh index 84c4810db..e0b63e585 100644 --- a/lgsm/functions/info_parms.sh +++ b/lgsm/functions/info_parms.sh @@ -28,8 +28,14 @@ fn_info_config_idtech3(){ } fn_info_config_realvirtuality(){ + port=$(grep "^serverport=" "${servercfgfullpath}" | tr -cd '[:digit:]') + queryport=$(grep "^steamqueryport=" "${servercfgfullpath}" | tr -cd '[:digit:]') + masterport=$(grep "^steamport=" "${servercfgfullpath}" | tr -cd '[:digit:]') + # Not Set - port=${rconport:-"0"} + port=${port:-"2302"} + queryport=${queryport:-"2303"} + masterport=${masterport:-"2304"} } fn_info_config_source(){ @@ -168,4 +174,4 @@ elif [ "${engine}" == "terraria" ]; then # Unreal/Unreal 2 engine elif [ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then fn_info_config_unreal -fi \ No newline at end of file +fi diff --git a/lgsm/functions/monitor_gsquery.sh b/lgsm/functions/monitor_gsquery.sh index 50905559c..4a5522ff2 100644 --- a/lgsm/functions/monitor_gsquery.sh +++ b/lgsm/functions/monitor_gsquery.sh @@ -25,6 +25,8 @@ if [ "${gsquery}" == "yes" ]; then if [ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then port=$((port + 1)) + elif [ "${engine}" == "realvirtuality" ]; then + port=$((port + 1)) elif [ "${engine}" == "spark" ]; then port=$((port + 1)) fi @@ -86,4 +88,4 @@ if [ "${gsquery}" == "yes" ]; then done fi done -fi \ No newline at end of file +fi