SRCDS Steam group


Multiple CS:GO servers on the same machine (steamcmd)
#1
Hi everyone

I am in need of running about 5 CS:GO servers on the same physical machine with only slightly different configurations (name and password differs from server to server).

How do I best go about doing this? I would hate to copy all the srcds files (game files, all config files etc.), but I cannot find a way to specify a server.cfg file when starting the server (e.g. a command line parameter like '+config' which the srcds or srcds.exe would accept).

Any tips anyone?

Best regards
Wuhtzu
Reply
#2
(02-26-2013, 04:18 AM)wuhtzu Wrote:  Hi everyone

I am in need of running about 5 CS:GO servers on the same physical machine with only slightly different configurations (name and password differs from server to server).

How do I best go about doing this? I would hate to copy all the srcds files (game files, all config files etc.), but I cannot find a way to specify a server.cfg file when starting the server (e.g. a command line parameter like '+config' which the srcds or srcds.exe would accept).

Any tips anyone?

Best regards
Wuhtzu



The best way to do this is have the files you downloaded as a base install,

Example

Downloaded csgo file name base-install

make folder on c drive name it my server, Make folders in that with say server 1 server2 etc etc, then copy the csgo files into server1 folder server2 etc etc

There you use a batch file to run them



@echo off
cls
echo Protecting srcds from crashes...
echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.
title srcds.com Watchdog
:srcds
echo (%time%) srcds started.
start /wait srcds.exe srcds -game csgo -console -usercon +game_type 0 +game_mode 1 -maxplayers_override 12 +exec classic_competitive.cfg -ip 119.252.xxx.xxx -port 27015 -tickrate 128 +host_workshop_collection 125499818 +workshop_start_map 125488374 -authkey D528F5593E40244CB12FAEB17BADxxxx
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds


That command line is for competitive mode and you need to get you own AUTH Key

This command line below can be used for casual mode

srcds.exe srcds -game csgo -console -usercon +game_type 0 +game_mode 0 -maxplayers_override 16 +exec classic_casual.cfg +mapgroup mg_csgo +map de_dust2 -ip 119.252.xxx.xxx -port 27015 -tickrate 128
[Image: kaosx.gif]
Reply
#3
Thank you for your input Ka0sX.

It's a linux machine, but it doesn't matter - the procedures are the same on windows and linux apart from paths, scripting language etc.

Anyhow, am I understanding you correctly if you say that I need ALL the files (all ~3 Gb of them) for each server I want to run if I want them to run with different configs?

There is no "+ config /path/to/configfile.cfg"-argument/option which can be passed to srcds or srcds.exe ?

(02-26-2013, 07:35 AM)Ka0sX Wrote:  
(02-26-2013, 04:18 AM)wuhtzu Wrote:  Hi everyone

I am in need of running about 5 CS:GO servers on the same physical machine with only slightly different configurations (name and password differs from server to server).

How do I best go about doing this? I would hate to copy all the srcds files (game files, all config files etc.), but I cannot find a way to specify a server.cfg file when starting the server (e.g. a command line parameter like '+config' which the srcds or srcds.exe would accept).

Any tips anyone?

Best regards
Wuhtzu



The best way to do this is have the files you downloaded as a base install,

Example

Downloaded csgo file name base-install

make folder on c drive name it my server, Make folders in that with say server 1 server2 etc etc, then copy the csgo files into server1 folder server2 etc etc

There you use a batch file to run them

Reply
#4
(02-26-2013, 07:43 AM)wuhtzu Wrote:  Thank you for your input Ka0sX.

It's a linux machine, but it doesn't matter - the procedures are the same on windows and linux apart from paths, scripting language etc.

Anyhow, am I understanding you correctly if you say that I need ALL the files (all ~3 Gb of them) for each server I want to run if I want them to run with different configs?

There is no "+ config /path/to/configfile.cfg"-argument/option which can be passed to srcds or srcds.exe ?

(02-26-2013, 07:35 AM)Ka0sX Wrote:  
(02-26-2013, 04:18 AM)wuhtzu Wrote:  Hi everyone

I am in need of running about 5 CS:GO servers on the same physical machine with only slightly different configurations (name and password differs from server to server).

How do I best go about doing this? I would hate to copy all the srcds files (game files, all config files etc.), but I cannot find a way to specify a server.cfg file when starting the server (e.g. a command line parameter like '+config' which the srcds or srcds.exe would accept).

Any tips anyone?

Best regards
Wuhtzu



The best way to do this is have the files you downloaded as a base install,

Example

Downloaded csgo file name base-install

make folder on c drive name it my server, Make folders in that with say server 1 server2 etc etc, then copy the csgo files into server1 folder server2 etc etc

There you use a batch file to run them



You can use the 1 srcds.exe to run 5 servers but trust me its a pain in the ass doing it that way you are better off having it the other way will be alot easier to magae the servers


With you running 5 servers dude i would suggest you look in to setting up something like tcadmin to run your servers dude it will be a hell of alot easier for you to manage them. i really suggest you look into

http://www.tcadmin.com
V2 is compatible with linux i can install it for you if you get a license for 16$ p/m it will save you alot of headaches

I use tcadmin myself and i tell you its a life saver
[Image: kaosx.gif]
Reply
#5
(02-26-2013, 08:51 AM)Ka0sX Wrote:  You can use the 1 srcds.exe to run 5 servers but trust me its a pain in the ass doing it that way you are better off having it the other way will be alot easier to magae the servers

Again, thank you for your input.

We seem to be avoiding the real question:

Is multiple servers with individual server configs possible from just one copy/installation of the srcds files?

As far as I can imagine you will need command line option to specify the config file if you want to use one installation/copy for multiple servers with individual configs. Else they will all just launch with the same /csgo/cfg/gamemode_x_server.cfg (assuming the servers run the same gamemode ofc).



Reply
#6
(02-26-2013, 09:10 AM)wuhtzu Wrote:  
(02-26-2013, 08:51 AM)Ka0sX Wrote:  You can use the 1 srcds.exe to run 5 servers but trust me its a pain in the ass doing it that way you are better off having it the other way will be alot easier to magae the servers

Again, thank you for your input.

We seem to be avoiding the real question:

Is multiple servers with individual server configs possible from just one copy/installation of the srcds files?

As far as I can imagine you will need command line option to specify the config file if you want to use one installation/copy for multiple servers with individual configs. Else they will all just launch with the same /csgo/cfg/gamemode_x_server.cfg (assuming the servers run the same gamemode ofc).



yes that is what i meant you can use the one srcds directory to launch several servers

you would need a few config in the cfg folder /csgo/cfg/gamemode_casual_1.cfg /csgo/cfg/gamemode_casual_2.cfg etc etc

As i said it will be alot easier to manage your servers with them being in different directorys

look at screen shot



Attached Files
.jpg   tcadmin.jpg (Size: 164.37 KB / Downloads: 13)
.png   servers.png (Size: 91.47 KB / Downloads: 12)
[Image: kaosx.gif]
Reply
#7
(02-26-2013, 09:23 AM)Ka0sX Wrote:  
(02-26-2013, 09:10 AM)wuhtzu Wrote:  
(02-26-2013, 08:51 AM)Ka0sX Wrote:  You can use the 1 srcds.exe to run 5 servers but trust me its a pain in the ass doing it that way you are better off having it the other way will be alot easier to magae the servers

Again, thank you for your input.

We seem to be avoiding the real question:

Is multiple servers with individual server configs possible from just one copy/installation of the srcds files?

As far as I can imagine you will need command line option to specify the config file if you want to use one installation/copy for multiple servers with individual configs. Else they will all just launch with the same /csgo/cfg/gamemode_x_server.cfg (assuming the servers run the same gamemode ofc).



yes that is what i meant you can use the one srcds directory to launch several servers

you would need a few config in the cfg folder /csgo/cfg/gamemode_casual_1.cfg /csgo/cfg/gamemode_casual_2.cfg etc etc

As i said it will be alot easier to manage your servers with them being in different directorys

look at screen shot

That sounds exactly like what I want, except that I want to do it all from one srcds installation. Like this:

/my-one-and-only-srcds-installation/csgo/cfg/gamemode_competitive_server1.cfg
/my-one-and-only-srcds-installation/csgo/cfg/gamemode_competitive_server2.cfg
/my-one-and-only-srcds-installation/csgo/cfg/gamemode_competitive_server3.cfg
/my-one-and-only-srcds-instalation/csgo/cfg/gamemode_competitive_server4.cfg

_one_ copy of the srcds files (in the example residing in my the dir /my-one-and-only-srcds-installation) and multiple configs within this installation. To do this I need to be able to start the servers like this:

./srcds -game csgo -console -usercon +game_type 0 +game_mode 1 +mapgroup mg_bomb_se +map de_dust2_se +config gamemode_competetive_server1.cfg

./srcds -game csgo -console -usercon +game_type 0 +game_mode 1 +mapgroup mg_bomb_se +map de_dust2_se +config gamemode_competetive_server2.cfg

I am not sure that is possible. What you are proposing is to have 5 seperate installations of the scrds files and then of course also 5 different configs. But that is not what I want.


Reply
#8
Hmm, maybe I'm the stupid one here.

Is this:

+exec custom_config.cfg

the way to specify a custom configuration per server?

E.g. launching 2 servers from the same installation

./srcds .... +exec config1.cfg
./srcds .... +exec config2.cfg

I will have to try this later to day.
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)