Browse Source

Update functions to play nice with terraria

pull/478/head
Bryce Van Dyk 10 years ago
parent
commit
a04db10f52
  1. 36
      functions/fn_details
  2. 4
      functions/fn_install_logs

36
functions/fn_details

@ -2,7 +2,7 @@
# LGSM fn_details function # LGSM fn_details function
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
# Version: 280715 # Version: 070915
# Description: Displays server infomation. # Description: Displays server infomation.
@ -497,6 +497,38 @@ fn_details_statusbottom
} }
fn_details_terraria(){
fn_check_ip
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 command-line"
echo -e "parameters in ${selfname}."
echo -e ""
echo -e "Useful port diagnostic command:"
echo -e "netstat -atunp | grep terraia"
echo -e ""
{
echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
echo -e "> Game\tINBOUND\t${port}\ttcp"
echo -e "> Query\tINBOUND\t${queryport}\ttcp"
echo -e "> Rcon\tINBOUND\t${rconport}\ttcp"
} >> .fn_details_ports
column -s $'\t' -t .fn_details_ports
rm -f .fn_details_ports
fn_details_statusbottom
}
fn_details_teamspeak3(){ fn_details_teamspeak3(){
fn_details_config fn_details_config
fn_details_distro fn_details_distro
@ -703,6 +735,8 @@ elif [ "${engine}" == "spark" ]; then
fn_details_spark fn_details_spark
elif [ "${engine}" == "starbound" ]; then elif [ "${engine}" == "starbound" ]; then
fn_details_starbound fn_details_starbound
elif [ "${engine}" == "terraria" ]; then
fn_details_terraria
elif [ "${engine}" == "unity3d" ]; then elif [ "${engine}" == "unity3d" ]; then
fn_details_unity3d fn_details_unity3d
elif [ "${engine}" == "unreal" ] || [ "${engine}" == "unreal2" ]; then elif [ "${engine}" == "unreal" ] || [ "${engine}" == "unreal2" ]; then

4
functions/fn_install_logs

@ -2,7 +2,7 @@
# LGSM fn_install_logs function # LGSM fn_install_logs function
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://gameservermanagers.com # Website: http://gameservermanagers.com
# Version: 240415 # Version: 070915
if [ "${checklogs}" != "1" ]; then if [ "${checklogs}" != "1" ]; then
echo "" echo ""
@ -20,7 +20,7 @@ if [ -n "${consolelogdir}" ]; then
fi fi
# If a server is source or goldsource, Teamspeak 3, Starbound, Project Zomhoid create a symbolic link to the game server logs. # If a server is source or goldsource, Teamspeak 3, Starbound, Project Zomhoid create a symbolic link to the game server logs.
if [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]||[ "${gamename}" == "Teamspeak 3" ]||[ "${engine}" == "starbound" ]||[ "${engine}" == "projectzomboid" ]; then if [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]||[ "${gamename}" == "Teamspeak 3" ]||[ "${engine}" == "starbound" ]||[ "${engine}" == "projectzomboid" ][ "${engine}" == "terraia" ]; then
if [ ! -h "${rootdir}/log/server" ]; then if [ ! -h "${rootdir}/log/server" ]; then
ln -nfsv "${gamelogdir}" "${rootdir}/log/server" ln -nfsv "${gamelogdir}" "${rootdir}/log/server"
fi fi

Loading…
Cancel
Save