这篇文章主要来讲SL服务器的服务端配置。一个好的配置可以使得你的服务器更有可玩性,有别于其他服务器。推荐雨云,价格实惠,稳定高速,通过雨云 - 新一代云服务提供商 注册可以获得优惠哦!
Step-1
你首先需要来到这个路径
\AppData\Roaming\SCP Secret Laboratory\config
这个文件夹包含了你各个端口上的SL服务器的配置。这里拿本地服务器举例了
第一个文件config_gameplay.txt是接下来重点讲的文件,算是最重要的文件了。
第二个config_remoteadmin.txt是配置你服务器管理员的
第三个不常用,
第四个Ipbans.txt是看你服务器封禁了哪些IP
第六个文件不常用
第七个ScpTickets.txt是管理SCP票数的,因为本人也不是很明白这个文件的配置规则,就不多说了
第八个UserIdBans.txt就是字面意思封禁用户ID,不常用
第九个和第十个都不太常用,这里不多讲
接下来重点讲config_gameplay.txt和config_remoteadmin.txt
Step-2
Config_gameplay.txt配置部分
server_name: #这玩意如果你要上公共服务器列表,这玩意必须配置,可以整彩色字体的,这里给个事例就明白怎么弄得了 <color=#9FFCFD>XXX服务器</color>,换行是/n,这里给个具体事例 :222 /n 333的效果是
222
333
#default - uses server_name
player_list_title: default #玩家按N打开的玩家列表上面显示的字,也可以用<color>
player_list_title_rate: default
serverinfo_pastebin_id: #服务器的pastebinID,显示服务器规则的那部分,自己去pastebin上写一个然后把最后8位复制下来,例如7wV681fT
server_ip: auto #正常情况不用配置,如果有多个IP,这里填写你想上列表的IP
max_players: 20 #服务器所能进入的最大玩家数量
server_tickrate: 60 #服务器tick,不建议修改
use_reserved_slots: true
lobby_waiting_time: default #每个回合开始前的等待时间
use_native_sockets: true
ipv4_bind_ip: 0.0.0.0
ipv6_bind_ip: ::
contact_email: default #服主的联系邮箱,上列表给NW写邮件的时候pastebin和这里的邮箱要一样!
#Spawn settings
minimum_MTF_time_to_spawn: 280 #小支援九尾生成时间
maximum_MTF_time_to_spawn: 350 #九尾生成时间
maximum_MTF_respawn_amount: 15 #九尾重生时间
maximum_CI_respawn_amount: 15
priority_mtf_respawn: true
use_crypto_rng: false
team_respawn_queue: default
late_join_time: 0
这边省略一点
## Stamina system settings ##
# The percentage of stamina used per second while sprinting.
# 0.05 = 5%, 0.33 = 33%, etc.
# NOTE: Stamina is currently only utilized on humans.
# 0 to disable, but this *will* cause weirdness with status effects
# and other mechanics, so we recommend keeping it on!
stamina_balance_use: 0 #0是无限体力,上面的百分比是体力消耗的百分比,你这里调的越多,人物的体力就越少
#Misc gameplay settings
intercom_cooldown: 120 #广播室广播完一次后的冷却时间
intercom_max_speech_time: 20 #广播室的最大广播时间
auto_round_restart_time: 10 #回合结束后自动重启时间
friendly_fire: false #友伤是否开启(开启true,关闭false)
friendly_fire_multiplier: 0.4
warhead_tminus_start_duration: 90 #核弹启动后将于多少秒后爆炸
lock_gates_on_countdown: true #在倒计时开始后锁定大门
isolate_zones_on_countdown: false #在倒计时开启后隔离区域
open_doors_on_countdown: true #在倒计时开启后保持所有门打开
keep_items_after_escaping: true #在玩家逃离后仍保留背包中所有物品
allow_playing_as_tutorial: true #允许以教程角色游玩
disable_decontamination: false #禁用轻收容区净化
096_destroy_locked_doors: true #SCP-096是否可以破坏被锁定的门
no_holidays: false #没有假日活动
allow_disarmed_interaction: false #允许绑人(解除武装)
914_mode: default #SCP-914加工模式
sinkhole_slow_amount: 30 #老头的坑
sinkhole_spawn_chance: 0
disconnect_drop: true
end_round_on_one_player: false #在服务器仅剩1名玩家时直接结束回合
cuffed_escapee_change_team: true #被绑住的玩家在逃离后更换至对立的队伍
pd_exit_count: 2
#How many seconds someone is AFK sitting in their spawn location before they are kicked. Set to 0 or lower to disable. (SCP-079默认比设置的AFK踢出时间多13秒)
afk_time: 90 #挂机踢出时间
constantly_check_afk: false
afk_kick_message: AFK #玩家被AFK系统踢出后显示的原因
#Spawn Protect settings
spawn_protect_enabled: default #出生保护启用
spawn_protect_time: default #出生保护时间
spawn_protect_can_shoot: default #在出生保护期间允许开枪
spawn_protect_prevent_all: default
spawn_protect_team: [1, 2]
#Auto Event settings #系统事件设置
auto_warhead_start_minutes: 0 #系统核弹开启时间
auto_warhead_lock: true #系统核弹开启时将控制台锁定不可取消
auto_warhead_broadcast_enabled: true #系统核弹开启时启用全服文字广播
auto_warhead_broadcast_message: Alpha Warhead is being automatically detonated and cannot be cancelled. #系统核弹开启时全服文字广播内容
auto_warhead_broadcast_time: 10 #全服文字广播时间
auto_warhead_detonate_broadcast: Automatic Alpha Warhead has been detonated. #系统核弹爆炸时的全服文字广播
auto_warhead_detonate_broadcast_time: 10 #系统核弹爆炸时全服文字广播时间
auto_decon_broadcast_enabled: false #轻收容区净化全服文字广播是否开启
auto_decon_broadcast_message: Light Containment Zone is now decontaminated #轻收容区净化进行时全服文字广播内容
auto_decon_broadcast_time: 10 #轻收容区净化进行时全服文字广播时间
Config_remoteadmin.txt配置部分将会在P2讲解
P1到此结束,本文允许转载,转载须注明作者及出处!