zjbopp 发表于 2004-12-21 13:54:44

CSS服务器(控制台模式)架设详细教程

1.下载安装HLDSUpdatetool,安装后在桌面建立快捷方式.

2.建立steam帐号,有的话就不用建了,格式:hldsupdatetool -command create -username dt -email 123@163.net -password 123 -question "123" -answer "234"

3.在硬盘上建立一个名为srcds文件夹,刚才建立成功的用户就可开始下载了,格式如下:hldsupdatetool -command update -game "Counter-Strike Source" -dir D:\srcds -username dt -password 123 -remember_password

4,下载完后执行文件在D:\srcds\srcds.exe,将srcds.exe发送桌面建立快捷方式,加上参数:-console -game cstrike +map de_dust +maxplayers 16 -autoupdate,端口不用加了,服务器会在自己寻找端口的了,27015开始自动找.

5.server.cfg在D:\srcds\cstrike\cfg\server.cfg里,大致和1.6一样,如下:


sv_lan 0
// contact & geo 0=US East coast, 1=US West coast, 2= South America,   3=Europe, 4=Asia, 5=Australia, 6=Middle East, 7=Africa and 255=world.
// Change the number to the region you live in!!!
sv_region 4
// Give your server a name here
hostname Put your Server Name here"
// Rcon password is used to give your server orders by using console, so think of a good password
rcon_password "Putyourrconpasswordhere"
// If you want your server to be private, fill in a password and delete the // in front of sv_password
// sv_password "Putyourprivatepasswordhere"


// *********** GAME SETTINGS, YOU CAN CHANGE THESE THE WAY YOU LIKE IT ***************
// Sets the amount of minutes players are able to buy
mp_buytime 1
// Sets the amount of starting money, max=16000
mp_startmoney 8000
// Sets the amount of secs before C4 explodes
mp_c4timer 35
// 1 enables flashlight, 0 disables it
mp_flashlight 1
// 1 enables hearing footsteps, 0 disables it
mp_footsteps 1
// 1 enables falling damage, 0 disables it
mp_falldamage 1
// Sets the number of hostages a player can kill before they are booted from the server. 0 is disabled
mp_hostagepenalty 0

// TIME, WIN & ROUND SETTINGS
// Timelimit is how many minutes for a map.
mp_timelimit 45
// When a team reaches this amount of wins (before the timelimit or the roundlimit is
// reached), it has won the map. 0=disabled
mp_winlimit 14
// When two teams finish playing this amount of rounds (before the timelimit or the
// winlimit is reached) the map ends. 0=disabled
mp_maxrounds 21
// Round time, in minutes. After this amount of minutes has passed,
// a scenario win is awarded. Min 1, Max 9
mp_roundtime 3
// Sets the seconds before players can move in the beginning of a round
mp_freezetime 4

// TEAMBALANCING
// Toggles the forcing of clients to join teams to make it balanced. 1=on and 0=off
mp_autoteambalance 1
// Sets the maximum number of players that one team can have more than the
// other team. Use a setting of '0' to completely disable the team limiting.
mp_limitteams 1

// FF & TEAMKILL & IDLE
// Toggles friendly fire 1=on and 0=off
mp_friendlyfire 0
// Toggles the forcing of a player to sit out the next round if he
// has just killed a teammate. 1=on and 0=off
mp_tkpunish 1
// Kick idle/team-killing players. 1=on and 0=off
mp_autokick 1
// Kick players who team-kill within this many seconds of a round restart.
mp_spawnprotectiontime 10
// After this many seconds without a message from a client, the client is dropped
sv_timeout 40

// SPECTATORS
// Restricts spectator modes for dead players. 1=on and 0=off
mp_forcecamera 1
// toggles whether the server allows spectator mode or not. 1=on and 0=off
mp_allowspectators 1
// fade a player's screen to black when he dies. 1=on and 0=off
mp_fadetoblack 0


// ************ IF YOU HAVE LAG ISSUES YOU CAN CHANGE THESE SETTINGS, IF YOU KNOW WHAT YOU ARE DOING*****************
// SET RATES
// Max bandwidth rate allowed on server, 0=unlimited, max=20000
sv_maxrate 8000
// Min bandwidth rate allowed on server, 0=unlimited, 4000=good to keep dialup gamers off the server
sv_minrate 1000
// Maximum updates per second that the server will allow, increasing this will take more cpu power, 100 is max
sv_maxupdaterate 30
// Frame rate limiter, higher then 100 not needed, unless shots are not registered well
fps_max 100

// DOWNLOAD
// Allow clients to download files
sv_allowdownload 1
// Allow clients to upload customizations files
sv_allowupload 1


// *********** IF YOU KNOW WHAT YOU ARE DOING YOU CAN CHANGE THESE SETTINGS AS WELL *************
// SERVER LOGGING
log 1
mp_logfile 1
mp_logecho 0
// Specifies a logging level 0 to 15. Using 15 is max logging
log_level 0

// VOICE disabled, if you want VOICE enabled then change 0 into 1
sv_voiceenable 0

// CHEATS & autoaim off
sv_cheats 0
// disable clients' ability to pause the server
sv_pausable 0

// OTHER SETTINGS
// amount of seconds players can chat after the game is over
mp_chattime 10
// if not 0 then game will restart in the specified number of seconds
mp_restartgame 0

金闪闪 发表于 2004-12-21 16:24:31

现在的HldsUpdateTool是12.mst版本了。
如果你的附件不是这个版本,就要自己去升级了。 :43:

zjbopp 发表于 2004-12-21 18:18:01

不用的,它自己会升的,而且速度很快. :21:

BoeZombie 发表于 2004-12-21 19:03:45

我每次都把升完级后产生的.mst文件删了,这么做没关系吧!?:10:

因为我发现删了mst之后,再运行HldsUpdateTool也不会提示需要更新了。

金闪闪 发表于 2004-12-21 20:53:03

Post by BoeZombie
我每次都把升完级后产生的.mst文件删了,这么做没关系吧!?:10:

因为我发现删了mst之后,再运行HldsUpdateTool也不会提示需要更新了。
那个mst文件只是标示当前的版本,没有多大意义的。删除了没关系。 :43:

zjbopp 发表于 2004-12-22 08:25:23

不好意思,应该在硬盘上建立一个名为SourceDS文件夹,执行文件在D:\SourceDS下

zjbopp 发表于 2004-12-22 12:04:24

已升级完,现在可以指定断口了,和1.6一样了,我的参数是-console -game cstrike +map de_dust2 +maxplayers 24 -autoupdate +port 27015

服务器IP:219.129.21.138:27015
要新版的HLSW才能看的到和远程操作

undoer 发表于 2004-12-22 17:23:23

Post by zjbopp
已升级完,现在可以指定断口了,和1.6一样了,我的参数是-console -game cstrike +map de_dust2 +maxplayers 24 -autoupdate +port 27015

服务器IP:219.129.21.138:27015
要新版的HLSW才能看的到和远程操作


No Steam版吗?

金闪闪 发表于 2004-12-22 17:46:59

Post by undoer
No Steam版吗?
目前好像没non-steam的。 :24:

zjbopp 发表于 2004-12-22 20:35:24

是没有,大家都等到奥美的正版.
页: [1] 2
查看完整版本: CSS服务器(控制台模式)架设详细教程