From b19ebdc2947eede6614f031f27ae19a59f1e2098 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 9 Aug 2015 20:00:06 +0100 Subject: [PATCH] details for arkserver (not quite finished yet) --- functions/fn_details | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/functions/fn_details b/functions/fn_details index 8351f0c43..4313a0a8b 100644 --- a/functions/fn_details +++ b/functions/fn_details @@ -634,6 +634,37 @@ printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = echo -e "\e[34mWebAdmin url:\t\e[0mhttp://${ip}:${webadminport}" echo -e "\e[34mWebAdmin username:\t\e[0m${webadminuser}" echo -e "\e[34mWebAdmin password:\t\e[0m${webadminpass}" +} >> .fn_details_webadmin +column -s $'\t' -t .fn_details_webadmin +rm -f .fn_details_webadmin +fn_details_statusbottom +} + +fn_details_unreal4(){ +fn_check_ip +pid=$(tmux list-sessions 2>&1 | awk '{print $1}' | grep -Ec "^${servicename}:") +fn_parms +fn_details_config +fn_details_distro +fn_details_os +fn_details_performance +fn_details_disk +fn_details_gameserver +fn_details_backup +fn_details_commandlineparms +echo -e "" +echo -e "\e[92mPorts\e[0m" +printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = +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 ShooterGame" +echo -e "" +{ + echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL\tINI VARIABLE" + echo -e "> Game\tINBOUND\t${port}\tudp\tPort=${port}" + echo -e "> Query\tINBOUND\t${queryport}\tudp" } >> .fn_details_ports column -s $'\t' -t .fn_details_ports rm -f .fn_details_ports @@ -676,6 +707,8 @@ elif [ "${engine}" == "unity3d" ]; then fn_details_unity3d elif [ "${engine}" == "unreal" ] || [ "${engine}" == "unreal2" ]; then fn_details_unreal +elif [ "${engine}" == "unreal4" ]; then + fn_details_unreal4 elif [ "${gamename}" == "Teamspeak 3" ]; then fn_details_teamspeak3 else