Raised This Month: $12 Target: $400
 3% 

Runnning multiple gameserver


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pupsick
Junior Member
Join Date: Apr 2017
Old 02-13-2018 , 14:58   Runnning multiple gameserver
Reply With Quote #1

Hello everyone. Just wanna ask about best practices in this issue.
So, considering the topic - i'm running multiple servers on the same machine and i have few issues like:
1. How can i update all of the gameservers automatically? The way of using
Code:
-steam_dir /home/steam/ -steamcmd_script update.txt
sometime causes few servers to run this update script at the same time, so servers are updating together and overloading system(and network either)
2. Starting the map(on the server load/map change) takes too long(around 30-60 seconds). Any ways to speedup loading at this point?

And may be there is any topic with advices for this context(running multiple gameservers)?
Pupsick is offline
ohyeah1234
Junior Member
Join Date: Feb 2018
Old 02-13-2018 , 15:39   Re: Runnning multiple gameserver
Reply With Quote #2

u can try out this script this one has auto updates https://github.com/crazy-max/csgo-server-launcher

Last edited by ohyeah1234; 02-13-2018 at 15:40.
ohyeah1234 is offline
Pupsick
Junior Member
Join Date: Apr 2017
Old 02-13-2018 , 16:44   Re: Runnning multiple gameserver
Reply With Quote #3

Quote:
Originally Posted by ohyeah1234 View Post
u can try out this script this one has auto updates https://github.com/crazy-max/csgo-server-launcher
Possibly will resolve the problem, but how often should i update my server(cron interval)?
Pupsick is offline
asdfxD
Veteran Member
Join Date: Apr 2011
Old 02-13-2018 , 23:10   Re: Runnning multiple gameserver
Reply With Quote #4

create .txt files in your steam dir for every server you are runing.

update27015.txt, update27115.txt, update27215.txt

add inside the .txt

@ShutdownOnFailedCommand 1
@NoPromptForPassword 1
login anonymous
force_install_dir /home/gameserver/csgo27015
app_update 740
quit

add this to your commandline:

-autoupdate -steam_dir /home/steamcmd -steamcmd_script /home/steamcmd/update27015.txt

the server will auto update if there is an cs go update, the paths are an example.

or use a script like ./srcds-update.sh and set a cronjob every day.

srcds-update.sh:

#!/bin/bash
cd /home/steamcmd
./steamcmd.sh +runscript srcds-update.txt

srcds-update.txt:

@ShutdownOnFailedCommand 1
@NoPromptForPassword 1
login anonymous
force_install_dir /home/gameserver/csgo27015
app_update 740
force_install_dir /home/gameserver/csgo27115
app_update 740
quit

cronjob

5 00 * * * /home/srcds-update.sh

dont think there is a other way to do this. csgo server launcher/opengamepanel do the same and use -autoupdate function.

Last edited by asdfxD; 02-13-2018 at 23:52.
asdfxD is offline
Phaiz
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 02-14-2018 , 11:22   Re: Runnning multiple gameserver
Reply With Quote #5

You don't need to run an update script on cron. Use this plugin to automatically get updates when they are pushed https://forums.alliedmods.net/showthread.php?t=253404

Once you set that up you need a text file with the following

Code:
login anonymous
force_install_dir /path/to/server_directory
app_update 232250 <- game app ID here
quit
Your server command line needs this in it

Code:
-steamcmd_script /path/to/update_text_file
You should also have -autoupdate in the command line so the server updates on a restart
__________________
Phaiz is offline
Pupsick
Junior Member
Join Date: Apr 2017
Old 02-14-2018 , 16:31   Re: Runnning multiple gameserver
Reply With Quote #6

Quote:
Originally Posted by asdfxD View Post
create .txt files in your steam dir for every server you are runing.

update27015.txt, update27115.txt, update27215.txt

add inside the .txt

@ShutdownOnFailedCommand 1
@NoPromptForPassword 1
login anonymous
force_install_dir /home/gameserver/csgo27015
app_update 740
quit

add this to your commandline:

-autoupdate -steam_dir /home/steamcmd -steamcmd_script /home/steamcmd/update27015.txt

the server will auto update if there is an cs go update, the paths are an example.

or use a script like ./srcds-update.sh and set a cronjob every day.

srcds-update.sh:

#!/bin/bash
cd /home/steamcmd
./steamcmd.sh +runscript srcds-update.txt

srcds-update.txt:

@ShutdownOnFailedCommand 1
@NoPromptForPassword 1
login anonymous
force_install_dir /home/gameserver/csgo27015
app_update 740
force_install_dir /home/gameserver/csgo27115
app_update 740
quit

cronjob

5 00 * * * /home/srcds-update.sh

dont think there is a other way to do this. csgo server launcher/opengamepanel do the same and use -autoupdate function.
regarding this post, what is the best practice to run multiple servers? for example, i wanna get 10 servers, shall i make 10 game folders, or just make 1 and run multiple servers on it?

btw, probably this is fine solution for the 1st question. Any ideas about
Quote:
2. Starting the map(on the server load/map change) takes too long(around 30-60 seconds). Any ways to speedup loading at this point?
?
Pupsick is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode