|
|
@ -16,7 +16,7 @@ queryport="12881" |
|
|
|
maxplayers="20" |
|
|
|
defaultmap="" #Optional |
|
|
|
creativemode="0" #Free Build: creativemode="1" |
|
|
|
logfile="gamelog.txt" |
|
|
|
gamelog="gamelog.txt" |
|
|
|
|
|
|
|
## Adding admins using STEAMID64 |
|
|
|
# Example : addadmin 012345678901234567; addadmin 987654321098765432 |
|
|
@ -31,7 +31,7 @@ x64mode="0" |
|
|
|
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters |
|
|
|
# Edit with care | http://hurtworld.wikia.com/wiki/Hosting_A_Server |
|
|
|
fn_parms(){ |
|
|
|
parms="-batchmode -nographics -exec \"host ${port} ${defaultmap} ${loadsave};queryport ${queryport};maxplayers ${maxplayers};servername ${servername};creativemode ${creativemode};${admins}\" -logfile \"${logfile}\" " |
|
|
|
parms="-batchmode -nographics -exec \"host ${port} ${defaultmap} ${loadsave};queryport ${queryport};maxplayers ${maxplayers};servername ${servername};creativemode ${creativemode};${admins}\" -logfile \"${gamelog}\" " |
|
|
|
} |
|
|
|
|
|
|
|
#### LinuxGSM Settings #### |
|
|
@ -101,14 +101,17 @@ fi |
|
|
|
backupdir="${rootdir}/backups" |
|
|
|
|
|
|
|
## Logging Directories |
|
|
|
logdir="${rootdir}/log" |
|
|
|
gamelogdir="${rootdir}/log/server" |
|
|
|
scriptlogdir="${rootdir}/log/script" |
|
|
|
consolelogdir="${rootdir}/log/console" |
|
|
|
lgsmlogdir="${logdir}/script" |
|
|
|
consolelogdir="${logdir}/console" |
|
|
|
gamelog="${gamelogdir}/${servicename}-game.log" |
|
|
|
lgsmlog="${lgsmlogdir}/${servicename}-script.log" |
|
|
|
consolelog="${consolelogdir}/${servicename}-console.log" |
|
|
|
emaillog="${lgsmlogdir}/${servicename}-email.log" |
|
|
|
|
|
|
|
## Logs Naming |
|
|
|
gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log" |
|
|
|
lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
|
|
|
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
|
|
|
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
|
|
|
|
|
|
|