STANLY 2020 年 4 月 1 日 上午 4:27
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 :)
最后由 STANLY 编辑于; 2020 年 4 月 3 日 上午 2:45
引用自 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.
< >
正在显示第 1 - 13 条,共 13 条留言
STANLY 2020 年 4 月 1 日 下午 2:05 
oh, the server actually starts but it doesnt care about the settings, it always switches back to coop
Папочка 🖤 2020 年 4 月 3 日 上午 12:59 
https://developer.valvesoftware.com/wiki/List_of_L4D2_Cvars
sv_gametypes coop, realism, survival, versus, scavenge, dash, holdout, shootzones
Sepp 2020 年 4 月 3 日 上午 1:29 
引用自 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 2020 年 4 月 3 日 上午 2:48 
引用自 Sepp
引用自 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 2020 年 4 月 3 日 上午 4:15 
Does your server have enough slots for versus?
STANLY 2020 年 4 月 3 日 上午 5:28 
引用自 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
最后由 STANLY 编辑于; 2020 年 4 月 3 日 上午 5:36
Sepp 2020 年 4 月 3 日 下午 9:59 
-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?
该讨论串的作者已表示此帖子解答了原先的主题。
Sepp 2020 年 4 月 4 日 上午 12:28 
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 2020 年 4 月 4 日 上午 1:35 
Thank you guys!
xxabood CS.FAIL 2020 年 4 月 4 日 上午 5:41 
♥♥♥♥
STANLY 2020 年 4 月 4 日 下午 2:47 
okay boys, the server does some weird stuff. The first level doesnt provide the survivors weapons, its kinda weird. Any solution to that?
SampaTesTe & Toma Tu YucoTA 2020 年 8 月 17 日 下午 6:30 
Donde puedo conseguir la id de un grupo latino de left 4 dead 2
sensei 2020 年 10 月 25 日 下午 1:45 
nice
< >
正在显示第 1 - 13 条,共 13 条留言
每页显示数: 1530 50