SRCDS Steam group


Two servers, same name?
#1
Hey there,

I'm currently looking to run two Team Fortress 2 servers, but I've run into an issue. When setting up one through the server.cfg, it's named "24/7 Payload". I created a shell script so that I can launch it with my preferred settings, and so that I can specify the "server.cfg". I set up another one named "24/7 2Fort", and pointed the shell script to execute server2.cfg

But for whatever reason - both servers are named "24/7 Payload", and the map rotation is mirrored aside from the initial 2Fort map.

Anyone have an idea on what I need to do?
Thanks in advance!
Reply
#2
hm,
Have you tried creating an autoexec.cfg for both of them. In one put:
server.cfg
and in the other put
server2.cfg


That's what I would try.
Reply
#3
(10-05-2009, 07:51 AM)thatnatekid Wrote:  hm,
Have you tried creating an autoexec.cfg for both of them. In one put:
server.cfg
and in the other put
server2.cfg


That's what I would try.

I created an autoexec.cfg and put inside
server.cfg
server2.cfg

but both are still coming up at the same server name.

Any ideas?
Reply
#4
For the second server add +servercfgfile server2.cfg
Reply
#5
Why it comes up twice is because the server software automaticly reads server.cfg if it is present. And there it will find the hostname. The most easy part is to remove/delete the server.cfg and have two startuplines like the below as i show:

publicserver
Code:
screen -S public ./srcds_run -autoupdate -debug -game dod +ip xx.xxx.xxx.xxx +hostport 27015 +map dod_donner +maxplayers 32 -tickrate 66 +exec server1.cfg +fps_max 0

matchserver
Code:
screen -S warerver ./srcds_run -autoupdate -debug -game dod +ip xx.xxx.xxx.xxx +hostport 27035 +map dod_donner +maxplayers 12 -tickrate 100 +exec server2.cfg +fps_max 0


With the abowe you will have two server.cfg files. One called server1.cfg and one server2.cfg. And if you uses different hostnames inside those files and loads your servers as abow you will have different servernames when your users are looking for your servers. But the most important part in this way. Not saying it is the right way. But il know that it works. You can call it the easy way Smile

But dont forget to delete the origin file so there are no server.cfg inside the /cfg folder
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)