本文直接跳过安装服务端的简单过程,你可以直接参考Counter-Strike 2 - Dedicated Servers与SteamCMD.
1. 测试启动服务器
在\cs2\game\bin\win64创建一个可执行脚本【例:start.bat】
填写
cs2.exe -dedicated -insecure -usercon -console -nomaster +port 27015 -tickrate 128 +map de_mirage +game_type 0 +game_mode 1 +exec server.cfg -maxplayers_override 64 +game_alias competitive +sv_hibernate_when_empty 0
启动项具体内容你可以参考CS2 Dedicated Server Guide.
2. 安装Metamod与SwiftlyS2
metamod官网 找到2.x版本(Latest downloads)
curl "https://mms.alliedmods.net/mmsdrop/2.0/mmsource-2.0.0-git1374-windows.zip"
解压到/game/csgo中
7z.exe x mmsource-2.0.0-git1374-windows.zip -o
同样的,在SwiftlyS2官网找到Latest Stable .
curl "https://github.com/swiftly-solution/swiftlys2/releases/download/v1.0.5/swiftlys2-windows-v1.0.5-with-runtimes.zip"
解压到/game/csgo中
第一次安装SwiftlyS2务必选择带依赖库的版本.
评论
评论已关闭