Recently, they updated something in security, and a method for running client via left4dead2.exe (with arguments) in the same machine with a server is no more working.
Instead, here is a walkaround to run the app directly from steam.exe.
I'm attaching the full code of .bat script (to run server + join simultaneously):
Spoiler
PHP Code:
:: For CS:GO SET "appID=730" SET "GAME_ALIAS=csgo" SET "MAP_NAME=de_dust2"
:: set path to your dedicated server''s srcds.exe SET "SERVER_DIR=E:\server\csgo"
:: Example for L4D2 (remove :: prefixes) ::SET "appID=550" ::SET "GAME_ALIAS=left4dead2" ::SET "MAP_NAME=c1m1_hotel" ::SET "SERVER_DIR=V:\server\l4d2"
SET "IP=192.168.31.4" SET "PORT=27016"
:: Remove unnecessary optional arguments by your wish SET OPTIONAL_ARG= -insecure +sv_pure 0 +sv_consistency 0 -debug -condebug
:: set path to your steam.exe SET "STEAM_DIR=C:\Program Files (x86)\Steam"
- many little additions, marked as: "Прим. переводчика:"
- added section "Terminology"
- updated section "Connection to the server"
- common mistakes splitted by groups
- added item about "ChangeEdictState"
- added the switch -condebug
- appended SetTransmit (info by asherkin)
- added commands report_entities, cl_showents
- fixed missing OnMapEnd() in some examples of "How to stop (delete) global timer"
- Plugin "Remove Weapons/Carryables Collision" added to the list of suggested fixes for L4D1/2
- Plugin "Return To Lobby Fix" added to the list of suggested fixes for L4D1/2
- Plugin "Cvar and Command List" added to the list "For developers"
- Plugin "Entity Limits Logger" added to the list "For developers"
- Plugin ac_debug is replaced by new release of Valve Profiler (now, with L4D1/2 compatibility)
- Script "[VBS] Simple Regexp Syntax updater" is added in "Other tools"
- Script "MethodMapize" is added in "Other tools"
- Added link to the article: "How to make model to be compact" (in "Other tools").