mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-24 15:38:26 +00:00
Add option to not decrement Port
This commit is contained in:
parent
8e5b78d665
commit
f69ba15495
@ -729,6 +729,10 @@ ARK server options:
|
|||||||
the `-StructureDestructionTag=DestroySwampSnowStructures`
|
the `-StructureDestructionTag=DestroySwampSnowStructures`
|
||||||
option.
|
option.
|
||||||
|
|
||||||
|
`arkNoPortDecrement="<bool>"`::
|
||||||
|
True if the `Port` option should be passed untouched.
|
||||||
|
False for the old behaviour of decrementing the `Port`.
|
||||||
|
|
||||||
Instance config files
|
Instance config files
|
||||||
~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|||||||
@ -1100,7 +1100,7 @@ doRun() {
|
|||||||
# Port is actually one higher than specified
|
# Port is actually one higher than specified
|
||||||
# i.e. specifying port 7777 will have the server
|
# i.e. specifying port 7777 will have the server
|
||||||
# use port 7778
|
# use port 7778
|
||||||
if [ "$name" == "Port" ]; then
|
if [[ "$name" == "Port" && ( -z "$arkNoPortDecrement" || "$arkNoPortDecrement" == "false" ) ]]; then
|
||||||
(( val = val - 1 ))
|
(( val = val - 1 ))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@ -17,6 +17,7 @@ arkserverexec="ShooterGame/Binaries/Linux/ShooterGameServer" # name of AR
|
|||||||
arkbackupdir="/home/steam/ARK-Backups" # path to backup directory
|
arkbackupdir="/home/steam/ARK-Backups" # path to backup directory
|
||||||
arkwarnminutes="60" # number of minutes to warn players when using update --warn
|
arkwarnminutes="60" # number of minutes to warn players when using update --warn
|
||||||
arkprecisewarn="false" # set this to true to obey warnminutes even if no players are connected (recommended for clusters)
|
arkprecisewarn="false" # set this to true to obey warnminutes even if no players are connected (recommended for clusters)
|
||||||
|
arkNoPortDecrement="true" # unset this to use the old Port - 1 behaviour
|
||||||
arkautorestartfile="ShooterGame/Saved/.autorestart" # path to autorestart file
|
arkautorestartfile="ShooterGame/Saved/.autorestart" # path to autorestart file
|
||||||
arkAutoUpdateOnStart="false" # set this to true if you want to always update before startup
|
arkAutoUpdateOnStart="false" # set this to true if you want to always update before startup
|
||||||
arkBackupPreUpdate="false" # set this to true if you want to perform a backup before updating
|
arkBackupPreUpdate="false" # set this to true if you want to perform a backup before updating
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user