设为首页收藏本站

ZMX - IT技术交流论坛 - 无限Perfect,追求梦想 - itzmx.com

 找回密码
 注册论坛

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

用百度帐号登录

只需两步,快速登录

搜索
查看: 279|回复: 0

Left 4 Dead 2求生之路2游戏vps服务器配置需求,腾讯云轻量开服卡顿瞬移优化文件设置参数 steamcmd启动器教程用法

[复制链接]

签到天数: 4588 天

[LV.Master]伴坛终老

发表于 2024/6/10 21:19 | 显示全部楼层 |阅读模式 |Google Chrome 125.0.0.0|Windows 10
天涯海角搜一下: 百度 谷歌 360 搜狗 有道 雅虎 必应 即刻
Left 4 Dead 2求生之路2游戏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退出当前命令行,以便重新输入新命令

开始下载Left 4 Dead 2 Dedicated Server
  1. steamcmd.exe +login anonymous +app_update 222860 validate +quit
复制代码


方式1
进入服务端目录,右键新建一个文件,命名为 启动.bat
内容如下,直接启动14个服务端,需要4G内存,2G虽然可以正常启动但是会用到虚拟内存可能导致刷新率掉帧
  1. @echo off
  2. start /b srcds.exe -console -game left4dead2 -sv_lan 0 -insecure +hostport 27015 +map c1m1_hotel +exec server.cfg +hostname "Sakura Left4Dead 2 Fast Server (China Shanghai)"
  3. ping /n 5 127.1>nul
  4. start /b srcds.exe -console -game left4dead2 -sv_lan 0 -insecure +hostport 27016 +map c2m1_highway +exec server.cfg +hostname "Sakura Left4Dead 2 Fast Server (China Shanghai)"
  5. ping /n 5 127.1>nul
  6. start /b srcds.exe -console -game left4dead2 -sv_lan 0 -insecure +hostport 27017 +map c3m1_plankcountry +exec server.cfg +hostname "Sakura Left4Dead 2 Fast Server (China Shanghai)"
  7. ping /n 5 127.1>nul
  8. start /b srcds.exe -console -game left4dead2 -sv_lan 0 -insecure +hostport 27018 +map c4m1_milltown_a +exec server.cfg +hostname "Sakura Left4Dead 2 Fast Server (China Shanghai)"
  9. ping /n 5 127.1>nul
  10. start /b srcds.exe -console -game left4dead2 -sv_lan 0 -insecure +hostport 27019 +map c5m1_waterfront +exec server.cfg +hostname "Sakura Left4Dead 2 Fast Server (China Shanghai)"
  11. ping /n 5 127.1>nul
  12. start /b srcds.exe -console -game left4dead2 -sv_lan 0 -insecure +hostport 27020 +map c6m1_riverbank +exec server.cfg +hostname "Sakura Left4Dead 2 Fast Server (China Shanghai)"
  13. ping /n 5 127.1>nul
  14. start /b srcds.exe -console -game left4dead2 -sv_lan 0 -insecure +hostport 27021 +map c7m1_docks +exec server.cfg +hostname "Sakura Left4Dead 2 Fast Server (China Shanghai)"
  15. ping /n 5 127.1>nul
  16. start /b srcds.exe -console -game left4dead2 -sv_lan 0 -insecure +hostport 27022 +map c8m1_apartment +exec server.cfg +hostname "Sakura Left4Dead 2 Fast Server (China Shanghai)"
  17. ping /n 5 127.1>nul
  18. start /b srcds.exe -console -game left4dead2 -sv_lan 0 -insecure +hostport 27023 +map c9m1_alleys +exec server.cfg +hostname "Sakura Left4Dead 2 Fast Server (China Shanghai)"
  19. ping /n 5 127.1>nul
  20. start /b srcds.exe -console -game left4dead2 -sv_lan 0 -insecure +hostport 27024 +map c10m1_caves +exec server.cfg +hostname "Sakura Left4Dead 2 Fast Server (China Shanghai)"
  21. ping /n 5 127.1>nul
  22. start /b srcds.exe -console -game left4dead2 -sv_lan 0 -insecure +hostport 27025 +map c11m1_greenhouse +exec server.cfg +hostname "Sakura Left4Dead 2 Fast Server (China Shanghai)"
  23. ping /n 5 127.1>nul
  24. start /b srcds.exe -console -game left4dead2 -sv_lan 0 -insecure +hostport 27026 +map c12m1_hilltop +exec server.cfg +hostname "Sakura Left4Dead 2 Fast Server (China Shanghai)"
  25. ping /n 5 127.1>nul
  26. start /b srcds.exe -console -game left4dead2 -sv_lan 0 -insecure +hostport 27027 +map c13m1_alpinecreek +exec server.cfg +hostname "Sakura Left4Dead 2 Fast Server (China Shanghai)"
  27. ping /n 5 127.1>nul
  28. start /b srcds.exe -console -game left4dead2 -sv_lan 0 -insecure +hostport 27028 +map c14m1_junkyard +exec server.cfg +hostname "Sakura Left4Dead 2 Fast Server (China Shanghai)"
复制代码


方式2
进入服务端目录,右键SRCDS.exe,创建快捷方式,快捷方式加上这些参数,然后通过快捷方式启动服务端,多次启动就是启动多个服务端,多个服务端的端口号自动+1,也就是27015、27016、27017以此类推,这种方式最多启动10个服务端,第11个会被27015端口覆盖,需要手动改hostport参数才能启动这第11个服务端的27025端口,进入游戏后可以用投票功能更换服务器的游玩地图
  1. -console -game left4dead2 -sv_lan 0 -insecure +hostport 27015 +map c1m1_hotel +exec server.cfg +hostname "Sakura Left4Dead 2 Fast Server (China Shanghai)"
复制代码


注:一个服务端在4人的房间塞满,玩家在游玩过程需要占用服务器200MB的内存,可以根据服务器内存决定启动多少个服务端,之前抓包过看到V社官方一台服务器是运行了141个服务端,可以从每个服务端200MB内存,猜测出来V社官方服务器是32G内存

联机方法,玩家steam中启动游戏,在游戏右下角中找到steam服务器组,选择服务器名为"Sakura Left4Dead 2 Fast Server"的进入游戏
或者呼出控制台,输入connect 服务器ip地址,进入游戏均可

参考内容
https://bbs.itzmx.com/thread-12721-1-1.html
https://bbs.itzmx.com/thread-88127-1-1.html
https://bbs.itzmx.com/thread-96536-1-1.html
https://bbs.itzmx.com/thread-102014-1-1.html

求生之路2 怎么设置服务器房间信息 就是按下H弹出来的
https://bbs.itzmx.com/thread-12705-1-1.html


已知问题:
求生之路没人用ip进服务器就一直24小时都空闲,只有自己进入了服务器后,立马就有其它3个人可以通过快速匹配进来,但是这局的对局结束后,人又没了

解决办法:
每次对局结束后,自己进入下游戏,看见来人了就能退出房间了,这样位置可以腾出来给其他人玩,反正和群里的朋友玩足够了,进来人把他投票踢了就行

评分

参与人数 1樱币 +1 收起 理由
algoblue + 1 很给力!

查看全部评分

[发帖际遇]: 小樱 在网吧通宵,花了 5 樱币. 幸运榜 / 衰神榜
欢迎光临IT技术交流论坛:http://bbs.itzmx.com/
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册论坛 新浪微博账号登陆用百度帐号登录

本版积分规则

手机版|Archiver|Mail me|网站地图|IT技术交流论坛 ( 闽ICP备13013206号-7 )

GMT+8, 2024/7/27 22:17 , Processed in 0.131371 second(s), 21 queries , MemCache On.

Powered by itzmx! X3.4

© 2011- sakura

快速回复 返回顶部 返回列表