jshagbl 发表于 2005-5-21 16:08:34

【求助】怎么添加机器人和修改服务器名称?

闪闪老兄你好,请你帮我添加修改一下看看怎样让它自动更换地图,先谢谢拉? :burn:
_________________________________________________________________
"Server"
{
        "MaxPlayers"                "24"
        "RconPassword"                "j926z1...."
        "ServerName"                "Counter-Strike: Source dedicated server"
        "MOD"                "cstrike"
        "Map"                "de_dust"
        "Secure"                "1"
        "Network"                "0"
        "Port"                "27015"
}

金闪闪 发表于 2005-5-21 16:58:12

你这内容是server.vdf文件的。
这个文件对于Source Dedicated Server来说,只是个GUI的界面参数。

真正起到控制服务器运行的是server.cfg文件。
我不止一次地告诉你,你必须把一个server.cfg文件放在cstrike\cfg目录下,而你从来就没把这事做好。

方法和步骤都在帖,为何你总是做不来?:confused:

jshagbl 发表于 2005-5-21 17:23:02

闪闪,是用下面的文件做的吗?没有这个cstrike\cfg目录______________________________________
// CS:S Server Config file
// mostly the default settings with rate limits set to prevent massive lag
// CS:S的服务器基本配置文件
// 金闪闪(CHM)@DT

echo =========================
echo executing CS:S Server.cfg
echo =========================

hostname "Counter-Strike:Source Dedicated Server!"

// set to force players to respawn after death
mp_forcerespawn 1

// enable player footstep sounds
mp_footsteps 1
sv_footsteps 1

// Bounce multiplier for when physically simulated objects collide with other objects.
sv_bounce 0

// enable flashlight
mp_flashlight 1

// enable autocrosshair (default is 1)
mp_autocrosshair 1

// allow bots
mp_allowNPCs 1

// world gravity (default 800)
sv_gravity 800

// world friction (default 4)
sv_friction 4

// world water friction (default 1)
sv_waterfriction 1

// Minimum stopping speed when on ground
sv_stopspeed 75

// spectator settings
sv_noclipaccelerate 5
sv_noclipspeed 5
sv_specaccelerate 5
sv_specspeed 3
sv_specnoclip 1

// Misc settings (leave as is)
mp_teamplay 0
mp_fraglimit 0
mp_falldamage 0
mp_weaponstay 0

// Allow team show mode (default 0, 1 and 2)
mp_forcecamera 0
// Allow friendlyfire to hurt teammates (default 0)
mp_friendlyfire 0

// player movement acceleration rates (default 5, 10 and 10)
sv_accelerate 5
sv_airaccelerate 10
sv_wateraccelerate 10

// max player speed (default 320)
sv_maxspeed 320

// misc physics settings, leave them as-is
sv_rollspeed 200
sv_rollangle 0

// player steps and stepsize - dont mess with this (default 18)
sv_stepsize 18

// misc default vehicle settings (leave these alone)
//r_VehicleViewDampen 1
//r_JeepViewDampenFreq 7.0
//r_JeepViewDampenDamp 1.0
//r_JeepViewZHeight 10.0
//r_AirboatViewDampenFreq 7.0
//r_AirboatViewDampenDamp 1.0
//r_AirboatViewZHeight 0.0

// teamplay talk all (1) or team only (0)
sv_alltalk 0

// enable voice on server
sv_voiceenable 1

// disable pause on server (set this to 0 always)
sv_pausable 0

// disable cheats (set this to 0 always)
sv_cheats 0

// disable Valve Anti-Cheat (default 0)
sv_secure 0

// teamserver coop (default 0)
coop 0

// deathmatch - set this to 1
deathmatch 1

// allow players to upload sprays (default 1)
sv_allowupload 1

// allow sprays and map content to be downloaded (default 1)
sv_allowdownload 1

// how often players can spray tags (default 20)
decalfrequency 30

// fast http download url address
//sv_downloadurl

// Enable instanced baselines - Saves network overhead
sv_instancebaselines 1

//Force server side preloading (default 0)
sv_forcepreload 1

// set timelimit before map change
mp_timelimit 45

// How many minutes each round takes (min. 1.000000 max. 9.000000)
mp_roundtime 5

// Max bandwidth rate allowed on server, 0 == unlimited
sv_maxrate 9999

// Min bandwidth rate allowed on server, 0 == unlimited
sv_minrate 5000

// Maximum updates per second that the server will allow (default 60)
sv_maxupdaterate 30

// Minimum updates per second that the server will allow (default 10)
sv_minupdaterate 10

// Maximum lag compensation in seconds (min. 0.000000 max. 1.000000)
sv_maxunlag 1

// Maximum speed any ballistically moving object is allowed to attain per axis (default 3500)
sv_maxvelocity 3000

// rcon failure settings
//Number of minutes to ban users who fail rcon authentication
sv_rcon_banpenalty 0

//Number of minutes to ban users who fail rcon authentication
sv_rcon_maxfailures 10

// Number of times a user can fail rcon authentication in sv_rcon_minfailuretime before being banned
sv_rcon_minfailures 5

// Number of seconds to track failed rcon authentications
sv_rcon_minfailuretime 30

//The region of the world to report this server in (255 = world)
// 4 是亚洲区
sv_region 4

// gather server statistics
sv_stats 1

//After this many seconds without a message from a client, the client is dropped (default 65)
sv_timeout 65

//Enables player lag compensation
sv_unlag 1

//Specifies which voice codec DLL to use in a game. Set to the name of the DLL without the extension
sv_voicecodec vaudio_miles

//enable SourceTV on this server
tv_enable 1
tv_delay 0
tv_delaymapchange 0
tv_status 0

//Enable old style server queries
sv_enableoldqueries 1

//toggles whether the server allows spectator mode or not
mp_allowspectators 1

// If set to 1 then Server is a lan server ( no heartbeat, no authentication, no non-class C addresses, 9999.0 rate, etc. )
// set to 0 for internet server
sv_lan 0

// Server contact name / url / email
sv_contact ""

// server password for players to join (default "")
//sv_password

// execute SteamID based ban list
exec banned_user.cfg

// execute IP based ban list
exec banned_ip.cfg

// Set packet filtering by IP mode (default 1)
sv_filterban 1

// log all bans in logfile
sv_logbans 1

// here are a few useful alias
//exec alias.cfg
//exec rate.cfg

// enable logging and start log file
sv_logfile 1
log on
mp_logdetail 0

_________________________________________________________________

金闪闪 发表于 2005-5-21 21:49:17

没有这cfg目录,为何你不会自己建立呢?难道你连XP的新建目录都不会么?:confused:

jshagbl 发表于 2005-5-22 14:53:17

好的,我先试试,谢谢拉 :D

jshagbl 发表于 2005-5-23 09:26:15

金闪闪,我建的服务器还是不能自动更换地图,是按照你的方法建了CFG文件夹做的 :sweat: ,在控制台里有名为:SorceTV 的机器人,随便请问怎样将它唤醒啊?

金闪闪 发表于 2005-5-23 10:05:12

你自己进入游戏,BOT就和你单挑了。

jshagbl 发表于 2005-5-23 10:33:26

我当然是在游戏里面的,可是它在控制台里总是显示o spectators未连接状态的呀? :confused:

金闪闪 发表于 2005-5-23 11:14:21

帖上你服务器的图。参考下。
:D

金闪闪 发表于 2005-5-23 11:28:10

你看看人家的服务器,里面都是BOT对练。
211.100.20.2:27015
页: [1] 2 3
查看完整版本: 【求助】怎么添加机器人和修改服务器名称?