7 changed files with 53 additions and 37 deletions
@ -23,23 +23,29 @@ email="[email protected]" |
|||
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 |
|||
logfile="gamelog.txt" |
|||
|
|||
# Adding admins using STEAMID64 |
|||
# Example : addadmin 012345678901234567; addadmin 987654321098765432 |
|||
admins="" |
|||
|
|||
# Maintenance Variables |
|||
# Advanced |
|||
# Rollback server state (remove after start command) |
|||
loadsave="" |
|||
logfile="gamelog.txt" |
|||
# Use unstable 64 bit server executable (O/1) |
|||
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} ${loadsave};queryport ${queryport};maxplayers ${maxplayers};servername ${servername};creativemode ${creativemode};${admins}\" -logfile \"${logfile}\" " |
|||
} |
|||
|
|||
#### Advanced Variables #### |
|||
@ -57,7 +63,7 @@ appid="405100" |
|||
# Server Details |
|||
servicename="hurtworld-server" |
|||
gamename="Hurtworld" |
|||
engine="hwunity3d" |
|||
engine="unity3d" |
|||
|
|||
# Directories |
|||
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))" |
|||
@ -66,7 +72,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 |
|||
|
Loading…
Reference in new issue