Przeglądaj źródła

Stats port now displaying

Daniel Gibbs 10 lat temu
rodzic
commit
fd929b4cad
3 zmienionych plików z 10 dodań i 4 usunięć
  1. 2 1
      QuakeLive/qlserver
  2. 3 3
      functions/command_details.sh
  3. 5 0
      functions/info_config.sh

+ 2 - 1
QuakeLive/qlserver

@@ -27,6 +27,7 @@ steampass=""
 gameport="27960"
 gameport="27960"
 rconport="28960"
 rconport="28960"
 rconpassword="ch@ng3me"
 rconpassword="ch@ng3me"
+statsport="${gameport}"
 statspassword="ch@ng3me"
 statspassword="ch@ng3me"
 mappool='mappool.txt'
 mappool='mappool.txt'
 ip="0.0.0.0"
 ip="0.0.0.0"
@@ -35,7 +36,7 @@ updateonstart="off"
 # Install/Config Guide : https://steamcommunity.com/sharedfiles/filedetails/?id=542966946
 # Install/Config Guide : https://steamcommunity.com/sharedfiles/filedetails/?id=542966946
 # Console Commands : http://www.regurge.at/ql/
 # Console Commands : http://www.regurge.at/ql/
 fn_parms(){
 fn_parms(){
-	parms="+set net_strict 1 +set net_ip ${ip} +set net_port ${gameport} +set fs_homepath ${filesdir}/${gameport} +set zmq_rcon_enable 1 +set zmq_rcon_port ${rconport} +set zmq_rcon_password ${rcon_password} +set zmq_stats_enable 1 +set zmq_stats_password ${stats_password} +set zmq_stats_port ${gameport} +set sv_mapPoolFile ${mappool} +exec ${servercfg} "
+	parms="+set net_strict 1 +set net_ip ${ip} +set net_port ${gameport} +set fs_homepath ${filesdir}/${gameport} +set zmq_rcon_enable 1 +set zmq_rcon_port ${rconport} +set zmq_rcon_password ${rcon_password} +set zmq_stats_enable 1 +set zmq_stats_password ${stats_password} +set zmq_stats_port ${statsport} +set sv_mapPoolFile ${mappool} +exec ${servercfg} "
 }
 }
 
 
 #### Advanced Variables ####
 #### Advanced Variables ####

+ 3 - 3
functions/command_details.sh

@@ -314,7 +314,7 @@ echo -e "Change ports by editing the parameters in"
 echo -e "${servercfgfullpath}."
 echo -e "${servercfgfullpath}."
 echo -e ""
 echo -e ""
 echo -e "Useful port diagnostic command:"
 echo -e "Useful port diagnostic command:"
-echo -e "netstat -atunp | grep run_server"
+echo -e "netstat -atunp | grep qzeroded"
 echo -e ""
 echo -e ""
 if [ -z "${port}" ]||[ -z "${queryport}" ]||[ -z "${masterport}" ]; then
 if [ -z "${port}" ]||[ -z "${queryport}" ]||[ -z "${masterport}" ]; then
 	echo -e "\e[0;31mERROR!\e[0m Missing/commented ports in ${servercfg}."
 	echo -e "\e[0;31mERROR!\e[0m Missing/commented ports in ${servercfg}."
@@ -323,8 +323,8 @@ fi
 {
 {
 	echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
 	echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
 	echo -e "> Game\tINBOUND\t${port}\tudp"
 	echo -e "> Game\tINBOUND\t${port}\tudp"
-	echo -e "> Rcon: Query\tINBOUND\t${rconport}\tudp"
-	echo -e "> Stats: Master traffic\tINBOUND\t${statsport}\tudp"
+	echo -e "> Rcon\tINBOUND\t${rconport}\tudp"
+	echo -e "> Stats\tINBOUND\t${statsport}\tudp"
 } | column -s $'\t' -t 
 } | column -s $'\t' -t 
 
 
 fn_details_statusbottom
 fn_details_statusbottom

+ 5 - 0
functions/info_config.sh

@@ -199,6 +199,11 @@ elif [ "${engine}" == "idtech3" ]; then
 		rconport="0"
 		rconport="0"
 	fi
 	fi
 
 
+	# Stats port
+	if [ ! -n "${statsport}" ]; then
+		statsport="0"
+	fi	
+
 # ARMA 3
 # ARMA 3
 elif [ "${engine}" == "realvirtuality" ]; then
 elif [ "${engine}" == "realvirtuality" ]; then