I need assistance with running 4 dedicated CSGO servers on one PC. However, I am facing two issues at the moment.
Firstly, it seems that srcds is loading 2 instances of CSGO DS and not allowing them to open from the same directory. I am unsure if this is the root of the problem.
Secondly, even when launching two servers from the same directory, the batch file is different from what I had hoped for. I want each server to use a different server.cfg file, so that I can have the same server but with a different hostname such as 'scrims1' and 'Scrims server 2'.
Do you have any suggestions for resolving these issues?
Typically, it is not recommended to run CSGO servers on a VPS. Additionally, when the tick rate is set higher than default, a server with a tick rate of 128 will use twice as much CPU as a regular CSGO server with a tick rate of 64.
To run a CSGO server with a clock frequency of 128, it is recommended to use a processor with a tick rate of 3.5 and a core clock frequency of GHz or higher. This will ensure that there is not much difference in the frame rate between ticks.
If you add "-condebug" to the startup parameters of the 3rd and 4th servers, it will create a console.log file in the root directory of the game server. This log file will contain a dump of the console up until the last instance stop point. This can be helpful in troubleshooting any issues that may arise.
The Source engine and MetaMod/SourceMod addons have the capability to allow for multiple server builds to function with their own configs, plugins, etc. from a single folder. This method enables you to save space on the server disk and run multiple CS servers:GO with your own plugins, configs, and maps, taking up only a fraction of storage.
This article will explore exactly how to implement this technique. To achieve this, the server startup parameters are utilized. The engine itself allows us to alter the list of maps (mapcycle.txt) and the standard config (server.cfg), which is sufficient to operate several bare servers.
The mapcyclefile is the file that contains the list of maps to rotate, and servercfgfile is the file that holds the main server configuration. These files can be modified to run multiple servers.
However, what about MetaMod? The developers have given us two parameters that can be altered to modify the search paths of VDF and the file with MM plugin aliases. These parameters can also be registered in the server startup parameters.
The mm_pluginsfile is the path to the metaplugins.ini file, and the mm_basedir is the path to the MM root folder in which MM should search for VDF files of plugins to download. These parameters are essentially server console variables and must be written with a plus before the name in the startup parameters.
Similarly, SourceMod also has a similar variable that requires alteration.
To resolve the first issue, it's important to make sure that you're running each instance of CSGO Dedicated Server (srcds) on different ports. By default, srcds uses port 27015, so you'll need to change the port for each server you want to run. To do this, add the "+port" launch option followed by a unique port number for each server in your batch file. For example, "+port 27016" for the second server and "+port 27017" for the third server.
For the second issue, you can create separate server.cfg files for each server by following these steps:
1. Create a copy of the original server.cfg file and rename it to something like server2.cfg.
2. Open the server2.cfg file and modify the settings you want to change, such as the hostname.
3. In your batch file, specify the server.cfg file to use for each instance of srcds. For example, use the command "+exec server.cfg" for the first server and "+exec server2.cfg" for the second server.
By using different server.cfg files, you can customize each server's settings, including the hostname, allowing you to differentiate them as desired.
Remember to save all changes and restart the servers for the changes to take effect.