diff --git a/QuakeLive/qlserver b/QuakeLive/qlserver index f1029e370..c7252347f 100755 --- a/QuakeLive/qlserver +++ b/QuakeLive/qlserver @@ -27,6 +27,7 @@ steampass="" gameport="27960" rconport="28960" rconpassword="ch@ng3me" +statsport="${gameport}" statspassword="ch@ng3me" mappool='mappool.txt' ip="0.0.0.0" @@ -35,7 +36,7 @@ updateonstart="off" # Install/Config Guide : https://steamcommunity.com/sharedfiles/filedetails/?id=542966946 # Console Commands : http://www.regurge.at/ql/ 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 #### diff --git a/functions/command_details.sh b/functions/command_details.sh index 1b9b270ad..eb4afebd6 100644 --- a/functions/command_details.sh +++ b/functions/command_details.sh @@ -314,7 +314,7 @@ echo -e "Change ports by editing the parameters in" echo -e "${servercfgfullpath}." echo -e "" echo -e "Useful port diagnostic command:" -echo -e "netstat -atunp | grep run_server" +echo -e "netstat -atunp | grep qzeroded" echo -e "" if [ -z "${port}" ]||[ -z "${queryport}" ]||[ -z "${masterport}" ]; then 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 "> 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 fn_details_statusbottom diff --git a/functions/info_config.sh b/functions/info_config.sh index 4556a2dac..64467503a 100644 --- a/functions/info_config.sh +++ b/functions/info_config.sh @@ -199,6 +199,11 @@ elif [ "${engine}" == "idtech3" ]; then rconport="0" fi + # Stats port + if [ ! -n "${statsport}" ]; then + statsport="0" + fi + # ARMA 3 elif [ "${engine}" == "realvirtuality" ]; then