SRCDS Steam group


Running multiple instances of one game
#1
I'm currently running a couple servers on my box. I am running a TF2 server and a CSS server, both are running fine with no problems.

The TF2 server runs on port 27015 and the CSS server runs on 27016.

I was wondering if it is possible to run a second CSS server using the GunGame mod running on port 27017?

Do I need another cstrike directory or can I call the same game but somehow exec a different config that loads GunGame.

Thanks,
Andy
Reply
#2
You can run another server of port 27017 if your connection and hardware is good enough.
you are better of having a another install
~ trewq
Reply
#3
My connection and hardware is more than enough..

So just download and install srcds to another folder? Seems a bit excessive to install it twice..
Reply
#4
Well you can run two servers off one install. You just make make two server.cfg, two maplists, two mapcycles, and pretty much two of everything where the two servers differ. So lets say that you make a server_1.cfg and server_2.cfg. In the server 1's command line you would put, +exec server_1.cfg, and I am pretty sure you can figure out the rest Smile.
realchamp Wrote:
Hazz Wrote:Has someone helped you on these forums? If so, help someone else
Mooga Wrote:OrangeBox is a WHORE.
Reply
#5
so for the main cs server i run..

./srcds_run -console -game cstrike +ip xx.xx.xx.xx -port 27016 +map cs_office +maxplayers 16 -tickrate 100 +exec server.cfg

and for the gungame server i run..
./srcds_run -console -game cstrike +ip xx.xx.xx.xx -port 27017 +map gg_blah +maxplayers 16 -tickrate 100 +exec gungame.cfg

Will that do the job?
Is there any way I get get the two different servers to read different motd.txt files?
Reply
#6
Street Wrote:so for the main cs server i run..

./srcds_run -console -game cstrike +ip xx.xx.xx.xx -port 27016 +map cs_office +maxplayers 16 -tickrate 100 +exec server.cfg

and for the gungame server i run..
./srcds_run -console -game cstrike +ip xx.xx.xx.xx -port 27017 +map gg_blah +maxplayers 16 -tickrate 100 +exec gungame.cfg

Will that do the job?

Thank you for posting this question. I was in the process of testing out this very thing this morning and was running into problems. Here's what I've found using these strings to start the servers:

Code:
SERVER 1
srcds.exe -nomaster -console -game cstrike +exec server.cfg -autoupdate -port 27025 +fps_max 600 -tickrate 100 -noipx +log on +maxplayers 24 +map De_dust
SERVER 2
srcds.exe -nomaster -console -game cstrike +exec server2.cfg -autoupdate -port 27026 +fps_max 600 -tickrate 100 -noipx +log on +maxplayers 24 +map De_dust2

Server 1 starts and uses server.cfg. Server 2 starts but uses the default server.cfg (the one used by Server 1).
Thus, if server.cfg exists, the +exec server2.cfg is overlooked and the default server.cfg is used.

If server.cfg is renamed to server1.cfg and +exec server2.cfg is used, the server will use server2.cfg and not server.cfg.
Using the following strings now runs both servers with their respective server.cfg files.

Code:
SERVER 1
srcds.exe -nomaster -console -game cstrike +exec server1.cfg -autoupdate -port 27025 +fps_max 600 -tickrate 100 -noipx +log on +maxplayers 24 +map De_dust
SERVER 2
srcds.exe -nomaster -console -game cstrike +exec server2.cfg -autoupdate -port 27026 +fps_max 600 -tickrate 100 -noipx +log on +maxplayers 24 +map De_dust2

Using your examples above, rename server.cfg to server1.cfg and use the following:

Code:
MAIN CS SERVER
./srcds_run -console -game cstrike +ip xx.xx.xx.xx -port 27016 +map cs_office +maxplayers 16 -tickrate 100 +exec server1.cfg
GUNGAME SERVER
./srcds_run -console -game cstrike +ip xx.xx.xx.xx -port 27017 +map gg_blah +maxplayers 16 -tickrate 100 +exec gungame.cfg

Street Wrote:Is there any way I get get the two different servers to read different motd.txt files?

Yes but it might require duplicating the folders or using a plugin.
Reply
#7
becuase of the addons, it will be easier having to srcds installs. probably save you from some headaches too
Reply
#8
HBS|Ryan Wrote:becuase of the addons, it will be easier having to srcds installs. probably save you from some headaches too

I'm new to this, but couldn't you separate game instances with directories?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)