|
|
@@ -23,23 +23,31 @@ email="email@example.com"
|
|
|
steamuser="anonymous"
|
|
|
steampass=""
|
|
|
|
|
|
-# Start Variables
|
|
|
+# Server settings
|
|
|
servername="Hurtworld LGSM Server"
|
|
|
ip="0.0.0.0"
|
|
|
port="12871"
|
|
|
queryport="12881"
|
|
|
maxplayers="20"
|
|
|
-map=""
|
|
|
-creativemode="0" #Free Build (0 is off)
|
|
|
-updateonstart="off"
|
|
|
+map="" #Optional
|
|
|
+creativemode="0" #Free Build
|
|
|
|
|
|
-# Maintenance Variables
|
|
|
-loadsave=""
|
|
|
+# Adding first admins
|
|
|
+# Syntax : addadmin STEAMID64; addadmin STEAMID64-bis
|
|
|
+# Example : addadmin="addadmin 012345678901234567; addadmin 987654321098765432"
|
|
|
+addadmin=""
|
|
|
+
|
|
|
+# Maintenance settings
|
|
|
logfile="gamelog.txt"
|
|
|
+loadsave=""
|
|
|
+
|
|
|
+# EXPERIMENTAL ! Use at your own risk
|
|
|
+# Setting this to 1 runs the server with the x64 bits exectutable
|
|
|
+x64mode="0"
|
|
|
|
|
|
# http://hurtworld.wikia.com/wiki/Hosting_A_Server
|
|
|
fn_parms(){
|
|
|
-parms="-batchmode -nographics -exec \"host ${port} ${map} ${save};queryport ${queryport};maxplayers ${maxplayers};servername ${servername};creativemode ${creativemode}\" -logfile \"${logfile}\" "
|
|
|
+parms="-batchmode -nographics -exec \"host ${port} ${map} ${save};queryport ${queryport};maxplayers ${maxplayers};servername ${servername};creativemode ${creativemode};${addadmin}\" -logfile \"${logfile}\" "
|
|
|
}
|
|
|
|
|
|
#### Advanced Variables ####
|
|
|
@@ -66,7 +74,11 @@ lockselfname=".${servicename}.lock"
|
|
|
filesdir="${rootdir}/serverfiles"
|
|
|
systemdir="${filesdir}"
|
|
|
executabledir="${filesdir}"
|
|
|
-executable="./Hurtworld.x86"
|
|
|
+if [ "${x64mode}" == "1" ]; then
|
|
|
+ executable="./Hurtworld.x86_64"
|
|
|
+else
|
|
|
+ executable="./Hurtworld.x86"
|
|
|
+fi
|
|
|
backupdir="${rootdir}/backups"
|
|
|
|
|
|
# Logging
|