Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
I made 5 copies of my LGSM arkserver script and renamed them arkserver1 through arkserver5 all in the home directory of my "arkserver" user.
I probably have an older version of the LGSM arkserver script than is currently available, and I've also added my own fixes for my needs as I've gone, so please be cautious of differences between my config and your own. I'll try to point out the important parts.
First important thing to remember is that any configuration differences between your server instances need to be configured in the command line "parms=" section of the scripts, like maps, ports, query ports, difficulty, mods, etc. If you add any settings to the GameUserSettings.ini they will either be shared between all instances, or overwritten by the parameters specified in the command line from the scripts.
Examples taken from one of my arkserver scripts:
# Start Variables
servername="Your Server Name"
difficulty="5.0"
port="7777"
queryport="27015"
rconport="32330"
rconpassword="" # Set to enable rcon
maxplayers="50"
ip="0.0.0.0"
updateonstart="off"
anyonecancuddle="false"
mods="760884349,707081776,731604991"
fn_parms(){
parms="\"TheIsland?listen?MultiHome=${ip}?SessionName=${servername}?MaxPlayers=${maxplayers}?QueryPort=${queryport}?RCONPort=${rconport}?Port=${port}?AllowAnyoneBabyImprintCuddle=${anyonecancuddle}?OverrideOfficialDifficulty=${difficulty}?GameModIds=${mods}?ServerAdminPassword=${rconpassword}\""
}
Each server instance will need its own unique server name, port, query port, and servicename in the [# Server Details] section.
The save directory for each instance needs to be unique. my example above didn't include my fix for this.
add under [# Start Variables]
savedirectory="Center" #whatever unique directory name you want per instance
add into your parms=
?AltSaveDirectoryName=${savedirectory}
Example:
# Start Variables
servername="Your Server Name"
savedirectory="Center"
difficulty="5.0"
port="7778"
queryport="27016"
rconport="32331"
rconpassword="" # Set to enable rcon
maxplayers="50"
ip="0.0.0.0"
updateonstart="off"
anyonecancuddle="false"
mods="760884349,867923239,821530042,731604991"
fn_parms(){
parms="\"TheCenter?listen?MultiHome=${ip}?SessionName=${servername}?MaxPlayers=${maxplayers}?AltSaveDirectoryName=${savedirectory}?QueryPort=${queryport}?RCONPort=${rconport}?Port=${port}?AllowAnyoneBabyImprintCuddle=${anyonecancuddle}?OverrideOfficialDifficulty=${difficulty}?GameModIds=${mods}?ServerAdminPassword=${rconpassword}\""
}
server 2,
ip="0.0.0.0"
port="7779"
queryport="27017"
rconport="27020"
maxplayers="30"
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
fn_parms(){
parms="\"Aberration_P?listen?AltSaveDirectoryName=Save1?clusterid=DubhCluster?ClusterDirOverride=/home/arkserver/serverfiles/ShooterGame/Saved/clusters?MaxPlayers=${maxplayers}?QueryPort=${queryport}?RCONPort=${rconport}?Port=${port}?\""
server1,
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
servername="CGARKPVE"
port="7777"
queryport="27015"
rconport="32330"
rconpassword="********"
maxplayers="30"
ip="0.0.0.0"
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
# Edit with care
fn_parms(){
parms="\"TheIsland?listen?AltSaveDirectoryName=Save2?clusterid=DubhCluster?ClusterDirOverride=/home/arkserver/serverfiles/ShooterGame/Saved/clusters?SessionName=${servername}?MaxPlayers=${maxplayers}?QueryPort=${queryport}?RCONPort=${rconport}?Port=${port}?ServerAdminPassword=${rconpassword}\""
1.- install (./linuxgsm arkserver) all the servers you will need (5 maps in my case)
2.- Every single time you install an arkserver using the linuxgsm command, it will create a .cfg file under /server/lgsm/config-lgsm/arkserver: arkserver.cgf, arkserver-2.cfg and so on
3.- Edit every single .cfg file with your desired settings
4.- In order to get the cluster working, you need to add the following lines in your GUS.INI (assuming you are using a shared installation):
[ServerSettings]
PreventDownloadSurvivors=False
PreventDownloadItems=False
PreventDownloadDinos=False
PreventUploadSurvivors=False
PreventUploadItems=False
PreventUploadDinos=False
NoTributeDownload=False
Notes:
I don't use the "ClusterDirOverride" setting
You should't post your "clusterid" value, it's like leaving your door key on the door
The only problem I'm having: when I stop a server using the "./arkserver-2 stop" command for example, it should stops the "arkserver-2" server, but stops the "arkserver-4" too. Same thing stopping arkserver-1... it stops arkserver.3 too... I need to kill the process in order to not stop other server instead.
yeah i am running into the same issue i think it has something to do with the fact that they are on a shared dir. the system does not distinguish the different between shootergame for each instance. i bet if you ran different installer for each you would be able to get it to work right. thanks for the heads up on the clusterid that was a default i made for testing. i got it to work but the start script is a mess and needs to be cleaned up.
1.- install (./linuxgsm arkserver) all the servers you will need (5 maps in my case)
2.- Every single time you install an arkserver using the linuxgsm command, it will create a .cfg file under /server/lgsm/config-lgsm/arkserver: arkserver.cgf, arkserver-2.cfg and so on
When I run "./linuxgsm arkserver" I get: bash: ./linuxgsm: No such file or directory
The install command I know is "./arkserver install" and it does not create any arkserver-2.cfg file or any others...
I am guessing that your GSU.ini file is actually the GameUserSettings.ini file...
If I create my own arkserver-2 through -4 files, the launch script fails to launch the other servers.
Ah, just found this link that fills in the missing parts on the arkserver configs... brb
https://github.com/GameServerManagers/LinuxGSM/wiki/Multiple-Game-Servers
That was it! Cake Walk! Thank you!!!
I also created a user and group for the clustermanagement, put all the arkserver users into that group. All the server have a symlink from serverfiles/ShooterGame/Saved/clusters to the homedir of the cluster-user. The <clusterid> directories are owned by the clustergroup and have the +s flag for the sticky group, additionally I got a cronjob running every minute giving group write permissions to files inside the <clusterid> directories.
And of course I just had to add the correct clusterid to the startup parameters of the right servers.
This way I can have a nice flexible installation and if one server mucks up, it'll not tear down the other servers as well.
All for the price of some extra megabytes.
Gerene would like to create a cluster server as described in the instructions.
it's not that hard actually, all you need to do is the following:
1.- install (./linuxgsm arkserver) all the servers you want (5 maps in my case)
2.- Every single time you install to arkserver using the linuxgsm command, it will create a .cfg file under / server / lgsm / config-lgsm / arkserver: arkserver.cgf, arkserver-2.cfg and so on
3.- Edit every single .cfg file with your desired settings
4.- In order to get the cluster working, you need to add the following lines in your GUS.INI (assuming you are using a shared installation):
[Server Settings]
PreventDownloadSurvivors = False
Prevent Download Items = False
Prevent Download Dinos = False
PreventUploadSurvivors = False
Prevent Upload Items = False
Prevent upload Dinos = False
NoTributeDownload = False
There were two files created by arkserver-2 and GUS-2. However, if I start a server with. / server, the first one will start when I then start the second. / Mark Server 2 starts the second and the first is then no longer available OFFLINE.
Did I miss something or did it wrong? Would be very pleased about help.
linuxgsm.sh allows you to generate as many instances as you want by running ./linuxgsm.sh install. It will generate a new LinuxGSM script using an incremental number.
For example if you already use ./csgoserver running ./linuxgsm.sh csgoserver will generate ./csgoserver-2
On the first run of ./gameserver-2 a new default LinuxGSM and game config will be created (gameserver-2.cfg). These new configs will need to be altered with new ports and any other settings that are required.