SRCDS Steam group


Host different type of Left 4 dead server in same pc
#1
Dear all,
I want to host a different types of left 4 dead server in my pc, I have created server.cfg for CO-OP and server2.cfg for Versus. But every time host changelevel, when I am running server2.cfg, it will change to server.cfg but not server2.cfg. What is the ways to set that 2 dedicated server just run server.cfg or server2.cfg separately? Thx
Reply
#2
Did you put this in your startup line: exec server2.cfg
~ Mooga ...w00t? - SRCDS.com on Twitter
[Image: 76561197965445574.png]
Please do not PM me for server related help
fqdn Wrote:if you've seen the any of the matrix movies, a game server is not all that different. it runs a version of the game that handles the entire world for each client connected. that's the 2 sentence explanation.
Reply
#3
cadman Wrote:Dear all,
I want to host a different types of left 4 dead server in my pc, I have created server.cfg for CO-OP and server2.cfg for Versus. But every time host changelevel, when I am running server2.cfg, it will change to server.cfg but not server2.cfg. What is the ways to set that 2 dedicated server just run server.cfg or server2.cfg separately? Thx

use the instructions in this thread to get the servers to load their own config files. And the info in my post to set the server to versus or co-op mode.

My settings are like follows:

server.cfg:
Code:
[l4dserver@puma2 cfg]$ cat server.cfg
loadservercfg
runXX.cfg:
Code:
[l4dserver@puma2 cfg]$ cat run01.cfg
alias loadservercfg "exec mf_server01"

mf_serverXX.cfg contains the actual settings (including versus or co-op mode)

startup line for the srcds is then:

Code:
MY_PORT="27015+##"
MY_CLIENT_PORT="27005+##"
MY_START_MAP="l4d_airport01_greenhouse"
MY_FORK_COUNT=2

# COMMAND LINE OPTIONS FOR THE DEDICATED SERVER EXECUTEABLE
EXEC_OPTS="-game $STEAM_GAME_TYPE -console -ip $MY_EXTERNAL_IP +clientport $MY_CLIENT_PORT +hostport $MY_PORT -autoupdate -fork $MY_FORK_COUNT +exec run##.cfg +map $MY_START_MAP"

So the servers will start at 27015 and 27005 and step the port number one step for each server instance. i haven't solved the problem with the same starting map though, since sourcemod craps out if you change the map in the cfg file.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)