Counter-Strike 架設伺服器教學 (WinXP) - Steam

Table of Contents

http://storefront.steampowered.com/download/hldsupdatetool.exe

首先先下載hlds

之後安裝到自己想要的地方

先以C:\HLServer為例

安裝結束之後到開始->執行->輸入cmd後按確定

: 或到附屬應用程式打開命令提示字元

cd C:\HLServer

HldsUpdateTool.exe -command update -game cstrike -dir .

: 如果想要安裝在別的資料夾 把 "-dir ." 改成 "-dir C:\xxx\xxx" 即可

下載完之後就可以開啟伺服器了

: C:\HLServer\hlds.exe

但通常我不會使用這個介面開啟伺服器

首先打開記事本 輸入:
D:
cd D:\Server\HLServer
start hlds.exe -game cstrike -console +maxplayers 32 +map de_dust2 -port 27015


-console 開啟文字模式

-game cstrike 開啟cs伺服器

+maxplayers 32 伺服器最大人數

+map de_dust2 換地圖到de_dust2

: 意思就是伺服器開啟之後的第一張地圖

-ip 140.122.222.222 指定hlds對外的ip 如果是只有一個實體ip就不用加

-port 27015 port..

-zone 4096 設定文字緩衝區的大小 其實我不太清楚...

-heapsize 512000 指定hlds使用記憶體的大小 沒設定就由hlds決定

其實還可以加入很多指令 例如+mp_timelimit 30 , +mp_maxrounds 12 ...等等

但這通常我們都會把他放在server.cfg內

打完之後另存新檔為hlds.bat

: 或者是直接建立hlds.exe的捷徑 並在路徑後面加入那些指令也可..

把hlds.bat打開之後就是一個乾淨的cs server了

: motd.txt 為玩家進入server之後 會出現的框框

--

All Comments

Selena avatarSelena2008-08-26
這個server架起來沒steam不能打是嗎?
Mary avatarMary2008-08-29
以版上不能討論盜版的規定來說,沒steam的確不能打...
Tristan Cohan avatarTristan Cohan2008-08-29
不錯 我可以練習架架看 XD
Valerie avatarValerie2008-09-01
很受用的資訊,收下了謝謝。