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.