Main Menu

L4D2 - CVARs

Started by Benny, November 18, 2009, 01:37:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Benny

mp_scrambleteams - obvious
_restart - still should work and is the most useful way to kick the bugger



am working through the rest, but this one may help as a startup OB?
c:\HLServer\left4dead2\srcds.exe -console -game left4dead2 +port 27016 -maxplayers 14 +sv_gametypes realism +map c1m1_hotel.bsp +exec server1.cfg

I think you change that to coop, versus or whatever.
Can we run one versus and one realism for now? And a password would be nice...again, for now.
===============
Master of maybe

OldBloke

Quote from: Benny;296700... but this one may help as a startup OB?
c:\HLServer\left4dead2\srcds.exe -console -game left4dead2 +port 27016 -maxplayers 14 +sv_gametypes realism +map c1m1_hotel.bsp +exec server1.cfg

I think you change that to coop, versus or whatever.

Tried that ... didn't work.


Quote from: Benny;296700Can we run one versus and one realism for now? And a password would be nice...again, for now.

I can't get anything but co-op to work. Password going on both now.
"War without end. Well, what was history if not that? And how would having the stars change anything?" - James S. A. Corey

Sn00ks

Hmm, kickage may be required.
I do exactly what the little voices tell me to.

PC Specs:- Black box with some fans that go whirrr, a few lights, things inside that get warm, headphones, keyboard (a clicky one), mouse (with buttons and no squeak), disks (2-off SSD and HDD) and a monitor of sufficient proportions.

OldBloke

password totally breaks the server.

So we can use our steam group id - which doesn't stop the pubs joining

or

we use a key

After trial and error only the key method works.

Still won't respond to the sv_gametypes command.
"War without end. Well, what was history if not that? And how would having the stars change anything?" - James S. A. Corey

Benny

Thanks Oldie, appreciate that it's a pain in the ass.

Howsabout...setting the searchkey to z0mb1fy
http://forums.steampowered.com/forums/showthread.php?p=12087829

which is..
Quote from: Server Setup//Left 4 Dead 2 Server.cfg
//This file goes inside your L4D server "cfg" folder
//Usually: \l4d\left4dead2\cfg\ <-- Place inside this folder

//----> Start of editable settings

//This is the name for your Left 4 Dead 2 Server
hostname "-=[dMw]=-Icepick"

sv_search_key "z0mb1fy"
//Gametypes sets the gametypes you want your server to run
//----> Versus Only: sv_gametypes "versus"
//----> Survival Only: sv_gametypes "survival"
//----> Coop Only: sv_gametypes "coop"
//----> Realism Only: sv_gametypes "realism"
//----> Team Versus Only: sv_gametypes "teamversus"
//----> Scavenge Only: sv_gametypes "teamscavenge"
sv_gametypes "coop,versus,realism,teamversus,teamscavenge"

//Rcon password - Sets the password for remote rcon admin
rcon_password "xxxx"

//Lan or Internet
//1 = Lan
//0 = Internet
sv_lan 0

//Steam group # to assign to server
sv_steamgroup xxxx

//<1> Do not connect to the Match Making Service
sv_steamgroup_exclusive 1

//Allow connections without creating lobby
sv_allow_lobby_connect_only 0

//Region - This sets the lobby in which your server will be part of
//You will want to set this to the closest location to your server
//eastcoast - sv_region 0
//westcoast - sv_region 1
//south america - sv_region 2
//europe - sv_region 3
//asia - sv_region 4
//australia - sv_region 5
//middle east - sv_region 6
//africa - sv_region 7
//world - sv_region 255
sv_region 3

// Server Logging
sv_log_onefile 0 //Log server information to only one file.
sv_logbans 1 //Log server bans in the server logs.
sv_logecho 0 //Echo log information to the console.
sv_logfile 1 //Log server information in the log file.
sv_logflush 0 //Flush the log file to disk on each write (slow).
sv_logsdir logs //Folder in the game directory where server logs will be stored.

//Server Rates
sv_maxcmdrate 100 //(If sv_mincmdrate is > 0), this sets the maximum value for cl_cmdrate.


//Allow use of cheats
//0 = Off
//1 = On
sv_cheats 0

//All talk - Allow both teams to use audio chat to speak with each other
//0 = Off
//1 = On
sv_alltalk 0

heartbeat

//----> End of editable settings

Quote from: How to start/join as the admin for the evening1) Hit the console key (~ or `) use sv_search_key z0mb1fy
2) Create a lobby
3) Set game settings within the GUI
4) Start game.



then we'll have to start in the lobby
===============
Master of maybe

Sn00ks

#5
I've read that if you don't include the sv_gametypes command that it will automatically include all of them. Must be some sort of exclude rather than include command?
 
Well at least the map swapping in HLSW works.
 
The sv_gametype command is used if you want to limit the type of games that lobbies can create on the server.
 
http://forums.steampowered.com/forums/showthread.php?p=12094887
I do exactly what the little voices tell me to.

PC Specs:- Black box with some fans that go whirrr, a few lights, things inside that get warm, headphones, keyboard (a clicky one), mouse (with buttons and no squeak), disks (2-off SSD and HDD) and a monitor of sufficient proportions.

Benny

You don't need the gametypes if you can start the game from the lobby. The idea is that you reserve your servers to your steam group and use the lobby to create the game......but the steam_group exclusive doesn't work...

shysters.
===============
Master of maybe

Sn00ks

Quote from: Benny;296785You don't need the gametypes if you can start the game from the lobby. The idea is that you reserve your servers to your steam group and use the lobby to create the game......but the steam_group exclusive doesn't work...
 
shysters.

 
So this command doesn't work (sv_steamgroup_exclusive 1)?
Bugger :angry:
 
How do we keep the hoi-poloi out then?
I do exactly what the little voices tell me to.

PC Specs:- Black box with some fans that go whirrr, a few lights, things inside that get warm, headphones, keyboard (a clicky one), mouse (with buttons and no squeak), disks (2-off SSD and HDD) and a monitor of sufficient proportions.

OldBloke

Quote from: Sn00ks;296786So this command doesn't work (sv_steamgroup_exclusive 1)?

Correct.

Quote from: Sn00ks;296786Bugger :angry:

Indeed.
 
Quote from: Sn00ks;296786How do we keep the hoi-poloi out then?

By using sv_search_key ...

Info found by Blueball for L4D (edited for L4D2) which *should* still work ...

QuoteMethod 1   Go to your L4D2 Config folder (C:\Program Files\Steam\steamapps\common\left4dead2\left4dead2\cfg\) and create a file called dmw.cfg (just use notepad to create the file).
Add sv_search_key "d34dm3n" to the file contents.
Save and close the file
Method 2   Go to your Steam Game list (My Games tab).
Right click on Left4Dead2.
Select Properties.
Click "Set Launch Options..."
Add the following line:

+sv_search_key d34dm3n
The preferred method is Method 1 as it does not hide other servers. If you use Method 2 then you will only join the dMw server (I believe)

Assuming you used Method 1 you can now join via the lobby (If you used Method 2 you can skip the first 4 lines below):   Start L4D
Open the console by pressing `
type "exec dmw" without quote marks and press enter
close console
choose to play online with friends
Create a lobby
invite your friends
agree which way you want the server to be (gametype)
click start

"War without end. Well, what was history if not that? And how would having the stars change anything?" - James S. A. Corey

Benny

nope, it's crap. The key thing keeps out the ruffians. I think, however Oldie may have committed Hari Kari after last night.
===============
Master of maybe

OldBloke

Just tested using Method 2 and it appears to work.
"War without end. Well, what was history if not that? And how would having the stars change anything?" - James S. A. Corey

Benny

Nice one OB, thankyou!

Shall we try some vs tonight?
===============
Master of maybe

OldBloke

Quote from: Benny;296799Nice one OB, thankyou!

Shall we try some vs tonight?

Racing tonight till 9:30 ish.
"War without end. Well, what was history if not that? And how would having the stars change anything?" - James S. A. Corey

Sn00ks

Well done that man!
 
Was going to try and rescue Gmone Chompski first and then maybe some versus?
I do exactly what the little voices tell me to.

PC Specs:- Black box with some fans that go whirrr, a few lights, things inside that get warm, headphones, keyboard (a clicky one), mouse (with buttons and no squeak), disks (2-off SSD and HDD) and a monitor of sufficient proportions.

Benny

Sounds good. I'll try and free willy or whatever the mission of choice is, then shall we try at say 9:30 and if it works we'll unleash the process on the unwashed ready for the weekend?
===============
Master of maybe