Browse Source

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

Co-authored-by: Daniel Gibbs <[email protected]>
pull/2709/head
Frisasky 5 years ago
committed by GitHub
parent
commit
9f91d4ee01
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      lgsm/data/serverlist.csv
  2. 12
      lgsm/functions/info_config.sh
  3. 11
      lgsm/functions/info_messages.sh
  4. 6
      lgsm/functions/info_parms.sh
  5. 2
      lgsm/functions/install_server_files.sh

1
lgsm/data/serverlist.csv

@ -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

1 ahl ahlserver Action half-life

12
lgsm/functions/info_config.sh

@ -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

11
lgsm/functions/info_messages.sh

@ -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

6
lgsm/functions/info_parms.sh

@ -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

2
lgsm/functions/install_server_files.sh

@ -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

Loading…
Cancel
Save