Skip to content
Permalink
Browse files

feat(newserver): Unreal Tournament 4 (#2644)

Co-authored-by: Daniel Gibbs <me@danielgibbs.co.uk>
  • Loading branch information
Frisasky and dgibbs64 committed Mar 6, 2020
1 parent fad35d0 commit 9f91d4ee0100c7ce78352565fa8eec953914c71f
@@ -92,6 +92,7 @@ ts3,ts3server,Teamspeak 3
tu,tuserver,Tower Unite
tw,twserver,Teeworlds
unt,untserver,Unturned
ut,utserver,Unreal Tournament
ut2k4,ut2k4server,Unreal Tournament 2004
ut3,ut3server,Unreal Tournament 3
ut99,ut99server,Unreal Tournament 99
@@ -1022,6 +1022,16 @@ fn_info_config_unreal3(){
fi
}

fn_info_config_ut(){
if [ ! -f "${servercfgfullpath}" ]; then
servername="${unavailable}"
else
servername=$(grep "ServerName" "${servercfgfullpath}" | awk -F '=' '{print $2}')

# Not set
servername=${servername:-"NOT SET"}
fi
}

fn_info_config_warfork(){
if [ ! -f "${servercfgfullpath}" ]; then
@@ -1459,6 +1469,8 @@ elif [ "${engine}" == "unreal2" ]; then
# Unreal 3 engine
elif [ "${engine}" == "unreal3" ]; then
fn_info_config_unreal3
elif [ "${shortname}" == "ut" ]; then
fn_info_config_ut
# 7 Day To Die (unity3d)
elif [ "${shortname}" == "sdtd" ]; then
fn_info_config_sdtd
@@ -1239,7 +1239,14 @@ fn_info_message_unturned(){
} | column -s $'\t' -t
}


fn_info_message_ut(){
echo -e "netstat -atunp | grep UE4Server"
echo -e ""
{
echo -e "${lightblue}DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL${default}"
echo -e "> Game\tINBOUND\t${port}\tudp"
} | column -s $'\t' -t
}

fn_info_message_kf2(){
fn_info_message_password_strip
@@ -1422,6 +1429,8 @@ fn_info_message_select_engine(){
fn_info_message_teeworlds
elif [ "${shortname}" == "unt" ]; then
fn_info_message_unturned
elif [ "${shortname}" == "ut" ]; then
fn_info_message_ut
elif [ "${shortname}" == "mc" ]; then
fn_info_message_minecraft
elif [ "${shortname}" == "mh" ]; then
@@ -232,6 +232,10 @@ fn_info_parms_unturned(){
queryport=$((port + 1))
}

fn_info_parms_ut(){
port=${port:-"0"}
}

fn_info_parms_wf(){
port=${port:-"0"}
queryport="${port:-"0"}"
@@ -311,6 +315,8 @@ elif [ "${engine}" == "unreal3" ]; then
fn_info_parms_unreal3
elif [ "${shortname}" == "unt" ]; then
fn_info_parms_unturned
elif [ "${shortname}" == "ut" ]; then
fn_info_parms_ut
# Warfork
elif [ "${shortname}" == "wf" ]; then
fn_info_parms_wf
@@ -52,7 +52,7 @@ fn_install_server_files(){
elif [ "${shortname}" == "ut99" ]; then
remote_fileurl="http://linuxgsm.download/UnrealTournament99/ut99-server-451-ultimate-linux.tar.bz2"; local_filedir="${tmpdir}"; local_filename="ut99-server-451-ultimate-linux.tar.bz2"; chmodx="nochmodx" run="norun"; force="noforce"; md5="49cb24d0550ff6ddeaba6007045c6edd"
elif [ "${shortname}" == "ut" ]; then
remote_fileurl="https://s3.amazonaws.com/unrealtournament/UnrealTournament-Client-XAN-3395761-Linux.zip"; local_filedir="${tmpdir}"; local_filename="UnrealTournament-Server-XAN-3395761-Linux.zip"; chmodx="noexecute" run="norun"; force="noforce"; md5="f04ad5b96865b19613303331ff4075eb"
remote_fileurl="http://linuxgsm.download/UnrealTournament/UnrealTournament-Server-XAN-3525360-Linux.zip"; local_filedir="${tmpdir}"; local_filename="UnrealTournament-Server-XAN-3525360-Linux.zip"; chmodx="noexecute" run="norun"; force="noforce"; md5="cad730ad6793ba6261f9a341ad7396eb"
elif [ "${shortname}" == "ut3" ]; then
remote_fileurl="http://linuxgsm.download/UnrealTournament3/UT3-linux-server-2.1.tar.bz2"; local_filedir="${tmpdir}"; local_filename="UT3-linux-server-2.1.tar.bz2"; chmodx="nochmodx" run="norun"; force="noforce"; md5="2527437b46f1b47f20228d27d72395a6"
elif [ "${shortname}" == "vs" ]; then

0 comments on commit 9f91d4e

Please sign in to comment.
You can’t perform that action at this time.