Преглед изворни кода

Adding unreal4 option for Ark in command_details; Integrating yadutaf\'s startup parms

cedarlug пре 10 година
родитељ
комит
100e065b4d
2 измењених фајлова са 10 додато и 4 уклоњено
  1. 8 2
      ARKSurvivalEvolved/arkserver
  2. 2 2
      lgsm/functions/command_details.sh

+ 8 - 2
ARKSurvivalEvolved/arkserver

@@ -20,7 +20,7 @@ version="210516"
 emailalert="off"
 email="email@example.com"
 
-# Pushbullet 
+# Pushbullet
 # https://www.pushbullet.com/#settings
 pushbulletalert="off"
 pushbullettoken="accesstoken"
@@ -30,11 +30,17 @@ steamuser="anonymous"
 steampass=""
 
 # Start Variables
+servername="ark-server"
+port="7778"
+queryport="27015"
+rconport="32330"
+rconpassword="" # Set to enable rcon
+maxplayers="50"
 ip="0.0.0.0"
 updateonstart="off"
 
 fn_parms(){
-parms="TheIsland?listen"
+    parms="TheIsland?listen?MultiHome=${ip}?SessionName=${servername}?MaxPlayers=${maxplayers}?QueryPort=${queryport}?RCONPort=${rconport}?Port=${port}?ServerAdminPassword=${rconpassword}"
 }
 
 #### Advanced Variables ####

+ 2 - 2
lgsm/functions/command_details.sh

@@ -288,7 +288,7 @@ fn_details_ports(){
 		fi
 	done
 
-	local ports_edit_array=( "starbound" "spark" "source" "goldsource" "Rust" "Hurtworld" )
+	local ports_edit_array=( "starbound" "spark" "source" "goldsource" "Rust" "Hurtworld" "unreal4")
 	for port_edit in "${ports_edit_array[@]}"
 	do
 		if [ "${engine}" == "${port_edit}" ]||[ "${gamename}" == "${port_edit}" ]; then
@@ -608,4 +608,4 @@ else
 	fn_print_error_nl "Unable to detect server engine."
 fi
 
-fn_details_statusbottom
+fn_details_statusbottom