视频教程:Contagion传染病服务器基本配置修改教程
1.D:\steamcmd\steamapps\common\Contagion\contagion\cfg\server.cfg
文件:server.cfg
官方默认文本:
- //----------------------------
- // Base Settings
- //----------------------------
- // Server name
- // desc: Hostname for the server.
- // default: "Contagion"
- hostname "XiongTianQi.CN Qun:84402345"
- Difficulty 4
- // Cheats
- // desc: Allows cheats on the server.
- // hint: This will disable stats & achievements
- // default: 0
- sv_cheats 0
- // Password
- // desc: Sets a password for the server.
- // default: ""
- sv_password ""
- // Rcon Password
- // desc: Remote console password.
- // default: ""
- rcon_password ""
- // All Talk
- // desc: Players can hear all other players, no team restrictions. Valid options are:
- // 0 = Off
- // 1 = On and cannot see mic icon above enemy heads.
- // 2 = On and can see mic icons above enemy heads.
- // default: 0
- sv_alltalk 0
- //----------------------------
- // Contagion Server Settings
- //----------------------------
- // Zombie AI only
- // desc: No player zombies are allowed on this server. Once you die, you spectate.
- // 0 = Disabled 0
- // 0 = Enabled 0
- // default: 0
- cg_zombie_ai_only 0
- // No zombie infection
- // desc: Is becoming infected disabled on this server
- // 0 = Enabled 0
- // 0 = Disabled 1
- // default: 0
- cg_infection_disabled 0
- // AFK timeout
- // desc: Humans idle longer than this many seconds will be forced to spectator mode
- // default: 99945
- sv_afk_timeout 180
- //----------------------------
- // Server Protection and Stability
- //----------------------------
- // Max Queries per second
- // desc: Maximum queries per second to respond to from a single IP address.
- // default: 3
- sv_max_queries_sec 1
- // Max Queries per second (Global)
- // desc: Maximum queries per second to respond to from anywhere.
- // default: 60
- sv_max_queries_sec_global 20
- // Allow file downloading
- // desc: Allow clients to download files from the server (ie: maps, textures, etc.)
- // Do not turn this off if you are letting users download files directly from your server!
- // 0 = Off
- // 1 = On
- // default: 0
- sv_allowdownload 0
- // Download filesize
- net_maxfilesize 64
- // Misc ip/id
- writeip
- writeid
- // Log server information in the log file.
- sv_logfile 0
复制代码
翻译文本
- //----------------------------
- // Base Settings 基本设置
- //----------------------------
- // Server name 服务器名字
- // desc: Hostname for the server. 为服务器设置名字
- // default: "Contagion" 默认名字
- hostname "XiongTianQi.CN Qun:84402345"
- // Cheats 作弊
- // desc: Allows cheats on the server. 允许服务器作弊
- // hint: This will disable stats & achievements 开启作弊将禁用统计和成就
- // default: 0 默认关闭作弊
- sv_cheats 0
- // Password 密码
- // desc: Sets a password for the server. 设置服务器进入密码
- // default: "" 默认留空,则不需要输入密码
- sv_password ""
- // Rcon Password 远程后台密码
- // desc: Remote console password. 预留控制密码,9位数
- // default: "" 默认无 一定要设置例子:xiongtianqi.cn
- rcon_password ""
- // All Talk 所有人语音聊天开关
- // desc: Players can hear all other players, no team restrictions. Valid options are: 玩家可以听到其他人声音
- // 0 = Off 关 玩家看不到任何图标
- // 1 = On and cannot see mic icon above enemy heads. 玩家看不到感染者玩家头顶聊天图标
- // 2 = On and can see mic icons above enemy heads. 玩家可以看到感染者玩家头顶图标
- // default: 0
- sv_alltalk 0
- //----------------------------
- // Contagion Server Settings 服务器设置
- //----------------------------
- // Zombie AI only 唯一AI丧尸设置
- // desc: No player zombies are allowed on this server. Once you die, you spectate. 此服务器不允许出现玩家丧尸,死后就变小强
- // 0 = Disabled 0关闭
- // 0 = Enabled 0开启??? 这里是默认的,按道理应该1是开启,我猜测的,没实测.
- // default: 0 默认0关闭
- cg_zombie_ai_only 0
- // No zombie infection 没有丧尸感染
- // desc: Is becoming infected disabled on this server? 这台服务器禁用感染功能,玩家不会被感染成丧尸
- // 0 = Enabled 0??应该是?开启?
- // 0 = Disabled 1?? 应该是关闭?? 如果默认是开启,那可能1就是关闭,官方的配置文件默认的有问题.
- // default: 0 默认是?不知道开启还是关闭,需要实测.
- cg_infection_disabled 0
- // AFK timeout 挂机超时
- // desc: Humans idle longer than this many seconds will be forced to spectator mode 玩家挂机超过这个时间就会被强制成旁观者
- // default: 99945 默认是99945秒
- sv_afk_timeout 180
- //----------------------------
- // Server Protection and Stability 服务器保护及稳定性设置
- //----------------------------
- // Max Queries per second 每秒最大端口查询
- // desc: Maximum queries per second to respond to from a single IP address.设置一个IP每秒能搜索你服务器多少次,这是防端口攻击的保护.
- // default: 3 默认是一个IP一秒钟内只能搜索到你3次
- sv_max_queries_sec 1
- // Max Queries per second (Global) 每秒最大查询数(全局)
- // desc: Maximum queries per second to respond to from anywhere. 每秒可从任何位置响应的最大查询数,意思就是你1秒钟只能被60个人同时搜索
- // default: 60 默认是每秒60次
- sv_max_queries_sec_global 20
- // Allow file downloading 允许从服务器下载
- // desc: Allow clients to download files from the server (ie: maps, textures, etc.) 允许客户端从服务器下载文件(例如:地图、纹理等)
- // NOTE: This does not affect fast download if you have it set up, it keeps users from download files from the server. 这不会影响快速下载。如果您已经设置了快速下载,它可以防止用户从服务器下载文件。
- // Do not turn this off if you are letting users download files directly from your server! 如果您允许用户直接从服务器下载文件,请不要关闭此功能!
- // 0 = Off 关闭
- // 1 = On 开启
- // default: 0 默认是关闭
- sv_allowdownload 0
- // Download filesize 下载文件大小
- net_maxfilesize 64
- // Misc ip/id 写入IP或ID的功能
- writeip
- writeid
- // Log server information in the log file. 在日志文件中记录服务器信息。
- sv_logfile 0
复制代码
2.复制并保存下面的内容到:D:\steamcmd\steamapps\common\Contagion\2.bat(如果没有2.bat请自行创建)然后运行2.bat
- @echo off
- start contagionds.exe -game contagion -console -dedicated -insecure +map ce_roanokepd -ip 0.0.0.0 -port 27015
复制代码 官方参数查询:点击查看
可以额外添加的命令参数:
- // ********* RCON设置 *************
- rcon_password "" // 重要的是你设置了这个,否则其他人可以远程控制你的服务器!!!
- sv_rcon_banpenalty 15 //禁止未通过rcon身份验证的用户的分钟数
- sv_rcon_log 1 //启用/禁用rcon日志记录。
- sv_rcon_maxfailures 3 //在被禁止之前,用户无法通过rcon身份验证的最大次数
- sv_rcon_minfailures 5 //在被禁止之前,用户在sv_rcon_minfailuretime中无法通过rcon身份验证的次数
- sv_rcon_minfailuretime 10 //跟踪失败的rcon身份验证的秒数
- // ************************************
- //Server password. Uncomment to use and set a password.
- //sv_password
- // 区域-设置您的服务器所在的大厅。您需要将其设置为离服务器最近的位置
- //--> 东海岸 - sv_region 0
- //--> 西海岸 - sv_region 1
- //--> 南美洲 - sv_region 2
- //--> 欧洲 - sv_region 3
- //--> 亚洲 - sv_region 4
- //--> 澳大利亚 - sv_region 5
- //--> 中东 - sv_region 6
- //--> 非洲 - sv_region 7
- //--> 世界 - sv_region 255
- sv_region 255
- // 日志设置
- sv_logfile 1 // 允许记录到文件
- sv_logbans 1 // 日志禁令与否?
- sv_logecho 1 // 将日志消息回送到服务器窗口
- sv_log_onefile 0 // 维护一个日志文件还是将其拆分为多个?
- // ************* 速率和网络设置 *************
- sv_minrate 30000 // 允许客户端设置(从而接收)的最小千位
- sv_maxrate 30000 // 发送到各个已连接客户端的最大千位
- sv_lan 0 // 服务器是局域网还是互联网。
- sv_mincmdrate 30 //最小cmdrate速度
- sv_maxcmdrate 33 //最大cmdrate速度
- hostip XXX.XXX.XXX.XXX // 服务器绑定的IP
- // ************* 服务器设置 **************
- sv_voiceenable 1 // 服务器开启steam内置语音
- sv_alltalk 0 // 人类玩家和感染者玩家是否可以沟通
- // sv_contact // 在服务器信息上留下管理员邮件
- sv_cheats 0 // 允许服务器作弊,不建议用
- // *************** 回合和游戏设置 ************
- // mp_roundlimit X //最大回合数
- // mp_timelimit XX //每张地图的游戏时间
- Difficulty 3 // 0 (简单), 1 (普通), 2 (困难), 3 (专家), 4 (噩梦)
- // ************************************
- // Execute ban files
- exec banned_user.cfg
- exec banned_ip.cfg
- writeid
- writeip
复制代码 官方参数查询:点击查看
继续补充
- z_hit_from_behind_factor 0.6 //僵尸从背后攻击的倍数
- cx_spawn_new_player_extreme 4 //当有幸存者玩家加入时,要添加到全局产生成表中的僵尸数量。
- cx_spawn_new_area_extreme 3 //当一个新区域激活时,要添加到全局生成列表中的僵尸数量。
- cx_zombie_maxdist 2096 //从提取区域到尝试繁殖僵尸的最大距离。
- cont_zombie_ai_grapple 1 //:启用或禁用AI抓斗。(仅适用于极端和较低的困难)
- cont_zombie_ai_grapple_chance_extreme 55 //格斗机会百分比。
- cx_spawn_area_delay 5 延迟额外的僵尸生成时间。
复制代码
|