|
|
@ -13,21 +13,14 @@ ip="0.0.0.0" |
|
|
|
port="27102" |
|
|
|
queryport="27131" |
|
|
|
servername="LinuxGSM Server" |
|
|
|
serverpassword="" |
|
|
|
defaultmap="Canyon" |
|
|
|
defaultscenario="Scenario_Crossing_Push_Security" |
|
|
|
maxplayers="28" |
|
|
|
|
|
|
|
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
|
|
|
## Parameter Docs: https://sandstorm-support.newworldinteractive.com/hc/en-us/articles/360049211072-Server-Admin-Guide |
|
|
|
fn_parms(){ |
|
|
|
# Allows serverpassword to work with parameters |
|
|
|
if [ "${serverpassword}" != "" ]; then |
|
|
|
parms="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers}?password='${serverpassword}' -Port=${port} -QueryPort=${queryport} -hostname="${servername}" -log" |
|
|
|
else |
|
|
|
parms="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers} -Port=${port} -QueryPort=${queryport} -hostname='${servername}' -log" |
|
|
|
fi |
|
|
|
} |
|
|
|
## Parameter Docs | https://sandstorm-support.newworldinteractive.com/hc/en-us/articles/360049211072-Server-Admin-Guide |
|
|
|
# To allows serverpassword to work with parameters edit as follows |
|
|
|
startparameters="${defaultmap}?Scenario=${defaultscenario}?MaxPlayers=${maxplayers} -Port=${port} -QueryPort=${queryport} -hostname='${servername}' -log" |
|
|
|
|
|
|
|
#### LinuxGSM Settings #### |
|
|
|
|
|
|
|