[L4D2] How to run and join local dedicated server (Windows)
Written in the hope to help some people to test their plugins locally* because Valve did it the way required a bottle of Vodka for everything to work properly.
* I didn't try to join my server from Internet (just locally - me is server and me is a client). That is possible, requires port forwarding. Search on your own. So, 1. Steam => Library => Tools => Double click on "Left 4 Dead 2 Beta - Win32 Dedicated Server". 2. After downloading, right click on it => Properties => Local files => See local files ... - Copy all files from "common\Left 4 Dead 2 Beta" to "common\Left 4 Dead 2". - Copy dedicated.dll to "bin" folder. 3. Create batch (runserver.bat) file (in "common\Left 4 Dead 2" folder) with the following code: Code:
start "" srcds -debug -condebug -usercon -console -insecure -dev -game left4dead2 -port 27000 +hostname "Source Dedicated Server" +map c5m1_waterfront +maxplayers 24 +sv_lan 1 Open "Console" tab. Remember IP in line "Local IP address:" 4. This is important. You must start L4d2 client first (before the server). 5. Run server by double click on "runserver.bat" Approve srcds.exe access in your firewall. Windows firewall will show you a warning automatically. 6. In L4D2 client enter in console: Code:
connect IP:27000 Enjoy. P.S. Instruction can be partially applied for other dedicated servers, like CS:GO. |
Re: [L4D2] How to run and join local dedicated server (Windows)
Please, correct me, if something could be accomplished in more easy way.
This is my first experience in creating a local server. |
Re: [L4D2] How to run and join local dedicated server (Windows)
Quote:
|
Re: [L4D2] How to run and join local dedicated server (Windows)
Yea, good option. No server at all.
|
Re: [L4D2] How to run and join local dedicated server (Windows)
Those servers created right in the client are called "listen servers" and aren't supported by sourcemod, so crashes might happen. A local dedicated server is the best option for plugin development.
|
Re: [L4D2] How to run and join local dedicated server (Windows)
I simply install SteamCMD and run this batch to install or update L4D2
PHP Code:
Then this batch to open a map selection when starting the server. Or instead of a selection just load the map, or combine the scripts to select which map and have an option to update. PHP Code:
|
Re: [L4D2] How to run and join local dedicated server (Windows)
I set up a dedicated coop server but when starting it loads mutations, how do I make it a campaign only?
|
Re: [L4D2] How to run and join local dedicated server (Windows)
Hi, you could use sm_cvar mp_gamemode coop
in the listenserver.cfg |
Re: [L4D2] How to run and join local dedicated server (Windows)
could this be done via dedicated server from the tools? that l4d2 gives u when u buy the game?
|
Re: [L4D2] How to run and join local dedicated server (Windows)
WhatsAnName, read the 1st post. It is directly saying exactly what you are asking about.
|
All times are GMT -4. The time now is 21:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.