Go Back   Steam Users' Forums > Dedicated Server Discussions > Source DS (Linux)

Reply
 
Thread Tools Display Modes
Old 11-22-2009, 08:39 PM   #1
ZeeBOB
 
Join Date: Jan 2009
Reputation: 0
Posts: 12
L4D2 - HOW TO START SERVER IN SPECIFIC GAME MODE

HI ALL,

Like a lot of you I have wanted my servers to start up in versus/scavenge/realism mode automatically and not have the client need to set one up via a lobby... The answer:
  1. Create a new file called versus.cfg (or whatever you want) and make sure it is in the CFG's folder
  2. in the new cfg file enter the following: map c1m1_hotel versus

    NOTE: you MUST specify a starting map before the +exec in your startup line. EXAMPLE:

    ./srcds_run -ip xxx.xxx.xxx.xxx -port xxxxx -console -game left4dead2 -secure -sv_unlag 1 -maxclients 12 -sv_pure 1 +map c1m1_hotel +exec versus.cfg
  3. In your servers startup line add this variable: +exec versus.cfg

REMEMBER: server.cfg will run on EVERY map change automatically and on server startup so there is no point specifying it in the server startup line, only specify the custom cfg with the game mode you want

REMEMBER: DO NOT put this map command in the server.cfg or your server will just constantly restart as it exec's the server.cfg file and changes the map again and again and again

Notes:
Starting modes are:
  • coop - Campaign Mode
  • versus - Versus Mode
  • survival - Survival Mode
  • realism - Campaign Mode (Realism Enabled)
  • teamscavenge - Scavenge Mode

Scavenge maps are:
  • c1m4_atrium
  • c2m1_highway
  • c3m1_plankcountry
  • c4m1_milltown_a
  • c4m2_sugarmill_a
  • c5m2_park

If you dont want your server to be able to run any other mode be sure to specify the sv_gametypes command in your server.cfg

Last edited by ZeeBOB: 11-22-2009 at 09:02 PM. Reason: spelling mistake
ZeeBOB is offline  
Reply With Quote
Old 11-23-2009, 01:13 AM   #2
xer
 
Join Date: Oct 2009
Reputation: 0
Posts: 45
@ZeeBob
nice how to, i'll try today, but, what's going on with dedicated server update? first, srcds_run was wrong, infact autoupdated command installed left4dead2_demo instead lef4t4dead2, and command mm_dedicated_force_server xxx.xxx.xxx.xxx:xxxxx from clients to lobby connect does not work anymore, (before yes)....

i was for sure that this morning i will found an update.. but not...
xer is offline   Reply With Quote
Old 11-23-2009, 02:22 AM   #3
xer
 
Join Date: Oct 2009
Reputation: 0
Posts: 45
Wink

@ZeeBob

Does not work at all, i mean, last server update was a MESS..
does not work mm_dedicated_force_servers, sv_search, sv_region, versus mode and so on..

For example, yesterday night it was impossibile to play versus on dedicated servers, a lots of people created versus waiting room, but after all, they was hosting on a own PC a discovery game...

So, i just did a test as you wrote before to force a start of mine dedicated server in versus, so i did in server.cfg:

sv_gametype "versus"

i made a versus.cfg as you described and i put it on mine startup command..... and... nothing works..
the server has been started in coop/campain mode..

well, i had like to check again, but i must wait the newest updates, cause obviously there are a lots of bugs..
xer is offline   Reply With Quote
Old 11-23-2009, 02:34 AM   #4
Felix
 
Join Date: Nov 2008
Reputation: 11
Posts: 76
Quote:
Originally Posted by xer View Post
command mm_dedicated_force_server xxx.xxx.xxx.xxx:xxxxx from clients to lobby connect does not work anymore, (before yes)....
I applied the update to my server yesterday and started a game with friends from a lobby using mm_dedicated_force_server. We connected to my server just fine.

We had lag/performance issues though.
Felix is offline   Reply With Quote
Old 11-23-2009, 03:57 AM   #5
xer
 
Join Date: Oct 2009
Reputation: 0
Posts: 45
Quote:
Originally Posted by Felix View Post
I applied the update to my server yesterday and started a game with friends from a lobby using mm_dedicated_force_server. We connected to my server just fine.

We had lag/performance issues though.
did you see that you have another dir called left4dead2_demo?
also, try now, you'll se that mm_de.. command does not work anymore
i'm talinkg about after you wer offline... so.. 23:00 CET

edit:
also, i did again a test and.. after 6 times, i reached mine server in versus mode, but, even if we was in 6, show up "the server is goona to shut off, must be played with human players"
i wonder why....
what a big mess!

Last edited by xer: 11-23-2009 at 04:14 AM.
xer is offline   Reply With Quote
Old 11-24-2009, 01:13 PM   #6
NowakPL
 
Banned
Join Date: Sep 2007
Reputation: 12
Posts: 315
Or you could just properly quote the +map parameter:
Code:
./srcds_run "+map \"c1m1_hotel versus\""

sv_showtags
Tags:
Public :  versus,empty
NowakPL is offline   Reply With Quote
Old 11-24-2009, 02:30 PM   #7
ogre_x
 
Join Date: Jan 2007
Reputation: 1
Posts: 66
That's a nice one for those that doesn't fork their servers. Using the top post with

Code:
+exec run##.cfg
Let's me start each fork with a unique map/game mode combo.
ogre_x is offline   Reply With Quote
Old 11-25-2009, 12:09 AM   #8
ZeeBOB
 
Join Date: Jan 2009
Reputation: 0
Posts: 12
Hi guys,

I have no idea how you are all having the server update problems

I've gone from version to version and not had any of the issues you guys are having.

I've also checked and tested the above method on MANY servers and its worked just fine. Just make sure the exec command is the LAST thing to run

Post your start lines and server.cfg/mode.cfg here and i'll try and help
ZeeBOB is offline   Reply With Quote
Old 11-25-2009, 12:39 AM   #9
Aurien
 
Join Date: Jul 2007
Reputation: 15
Posts: 423
Fixed your launch line.
Code:
./srcds_run -ip xxx.xxx.xxx.xxx -port xxxxx -console -game left4dead2 +map c1m1_hotel +exec versus.cfg
  • -sv_unlag 1 - not a setting for L4D2
  • -maxclients 12 - does nothing, since the max is 8 unless using sourcemod
  • -sv_pure 1 - Should really tell people what this does. It can get you auto kicked from your own server and cause a massive headache.
    Code:
    sv_pure:
    
    If set to 1, the server will force all client files except the whitelisted ones (in pure_server_whitelist.txt) to match the server's files. 
    
    If set to 2, the server will force all client files to come from Steam (and it will not load pure_server_whitelist.txt).
  • -secure - default setting, so no need to list twice.
Aurien is offline   Reply With Quote
Old 11-25-2009, 03:20 PM   #10
robochief
 
Join Date: Mar 2009
Reputation: 0
Posts: 12
What does "versus.cfg" contains?
robochief is offline   Reply With Quote
Old 11-30-2009, 02:01 AM   #11
xer
 
Join Date: Oct 2009
Reputation: 0
Posts: 45
Quote:
Originally Posted by NowakPL View Post
Or you could just properly quote the +map parameter:
Code:
./srcds_run "+map \"c1m1_hotel versus\""

sv_showtags
Tags:
Public :  versus,empty
Nice!
It works!
Thanks a lot!
xer is offline   Reply With Quote
Old 12-03-2009, 09:02 PM   #12
Sinistar
 
Join Date: Jul 2006
Reputation: 5
Posts: 340
What are the VS map names if I just want to start a VS server only?
Sinistar is offline   Reply With Quote
Old 03-27-2010, 01:01 AM   #13
Sinistar
 
Join Date: Jul 2006
Reputation: 5
Posts: 340
Any idea how to start team scavenge mode automatically with 5 rounds instead of the default 3?

thanks
Sinistar is offline   Reply With Quote
Old 04-06-2010, 10:43 AM   #14
The009
 
Join Date: Sep 2007
Reputation: 113
Posts: 643
I have not had a problem just using a loby and mm_force_dedicated to my own server.

Just make sure that you reboot your server about 30 sec before going on it. ( Valve Bug )

I have found If I do not restart the server it messes up.
The009 is offline   Reply With Quote
Reply

Go Back   Steam Users' Forums > Dedicated Server Discussions > Source DS (Linux)


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -7. The time now is 10:43 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2014, All Rights Reserved.