玩樂天堂 pockyland

 找回密碼
 註冊
搜索
熱搜: lego MOC 聚會 比賽
查看: 3750|回復: 13
打印 上一主題 下一主題

準備開始架設LD4

[複製鏈接]
跳轉到指定樓層
1篇
發表於 2009-3-2 00:54:03 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
http://forums.steampowered.com/forums/showthread.php?t=752866
Install Tool


Left 4 Dead servers are more or less the same as any other source basedgame server, Firstly you will need to download the HLDSUpdateTool from here.



How to download the server files


HldsUpdateTool.exe -command update -game left4dead -dir c:\serverpath

or

HldsUpdateTool.exe -command update -game left4dead -dir .
to install to the present directory



General info


openserverbrowser - in the console of the L4D client - all games are listed under the custom tab


Banner

File to edit - host.txt
Maximum Dimensions  - 500 x 100
Make one line in the txt file :
http link to banner image
example - http://my.example.com/banner.png

MOTD

File to edit - motd.txt
standard motd, same as any other server
or you can have an image as with the host.txt file, using the same method.



The server executable


You will find an exe file in the L4D directory labelled srcds.exe,this is the server executable and the program you need to run to startthe server but you need to specify some options after the exe.

i.e. :

srcds.exe -console -game left4dead-maxplayers 8 -autoupdate +ip 99.99.99.99:99999 -port 27500 +sv_lan 0+map l4d_vs_farm01_hilltop

Here are explanations of the different commandline options :
-console : This will display a console that you can type commands into
-game left4dead : This specifies the type of server to run, you can use it for CSS, DODS, etc
-maxplayers 8: This will specify the max number of players the server will allow, setting it to 8 should allow you to use versus mode
-autoupdate : This will make the server check and update to the latest version when you launch it
+ip 99.99.99.99 : This will specify the IP address for the server to run on, this proves useful for running multiple servers on one computer
-port 27500 : This will specify the port for the server to run on
+sv_lan 0 : This will force the server to run on the internet instead of just on a lan
+map l4d_vs_farm01_hilltop : This will specify the map to start the server with, you must add this to the commandline for the server to start



Different types of servers you can run


Public Server

Public Server With Steamgroup Enabled
- player is a specifid steam group will be able to connect to the server

Private Server With Steamgroup and Search Key Option




Public Server
              Quote:
        
                                                        
commandline options
      

-console -game left4dead -maxplayers 4 -autoupdate +map l4d_hospital01_apartment +ip xx.xx.xx.xx -port 27015 -nohltv +sv_lan 0

server.cfg contents

// server name
hostname    myserver

// password for rcon
rcon_password    "rcon_pass"

// Difficulty of the current game  (easy, normal, hard, impossible)
z_difficulty    normal                                       


Public Server With Steamgroup Enabled

        Quote:
        
                                                        
     commandline options      

-console -game left4dead -maxplayers 4 -autoupdate +map l4d_hospital01_apartment +ip xx.xx.xx.xx -port 27015 -nohltv +sv_lan 0

server.cfg contents


// server name
hostname    myserver

// password for rcon
rcon_password    "rcon_pass"

// Difficulty of the current game  (easy, normal, hard, impossible)
z_difficulty    normal

// this will allow your server to be listed in the server browser
setmaster    add 68.142.72.250:27011
setmaster    add 72.165.61.189:27011

// steam group that has access to the server
sv_steamgroup 12345                                       


Private Server With Steamgroup and Search Key Option


        Quote:
        
                                                        
     commandline options      

-console -game left4dead -maxplayers 4 -autoupdate +mapl4d_hospital01_apartment +ip xx.xx.xx.xx -port 27015 -nohltv +sv_lan 0-nomaster


server.cfg contents

// server name
hostname    myserver

// password for rcon
rcon_password    "rcon_pass"

// password for server
sv_password    private_pass

// Difficulty of the current game  (easy, normal, hard, impossible)
z_difficulty    normal

// this will allows you to find a server through matchmaking with a specific search string
sv_search_key    unique_key_for_server

// steam group that has access to the server
sv_steamgroup 12345

// only for members of certain steam group
sv_steamgroup_exclusive    1                                       



VS - CO-OP


L4D offers two gameplay modes.

VS - 4 on 4 survivor versus zombies.. human players on both sides.

CO-OP - 4 survivors fight together through the single player maps.  4 human players vs AI

The style of play is determined by the type of map loaded. themaxplayers startup option does not appear to have any affect on the maxnumber of players.

l4d_hospital01_apartment - coop map 4 players max

l4d_vs_farm01_hilltop - versus map 8 players max


Also this CVAR controls the game server mode

"director_no_human_zombies" = "1"
- Prevents humans from joining the zombie team


Notes


sv_search_key - lets you set up a server that can be found viamatchmaking, but only by people with a matching sv_search_key. Thisallows you to set up a server you or your friends can play on and stilluse the existing matchmaking lobby to set up avatars, difficulty, map,etc.

To use the sv_search_key here is what you do.

1.) Set sv_search_key on your server.

ex. sv_search_key myserver

2.) Have the host client (the one who will be creating the lobby) set the
same sv_search_key in their console.

3.) Host client should now create the lobby.

4.) Other clients connect. Once the game is ready to be started, have the
host hit start game. Now you should join your server as long as there is a
server available with that search key.


sv_steamgroup - takes the Steam group number (which is nowvisible on the group's administrative page). The server will still bepart of matchmaking, but users that are in that group will be able tobrowse directly to it from the main menu. Also, if this value is set,there will be a button near the message of the day that allows users togo directly to that group's page. This allows them to join that groupif they like, and then be able to browse back to it in the future.


Please let me know if you spot any errors, this is by no means adefinitive guide. I am just trying to compile all the info I have foundinto one spot. If you have anything to add or change please feel freeto suggest accordingly.

評分

參與人數 1PL金幣 +10 收起 理由
pocky + 10 好棒作品,值得收藏

查看全部評分

2篇
 樓主| 發表於 2009-3-2 00:58:28 | 只看該作者
1.
首先要去下載HLDSUpdateTool
官方下載點
把下載好的HLDSUpdateTool 安裝到你要裝的資料夾
2.
開始->執行->輸入cmd按enter
接下來把剛安裝好的HldsUpdateTool.exe拖到那個黑色視窗後面再輸入
-command update -game left4dead -dir c:\伺服器目錄

例如這樣:
HldsUpdateTool.exe -command update -game left4dead -dir c:\server

等他下載完

3.
下載好之後在目錄下
把scard.exe右鍵新增捷徑
在目標最後面加上
-console -game left4dead -maxplayers 8 -autoupdate +ip 99.99.99.99 -port 27015 +sv_lan 0 +map l4d_vs_farm01_hilltop

其中
-maxplayers代表最大8人
-autoupdate自動更新最新版本
+ip 這台伺服器的IP
-port 用的port
+map 啟動伺服器開始的地圖

4.
伺服器檔案
motd.txt 進入遊戲的那個公告畫面
host.txt 右上方那個伺服器提供者LOGO
mapcycle.txt 哪些地圖要循環(打完自動換關的地圖)
maplist.txt 地圖列表(ADM可以用指令換的地圖)
cfg目錄裡面新增一個server.cfg (把**之間的文字複製貼上server.cfg)

***********************
//伺服器名稱(不支援中文,xxxx改掉)
hostname xxxx
//管理員密碼(xxxx改掉)
rcon_password xxxx
//難度(easy, normal, hard, impossible)
z_difficulty hard
//加入伺服器列表(不要動)
setmaster add 68.142.72.250:27011
setmaster add 72.165.61.189:27011
//伺服器地區(4代表亞洲)
sv_region 4
//加入台灣伺服器群組
sv_steamgroup 600445
//加入台灣伺服器群組後否限制群組玩家才能進入(1是0否)
sv_steamgroup_exclusive 1
//是否不允許加入疆屍(0=對抗模式 ,1=coop模式)
"director_no_human_zombies" = "0"
**************************

以上檔案都設定好就來設定遊戲模式

l4d_hospital01_apartment - coop地圖最大支援到4人
l4d_vs_farm01_hilltop - 對抗地圖最大支援到8人(檔名有_vs_都是)

L4D的遊戲模式是依照地圖來決定
假設地圖名稱有_vs_,就代表那張地圖是對抗模式的
開對抗模式必須把server.cfg內的值
director_no_human_zombies值改為0
否則半夜人都走光了會發現變回coop模式(開coop模式請改1)

舉例: 假設要開對抗server
mapcycle.txt要改成

l4d_vs_farm01_hilltop
l4d_vs_farm02_traintunnel
l4d_vs_farm03_bridge
l4d_vs_farm04_barn
l4d_vs_farm05_cornfield
l4d_vs_hospital01_apartment
l4d_vs_hospital02_subway
l4d_vs_hospital03_sewers
l4d_vs_hospital04_interior
l4d_vs_hospital05_rooftop

PS.捷徑的+map 後面也要改vs的地圖

開coop模式的話一樣
只要把vs地圖去掉就好

假如有加入台灣伺服器群組(加入)
啟動後進入遊戲就會在右下方看到自己開的伺服器

附上steam的架設文章
http://forums.steampowered.com/forums/showthread.php?t=752866

L4D完整指令列表:
http://www.badongo.com/file/12173425

評分

參與人數 1PL金幣 +10 收起 理由
pocky + 10 好棒作品,值得收藏

查看全部評分

回復

使用道具 舉報

3篇
 樓主| 發表於 2009-3-2 00:59:26 | 只看該作者
回復

使用道具 舉報

4篇
發表於 2009-3-2 07:38:41 | 只看該作者
這下神可樂了 :58:
回復

使用道具 舉報

5篇
發表於 2009-3-2 10:59:16 | 只看該作者
支持一下   來給輝哥親一下  []a12]dsdf2//.,]'
回復

使用道具 舉報

6篇
 樓主| 發表於 2009-3-2 14:15:38 | 只看該作者
回復

使用道具 舉報

7篇
 樓主| 發表於 2009-3-2 19:10:42 | 只看該作者
openserverbrowser

重點
回復

使用道具 舉報

8篇
發表於 2009-3-3 18:51:29 | 只看該作者
maska那你趕快去買正版的~~我們來大戰
回復

使用道具 舉報

9篇
發表於 2009-3-3 19:03:35 | 只看該作者
看來又有一些人要開始沉迷鞭屍活動了~~[]a12]dsdf60//.,]'
回復

使用道具 舉報

10篇
發表於 2009-3-5 14:00:31 | 只看該作者
哈哈~~我都過完了.去年11月出的遊戲.打完了~~終於打完了!!
51的51.
maska架的.支持.支持一下唷~~
回復

使用道具 舉報

11篇
發表於 2009-3-5 21:33:15 | 只看該作者
沒錢買遊戲~[]a12]dsdf42//.,]'
精神上支持你們[]a12]dsdf49//.,]'
回復

使用道具 舉報

12篇
 樓主| 發表於 2009-4-1 15:05:51 | 只看該作者
  1. -------------------------------------------
  2. 密技......

  3. 先sv_cheats 1 打開 在打以下指令
  4. z_spawn witch 女巫
  5. z_spawn watch 殭屍
  6. z_spawn tank 坦克
  7. z_spawn boomer 胖子
  8. z_spawn hunter 獵人
  9. z_spawn smoker
  10. give autoshotgun 自動領取武器 (散彈槍)
  11. give hunting_rifle 自動領取武器 (狙擊槍)
  12. give rifle 自動領取武器 (M-16)
  13. give pipe_bomb 自動領取武器 (土製手榴彈)
  14. ENT_CREATE WEAPON_RIFLE (M-16)
  15. ENT_CREATE WEAPON_FIRST_AID_KIT (補品包)
  16. ENT_CREATE WEAPON_PAIN_PILLS (藥品)
  17. ENT_CREATE WEAPON_PIPE_BOMB (土製炸彈)
  18. ENT_CREATE WEAPON_MOLOTOV (汽油彈)
  19. ENT_CREATE WEAPON_PISTOL (手槍)
  20. ENT_CREATE WEAPON_AUTOSHOTGUN (連發散彈槍)
  21. ENT_CREATE WEAPON_HUNTING_RIFLE (狙擊槍)
  22. ENT_CREATE WEAPON_PUMPSHOTGUN (單發式散彈槍)
  23. ENT_CREATE WEAPON_SMG (烏茲衝鋒槍)
  24. ENT_CREATE WEAPON_AMMO_SPAWN (子彈)
  25. ENT_REMOVE (機器人不見)

  26. give gascan 大瓦斯桶
  27. give oxygentank 長型瓦斯桶
  28. give propanetank 汽油箱

  29. sv_infinite_ammo 1 不用換子彈 (子彈無限)
  30. SURVIVOR_CROUCH_SPEED 1000(蹲下移動速度變快)
複製代碼
回復

使用道具 舉報

13篇
發表於 2009-4-1 15:44:05 | 只看該作者
阿傑~~你太強了~~~~

小雨呀...
一套才8百多(上次帶便當去光華買),多吃幾碗泡麵就有了啦~:52:
回復

使用道具 舉報

14篇
發表於 2009-4-2 00:36:34 | 只看該作者
原帖由 maska 於 2009-4-1 15:05 發表
-------------------------------------------
密技......

先sv_cheats 1 打開 在打以下指令
z_spawn witch 女巫
z_spawn watch 殭屍
z_spawn tank 坦克
z_spawn boomer 胖子
z_spawn hunter 獵人
z_spawn smoker
g ...

抄下來  :35:
改天來虐待殭屍 :95:
回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

快速回復 返回頂部 返回列表