Dead Men Walking

Old Server Admin Section => Game Admins => Archived Topics => Left 4 Dead Admins => Topic started by: Benny on November 18, 2009, 01:37:28 PM

Title: L4D2 - CVARs
Post by: Benny on November 18, 2009, 01:37:28 PM
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.
Title: L4D2 - CVARs
Post by: OldBloke on November 18, 2009, 07:26:08 PM
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.
Title: L4D2 - CVARs
Post by: Sn00ks on November 18, 2009, 07:44:05 PM
Hmm, kickage may be required.
Title: L4D2 - CVARs
Post by: OldBloke on November 18, 2009, 08:24:27 PM
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.
Title: L4D2 - CVARs
Post by: Benny on November 18, 2009, 10:37:24 PM
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
Title: L4D2 - CVARs
Post by: Sn00ks on November 19, 2009, 08:48:49 AM
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
Title: L4D2 - CVARs
Post by: Benny on November 19, 2009, 09:14:55 AM
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.
Title: L4D2 - CVARs
Post by: Sn00ks on November 19, 2009, 09:22:41 AM
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?
Title: L4D2 - CVARs
Post by: OldBloke on November 19, 2009, 10:31:47 AM
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

Title: L4D2 - CVARs
Post by: Benny on November 19, 2009, 10:33:39 AM
nope, it's crap. The key thing keeps out the ruffians. I think, however Oldie may have committed Hari Kari after last night.
Title: L4D2 - CVARs
Post by: OldBloke on November 19, 2009, 11:09:19 AM
Just tested using Method 2 and it appears to work.
Title: L4D2 - CVARs
Post by: Benny on November 19, 2009, 12:58:12 PM
Nice one OB, thankyou!

Shall we try some vs tonight?
Title: L4D2 - CVARs
Post by: OldBloke on November 19, 2009, 01:24:27 PM
Quote from: Benny;296799Nice one OB, thankyou!

Shall we try some vs tonight?

Racing tonight till 9:30 ish.
Title: L4D2 - CVARs
Post by: Sn00ks on November 19, 2009, 01:24:32 PM
Well done that man!
 
Was going to try and rescue Gmone Chompski first and then maybe some versus?
Title: L4D2 - CVARs
Post by: Benny on November 19, 2009, 01:26:00 PM
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?
Title: L4D2 - CVARs
Post by: Sn00ks on November 19, 2009, 01:31:48 PM
Yup sounds good, damn Steam and their 'let's simplify this process and remove control from the server admins'
Title: L4D2 - CVARs
Post by: Sn00ks on November 19, 2009, 06:15:19 PM
Just tried this with d34dm3n as the key and ended up somewhere else. Should I have used z0mb1fy instead?
Title: L4D2 - CVARs
Post by: OldBloke on November 19, 2009, 06:37:52 PM
Quote from: Sn00ks;296839Just tried this with d34dm3n as the key and ended up somewhere else. Should I have used z0mb1fy instead?

Nope. It's d34dm3n.
Title: L4D2 - CVARs
Post by: b00n on November 19, 2009, 07:20:05 PM
Quote from: Sn00ks;296839Just tried this with d34dm3n as the key and ended up somewhere else. Should I have used z0mb1fy instead?

Not working for me either, unless I'm doing it wrong.
Title: L4D2 - CVARs
Post by: OldBloke on November 19, 2009, 07:40:03 PM
Quote from: b00n;296849Not working for me either, unless I'm doing it wrong.

make sure that there are no quotes, e.g.

+sv_search_key d34dm3n
Title: L4D2 - CVARs
Post by: b00n on November 19, 2009, 07:45:19 PM
Quote from: OldBloke;296853make sure that there are no quotes, e.g.

+sv_search_key d34dm3n

Yep, that's what I've got. I then go to Play with Friends, Create New Lobby, Start Game... and it starts a local server on my PC.

I read in the L4D2 forums a bit and I've been playing with this setting:

Quotebind F10 "mm_dedicated_force_servers 77.108.129.45:27033,77.108.129.45:27032"

It forces it to connect only to those listed servers from a lobby.  I put it in a bind so that I can still join other servers, or I can just press F10 while in a lobby (as leader) and it joins our server when I start the game. Seems to work. :)
Title: L4D2 - CVARs
Post by: OldBloke on November 19, 2009, 10:15:14 PM
Quote from: b00n;296854Yep, that's what I've got. I then go to Play with Friends, Create New Lobby, Start Game... and it starts a local server on my PC.

I read in the L4D2 forums a bit and I've been playing with this setting:



It forces it to connect only to those listed servers from a lobby.  I put it in a bind so that I can still join other servers, or I can just press F10 while in a lobby (as leader) and it joins our server when I start the game. Seems to work. :)

Which might explain why it was working for me ... Benny and I were playing with that command last night and I used it in an autoexec.cfg  :D
Title: L4D2 - CVARs
Post by: Benny on December 27, 2009, 11:11:43 PM
Quotebind F10 "mm_dedicated_force_servers 77.108.129.45:27033,77.108.129.45:27032,77.108.129.45:27034"

Just for completeness sake.
Title: L4D2 - CVARs
Post by: Sn00ks on December 28, 2009, 12:54:31 PM
You may want to take the extraneous space out befor the last IP address? :norty:
Title: L4D2 - CVARs
Post by: Benny on December 28, 2009, 01:21:32 PM
I bloody can't!!! It's not there when I edit it?!

I blame the forum admin person.
Title: L4D2 - CVARs
Post by: Benny on December 29, 2009, 07:36:57 PM
Can we add '-nomaster' to the startup of one of the servers to test it?

It should stop it reporting in, therefore if we can still start a game, only those with friends on, or with the mm server stuff should be able to use it?

I hate pubbies...
Title: L4D2 - CVARs
Post by: OldBloke on December 29, 2009, 08:49:36 PM
Quote from: Benny;300286Can we add '-nomaster' to the startup of one of the servers to test it?

It should stop it reporting in, therefore if we can still start a game, only those with friends on, or with the mm server stuff should be able to use it?

I hate pubbies...

I found a post that said there's a known bug where very occasionally a pubbie will be squirted into a 'closed' server.

I'll test the 'nomaster' thingy tomorrow.