Просмотр исходного кода

Merge remote-tracking branch 'refs/remotes/origin/master' into exitcodes

Daniel Gibbs 10 лет назад
Родитель
Сommit
2d4a9fb7d4
2 измененных файлов с 11 добавлено и 3 удалено
  1. 8 2
      lgsm/functions/info_parms.sh
  2. 3 1
      lgsm/functions/monitor_gsquery.sh

+ 8 - 2
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
+fi

+ 3 - 1
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
+fi