7 Days To Die七日杀游戏vps服务器配置需求,腾讯云轻量开服卡顿瞬移优化文件设置参数 steamcmd启动器教程用法
7 Days To Die七日杀游戏vps服务器配置需求,腾讯云轻量开服卡顿瞬移优化文件设置参数 steamcmd启动器教程用法系统需要使用Windows 2022
10人同时在线服推荐
2核心2G内存 40G固态硬盘 3M宽带(仅限新号首单新购62一年)
2核心4G内存 60G固态硬盘 5M宽带(仅限新号首单新购218一年)
2核心2G内存 50G固态硬盘 4M宽带(118一年)
32人同时在线服推荐
2核心8G内存 80G固态硬盘 7M宽带(100一个月)
100人同时在线服推荐
4核心16G内存 220G固态硬盘 14M宽带(330一个月)
限时特价购买:https://cloud.tencent.com/act/cps/redirect?redirect=36766&cps_key=e13a24941d2ca9b7a8079c76a22d1bf5
限时特价购买二:https://cloud.tencent.com/act/cps/redirect?redirect=5878&cps_key=e13a24941d2ca9b7a8079c76a22d1bf5
购买地址:https://cloud.tencent.com/act/cps/redirect?redirect=30206&cps_key=e13a24941d2ca9b7a8079c76a22d1bf5
续费折扣:https://cloud.tencent.com/act/cps/redirect?redirect=36176&cps_key=e13a24941d2ca9b7a8079c76a22d1bf5
地域推荐江苏南京中部地区,如果QQ群知道玩家在两广地区的话,就买广州地区
北京 北
上海 东
广州 南
成都 西
南京 中部
另一家阿里云大厂
限时特价购买:https://developer.aliyun.com/topic/ecs/huanshou?userCode=kj5ig4dp
限时特价购买:https://www.aliyun.com/daily-act/ecs/activity_selection?userCode=kj5ig4dp
购买地址:https://www.aliyun.com/product/swas?userCode=kj5ig4dp
都打起来价格战,受益的是用户
下面是开服教程
下载steamcmd启动器
https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip
解压文件,例如放在路径
D:\steamcmd\steamcmd.exe
打开cmd,执行 steamcmd.exe 开始安装steam客户端
下载完成后使用ctrl+c退出当前命令行,以便重新输入新命令
开始下载7 Days to Die Dedicated Server
steamcmd.exe +login anonymous +app_update 294420 validate +quit
编辑配置文件 serverconfig.xml 达到自己想要的效果,例如关闭暴力熊,关闭死亡后背包掉落等优化参数
运行 startdedicated.bat 启动服务端,默认地图建议选购2GB内存的Windows 2022系统以便稳定运行游戏服务端,如果玩的是10K大世界那么需要4GB内存
显示如下代表启动成功,大约3分钟左右启动完成
2024-05-15T20:18:18 149.704 INF Dynamic thread starting
2024-05-15T20:18:18 149.715 INF Dymesh door replacement: imposterBlock
2024-05-15T20:18:20 151.395 INF GameServer.LogOn successful, SteamID=90198239214053405, public IP=4*.1*.1*.1*
服务端完整配置文件参考:https://7daystodie.fandom.com/wiki/Server
萌新建议
ServerName:Sakura 7 Days To Die Fast Server
ServerDescription:Sakura 7 Days To Die Fast Server, sakura
ServerWebsiteURL:http://www.itzmx.com
ServerPassword:123456 (留空代表不设置服务器密码,任何人可加入)
ServerLoginConfirmationText:Lock on (一定程度反外挂,弹出验证码点击确认后才允许加入世界)
Region:Asia
Language:Chinese Sakura 7 Days To Die Fast Server (语言写英文,万一来了个老外来玩呢)
ServerMaxWorldTransferSpeedKiBs:128000 (世界连接后下载速度默认限速4Mbps导致下载要等5分钟,应当改为1000Mbps)
ServerMaxPlayerCount:29 (29人同时在线大约25Mbps宽带消耗,单个服务端世界不应该≥30人)
EACEnabled:false (关闭暴力熊,防止客户端无法启动游戏,同时节省服务端cpu消耗)
PersistentPlayerProfiles:true (固定存档:打开,反外挂,避免玩家修改本地存档)
GameWorld:PREGEN10K (10K的世界,城镇比较多,5级房屋和游戏内容体验最完整)
WorldGenSize:2048(使用RWG随机世界的时候生成的世界大小,很吃服务器内存一般建议使用2048)
GameDifficulty:2 (难度设置:流浪者)
BlockDamagePlayer:300 (玩家物块伤害:300%)
XPMultiplier:300 (经验值倍数:300%)
DayNightLength:20 (24小时周期:20分钟)
DeathPenalty:0 (死亡惩罚:无)
DropOnDeath:0 (死亡丢失物品:无)
MaxSpawnedZombies:64 (丧尸上限:64,不建议超过200,否则会严重影响客户端fps流畅度)
MaxSpawnedAnimals:145 (动物上限:145)
ServerMaxAllowedViewDistance:6 (降低服务端内存使用率,模型加载视距范围,6代表为圆形100米,人物往前看是50米,车速默认15米每秒的话跑图此数值已足够使用,还能优化提高客户端帧数)
MaxQueuedMeshLayers:100 (动态网格距离,降低服务端内存使用率)
ZombieMove:4 (丧尸白天速度:噩梦)
ZombieMoveNight:4 (丧尸夜间速度:噩梦)
ZombieFeralMove:4 (凶残丧尸速度:噩梦)
ZombieBMMove:4 (丧尸血月速度:噩梦)
BloodMoonEnemyCount:64 (血月计数:64敌人)
LootAbundance:200 (掉落率:200%)
LootRespawnDays:5 (战利品刷新时间:5日)
AirDropFrequency:24 (空投:每天)
AirDropMarker:true (标记空投:打开)
PartySharedKillRange:10000 (队伍共享杀戮范围:10000米)
PlayerKillingMode:2 (玩家杀戮:只能杀死陌生人)
DynamicMeshMaxItemCache:1 (动态网格最大网格处理并发,降低服务端内存使用率)
QuestProgressionDailyLimit:0 (限制游戏内每周期最大完成任务数,0为不限制)
serverconfig(A21.2)优化后的配置文件参考:
七日杀服务器A21.2版本最多支持20帧运行,可以在客户端按下F1打开控制台输入 mem 命令查看服务器当前实时帧数,取决于服务器CPU单核主频性能,如下所示
Time: 80.54m FPS: 20.00 Heap: 2732.7MB Max: 2850.1MB Chunks: 274 CGO: 43 Ply: 1 Zom: 7 Ent: 15 (177) Items: 6 CO: 6 RSS: 2067.6MB
官方回复这个帧数限制是故意的,解锁帧数上限没有意义
No. FPS for a server is not the same as FPS for your game client. It is intentionally capped at 20. If you were to take it higher you would just be wasting CPU cycles for the same of burning electricity, and it would cause problems with the way the game client functions.
车速修改,避免蜗牛一般的速度
C:\steamcmd\steamapps\common\7 Days to Die Dedicated Server\Data\Config\vehicles.xml
vehicles(A21.2)优化后的车速配置文件:
手动修改参考:https://bbs.itzmx.com/thread-102862-1-1.html
7 Days To Die七日杀专用服务器给游戏管理员权限方法
https://bbs.itzmx.com/thread-108240-1-1.html
注:2G内存不要让管理员使用mem指令,会因为服务器进程内存不足导致全服玩家掉线需要重连,提示网络超时,2G内存仅限游玩 Navezgane 这张地图,完整体验 PREGEN10K 地图需要4G内存
注意不要使用内存清理软件,好像是系统在内存迁移到虚拟内存优化的时候,,,就会提示网络超时全服掉线,看起来只能升级内存来解决,或者开发者修复一下,就是在系统进行pagefile.sys的时候
https://bbs.itzmx.com/thread-104814-1-1.html
2024年6月25日补充
serverconfig(1.0)优化后的配置文件参考:
车速的话发现很多坑,比如说 vehicle4x4Truck 改名成了 vehicleTruck4x4,算了,车速先默认吧,万一默认够快了,试了一天果然还是很慢,这是修改的文件:
1.0加了好几张新地图,4G内存可以玩PREGEN10K,2G内存可以玩PREGEN06K,服务器配置文件基本没什么变化,就是加了个EOS正版steam登录验证的开关
Windows 2022纯净系统下 startdedicated.bat 如果遇到打不开需要安装运行库
https://aka.ms/vs/17/release/vc_redist.x64.exe
七日杀1.0正式版服务端下载教程
https://bbs.itzmx.com/thread-108723-1-1.html
七日杀1.0版服务器 每日任务进度限制,显示红色感叹号限额
https://bbs.itzmx.com/thread-110195-1-1.html
注:官方主推的Navezgane这张图建筑很空,要更多房屋建议玩PREGEN地图系列,但是新手更应该先体验Navezgane,后期在换图
和官方沟通的内容,,,目前还没回复我
服务器只有4G可用内存,内存不足导致的,客户端会发生网络超时。不知道有没有方法设置超时时间?出现这个原因是系统正在使用“优化内存”,把不活跃的内存迁移到pagefile.sys,此时会卡住0.5s-1s左右,然后七日杀就所有玩家掉线了,有没有设置修改超时时间?或者检测到正在使用虚拟内存迁移时不让所有玩家掉线?总不可能让升级服务器内存吧,这会带来更多的服务器价格成本,l4d2他就能在200MB的内存下运行服务端
好像是系统在内存迁移到虚拟内存优化的时候,,,就会提示网络超时全服掉线,看起来只能升级内存来解决,或者开发者修复一下,就是在系统进行pagefile.sys的时候
服务器管理员在客户端运行mem命令的时候也会导致网络超时,所有玩家都会掉线
在4G的服务器上运行专用服务器容易全服所有玩家掉线,提示网络超时
可能是内存不足,进程申请不到可用内存空间导致的?已经设置了10G的虚拟内存,不应该出现这种情况,一旦出现这个掉线后,玩家在上游戏一样提示网络超时,必须重启服务器服务端后才能恢复游戏
这是服务端日志,一些ID和ip信息已经打码
2024-06-02T03:44:01 1067.648 WRN NET: LiteNetLib: SendData requested for unknown client EntityID=175, PltfmId='Steam_xxxxxxxxxxxxxxxxx', CrossId='EOS_xxxxxxxxxxxxxxxxxxxxxxxx', OwnerID='Steam_xxxxxxxxxxxxxxxxx', PlayerName='玩家2', ClientNumber='3'
2024-06-02T03:44:01 1067.660 INF NET: LiteNetLib: Client disconnect from: 171.110.21.1:58362 / 1 (Timeout)
2024-06-02T03:44:01 1067.687 INF NET: LiteNetLib: TimeSinceLastPacket: 12986
2024-06-02T03:44:01 1067.690 INF NET: LiteNetLib: Client disconnect from: 117.140.11.1:19772 / 0 (Timeout)
2024-06-02T03:44:01 1067.690 INF NET: LiteNetLib: TimeSinceLastPacket: 12917
2024-06-02T03:44:01 1067.709 INF PlayerDisconnected EntityID=175, PltfmId='Steam_xxxxxxxxxxxxxxxxx', CrossId='EOS_xxxxxxxxxxxxxxxxxxxxxxxx', OwnerID='Steam_xxxxxxxxxxxxxxxxx', PlayerName='玩家2', ClientNumber='3'
2024-06-02T03:44:01 1067.839 INF DynamicMusic: 175 successfully removed from Bloodmoon state cache
2024-06-02T03:44:02 1067.883 INF Exited thread NCS_Reader_1_0
2024-06-02T03:44:02 1067.887 WRN Client disconnected from dy mesh: Id: 175 Total: 1
2024-06-02T03:44:02 1067.891 INF Exited thread NCS_Writer_1_0
2024-06-02T03:44:02 1067.894 WRN Client disconnect complete for 175 Total: 1
2024-06-02T03:44:02 1067.894 INF Player disconnected: EntityID=175, PltfmId='Steam_xxxxxxxxxxxxxxxxx', CrossId='EOS_xxxxxxxxxxxxxxxxxxxxxxxx', OwnerID='Steam_xxxxxxxxxxxxxxxxx', PlayerName='玩家2', ClientNumber='3'
2024-06-02T03:44:02 1067.895 INF Exited thread NCS_Reader_1_1
2024-06-02T03:44:02 1067.899 INF Exited thread NCS_Writer_1_1
2024-06-02T03:44:02 1068.097 WRN NET: LiteNetLib: SendData requested for unknown client EntityID=171, PltfmId='Steam_xxxxxxxxxxxxxxxxx', CrossId='EOS_xxxxxxxxxxxxxxxxxxxxxxxx', OwnerID='Steam_xxxxxxxxxxxxxxxxx', PlayerName='玩家1', ClientNumber='2'
2024-06-02T03:44:02 1068.100 INF Exited thread NCS_Writer_0_0
2024-06-02T03:44:02 1068.100 INF Exited thread NCS_Reader_0_0
2024-06-02T03:44:02 1068.244 INF GMSG: Player '玩家2' left the game
2024-06-02T03:44:02 1068.366 INF PlayerDisconnected EntityID=171, PltfmId='Steam_xxxxxxxxxxxxxxxxx', CrossId='EOS_xxxxxxxxxxxxxxxxxxxxxxxx', OwnerID='Steam_xxxxxxxxxxxxxxxxx', PlayerName='玩家1', ClientNumber='2'
2024-06-02T03:44:02 1068.366 INF DynamicMusic: 171 successfully removed from Bloodmoon state cache
2024-06-02T03:44:02 1068.366 WRN Client disconnected from dy mesh: Id: 171 Total: 1
2024-06-02T03:44:02 1068.366 WRN Client disconnect complete for 171 Total: 1
2024-06-02T03:44:02 1068.366 INF Player disconnected: EntityID=171, PltfmId='Steam_xxxxxxxxxxxxxxxxx', CrossId='EOS_xxxxxxxxxxxxxxxxxxxxxxxx', OwnerID='Steam_xxxxxxxxxxxxxxxxx', PlayerName='玩家1', ClientNumber='2'
2024-06-02T03:44:02 1068.366 INF Exited thread NCS_Reader_0_1
2024-06-02T03:44:02 1068.367 INF Exited thread NCS_Writer_0_1
2024-06-02T03:44:02 1068.368 INF GMSG: Player '玩家1' left the game
2024-06-02T03:44:02 1068.378 WRN Authentication callback failed: User not found. ID: 76561198353079763
2024-06-02T03:44:02 1068.379 WRN Authentication callback failed: User not found. ID: 76561198122387352
2024-06-02T03:44:02 1068.396 WRN Backend registered players out of sync with client
2024-06-02T03:44:02 1068.396 WRN Backend total players out of sync with client
2024-06-02T03:44:02 1068.396 WRN Backend open connections out of sync with client
2024-06-02T03:44:02 1068.400 INF NET: LiteNetLib: MT: Client disconnect from: 171.110.21.1:58362 / 1 (Timeout)
2024-06-02T03:44:02 1068.401 INF NET: LiteNetLib: MT: Client disconnect from: 117.140.11.1:19772 / 0 (Timeout)
2024-06-02T03:44:02 1068.404 ERR DisconnectClient: Player EOS_xxxxxxxxxxxxxxxxxxxxxxxx not found
2024-06-02T03:44:02 1068.417 INF From: UnityEngine.StackTraceUtility:ExtractStackTrace ()
ConnectionManager:DisconnectClient (ClientInfo,bool,bool)
ConnectionManager:<DisconnectClient>b__51_0 (object)
ThreadManager:UpdateMainThreadTasks ()
GameManager:gmUpdate ()
GameManager:Update ()
2024-06-02T03:44:02 1068.417 ERR DisconnectClient: Player EOS_xxxxxxxxxxxxxxxxxxxxxxxx not found
2024-06-02T03:44:02 1068.417 INF From: UnityEngine.StackTraceUtility:ExtractStackTrace ()
ConnectionManager:DisconnectClient (ClientInfo,bool,bool)
ConnectionManager:<DisconnectClient>b__51_0 (object)
ThreadManager:UpdateMainThreadTasks ()
GameManager:gmUpdate ()
GameManager:Update ()
2024-06-02T03:44:04 1070.181 INF written 255511, in 189ms
2024-06-02T03:44:04 1070.218 INF Time: 15.51m FPS: 3.50 Heap: 2350.0MB Max: 2415.8MB Chunks: 469 CGO: 104 Ply: 0 Zom: 15 Ent: 0 (81) Items: 0 CO: 0 RSS: 1231.7MB
2024-06-02T03:44:04 1070.266 INF write thread 68ms
2024-06-02T03:44:11 1077.345 INF Clearing all pools
这是我使用的服务器配置文件,PREGEN10K进程启动后占用2.8G,Navezgane进程启动后占用1.9G,4G内存的服务器游玩Navezgane会获得更稳定的运行,但是依旧偶尔会出现全服所有玩家掉线问题,Navezgane在4G内存上运行大概每天十次掉线,PREGEN10K基本几分钟就会不间断的掉线
我有2个解决办法
1.提供超时配置文件设置
2.优化减少服务器的服务端内存使用量
升级服务器配置,加大内存会带来更多的费用,我认为应当从服务端去解决内存不足提示“网络超时”的掉线问题
配置文件太长,,发不上来,配置文件里面提示内存优化的相关参数我已经修改数值为最低过了
页:
[1]