STANLY 1 Apr, 2020 @ 4:27am
Dedicated L4D2 server linux. How to start a different gamemode
Hey people,
i can't start the server in another gamemode than campaign. I added a sv_gamemode "versus" and a sv_gametypes "versus"
I hope somebody can help me her :)
Last edited by STANLY; 3 Apr, 2020 @ 2:45am
Originally posted by Sepp:
I can confirm that the manual load of a versus map via console works. The server then jumps from 4 slots to 8 slots and is running in versus mode.

Trying to load a versus map directly via the startup command line didn't work for me either.

A workaround to get a versus map as a starting map is to create a custom config file (e.g. versus_start.cfg).
In that you simply put the map command for loading a map in versus mode:
map c1m2_streets versus

My startup commandline:
./srcds_run -console -game left4dead2 +map c1m1_hotel +exec versus_start.cfg


This way the server will start in versus mode running the map specified in versus_start.cfg.
In the server.cfg - which will get executed by default - I've only set a custom hostname.
No maxplyers, gamemodes, etc. setting is being used here.
< >
Showing 1-13 of 13 comments
STANLY 1 Apr, 2020 @ 2:05pm 
oh, the server actually starts but it doesnt care about the settings, it always switches back to coop
https://developer.valvesoftware.com/wiki/List_of_L4D2_Cvars
sv_gametypes coop, realism, survival, versus, scavenge, dash, holdout, shootzones
Sepp 3 Apr, 2020 @ 1:29am 
Originally posted by CoC STANLY:
I added a sv_gamemode "versus" and a sv_gametype "versus"
You are missing the "s" at the end of sv_gametypes.
STANLY 3 Apr, 2020 @ 2:48am 
Originally posted by Sepp:
Originally posted by CoC STANLY:
I added a sv_gamemode "versus" and a sv_gametype "versus"
You are missing the "s" at the end of sv_gametypes.
In the file i don't miss the s its just in this forum wrong
Sepp 3 Apr, 2020 @ 4:15am 
Does your server have enough slots for versus?
STANLY 3 Apr, 2020 @ 5:28am 
Originally posted by Sepp:
Does your server have enough slots for versus?
Where can i increase the max amount of players? When i google it it just show me mods and stuff like that. started the srcds_run with -maxplayers 8 but it still goes into campaignmode
Last edited by STANLY; 3 Apr, 2020 @ 5:36am
Sepp 3 Apr, 2020 @ 9:59pm 
-maxplayers should be the right command. You can also try and add sv_maxplayers 8 to your server.cfg.
I also remember having problems getting a l4d2 versus server up and running. But that was years ago and I don't remember all the details.
When your server is up and running and you try to load a versus map via console command....does it work then?
The author of this thread has indicated that this post answers the original topic.
Sepp 4 Apr, 2020 @ 12:28am 
I can confirm that the manual load of a versus map via console works. The server then jumps from 4 slots to 8 slots and is running in versus mode.

Trying to load a versus map directly via the startup command line didn't work for me either.

A workaround to get a versus map as a starting map is to create a custom config file (e.g. versus_start.cfg).
In that you simply put the map command for loading a map in versus mode:
map c1m2_streets versus

My startup commandline:
./srcds_run -console -game left4dead2 +map c1m1_hotel +exec versus_start.cfg


This way the server will start in versus mode running the map specified in versus_start.cfg.
In the server.cfg - which will get executed by default - I've only set a custom hostname.
No maxplyers, gamemodes, etc. setting is being used here.
STANLY 4 Apr, 2020 @ 1:35am 
Thank you guys!
xxabood CS.FAIL 4 Apr, 2020 @ 5:41am 
♥♥♥♥
STANLY 4 Apr, 2020 @ 2:47pm 
okay boys, the server does some weird stuff. The first level doesnt provide the survivors weapons, its kinda weird. Any solution to that?
WilmerGT Ve 17 Aug, 2020 @ 6:30pm 
Donde puedo conseguir la id de un grupo latino de left 4 dead 2
sensei 25 Oct, 2020 @ 1:45pm 
nice
< >
Showing 1-13 of 13 comments
Per page: 1530 50