User Tools

Site Tools


left_4_dead_2_server_quick_start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
left_4_dead_2_server_quick_start [2012/07/15 18:43] tkbletscleft_4_dead_2_server_quick_start [2012/07/15 20:33] (current) tkbletsc
Line 1: Line 1:
-====== Install and config ======+====== Left 4 Dead 2 server quick start ======
  
 //Note: if using modern Ubuntu or Debian 32-bit, first do: //''sudo apt-get install lib32gcc1'' //Note: if using modern Ubuntu or Debian 32-bit, first do: //''sudo apt-get install lib32gcc1''
 +
 +===== Auto-install script =====
 +<code=bash>
 +wget -c http://storefront.steampowered.com/download/hldsupdatetool.bin || exit
 +chmod +x hldsupdatetool.bin || exit
 +./hldsupdatetool.bin || exit
 +
 +test -e go || cat <<EOL > go
 +export RDTSC_FREQUENCY=2500.000000
 +cd left4dead2
 +./srcds_run l4d -autoupdate +hostport 27015 +ip 0.0.0.0 +exec server.cfg
 +EOL
 +chmod +x go
 +
 +mkdir -p left4dead2/left4dead2/cfg
 +ln -s left4dead2/left4dead2/cfg/server.cfg .
 +ln -s left4dead2/left4dead2/motd.txt .
 +ln -s left4dead2/left4dead2/host.txt .
 +
 +cat <<EOL > server.cfg
 +hostname "ZOMBONI 9003"
 +rcon_password "XXXXX"
 +z_difficulty "advanced"
 +sv_region 0
 +sv_gametypes "coop, versus, survival, scavenge"
 +sv_allow_lobby_connect_only 0
 +EOL
 +
 +echo './steam -command update -game left4dead2 -dir .' > update
 +chmod +x update
 +
 +./update ; ./update
 +
 +
 +</code>
 +
 +===== Manual install and config =====
  
 Get steam: Get steam:
Line 29: Line 66:
   sv_allow_lobby_connect_only 0   sv_allow_lobby_connect_only 0
  
-====== Private server ======+===== Private server =====
 By default, the server will be open to all comers.  The "sv_allow_lobby_connect_only 0" in the server config above prevents this.  To allow YOU to use it, use the "mm_dedicated_force_servers" console command before hitting "go" in the game lobby.  This command supports IP addresses only (no hostnames).  Example: By default, the server will be open to all comers.  The "sv_allow_lobby_connect_only 0" in the server config above prevents this.  To allow YOU to use it, use the "mm_dedicated_force_servers" console command before hitting "go" in the game lobby.  This command supports IP addresses only (no hostnames).  Example:
  
Line 39: Line 76:
 Then, in game, just hit F12 any time to make the game use your server. Then, in game, just hit F12 any time to make the game use your server.
  
-====== Addons ======+===== Addons =====
  
 Script to update the addons list when new addons are introduced ("remake-addonlist.pl"): Script to update the addons list when new addons are introduced ("remake-addonlist.pl"):
Line 73: Line 110:
 print "Wrote $n addons.\n"; print "Wrote $n addons.\n";
 </code> </code>
- 
left_4_dead_2_server_quick_start.txt · Last modified: 2012/07/15 20:33 by tkbletsc

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki