安装 Codename CURE 服务端

1. 安装SteamCMD

首先打开 SteamCMD - Valve Developer Community (valvesoftware.com)

往下滑找到"Download SteamCMD for Windows"

点击"[1]"下载SteamCMD

image-20230219173024215

如果下载不了可以从我的网盘下:steamcmd.zip | GrMine - Drive

下载好后,解压到随意路径

双击打开,等待更新完成

QQ截图20230219173214

更新完成后,输入

login anonymous

出现

Connecting anonymously to Steam Public...OK
Waiting for client config...OK
Waiting for user info...OK

代表成功,如果没有请重试

2. 安装游戏服务端

输入

app_update 383410 validata

下载Codename CURE 服务端,出现

Success! App '383410' fully installed.

代表完成

image-20230219174433935

3. 开启服务器

打开 SteamCMD根目录\steamapps\common\Codename CURE Dedicated Server

右键srcds.exe,创建快捷方式

image-20230219174709691

右键快捷方式,属性,在"目标"的后面加-game cure

QQ截图20230219174908

双击打开快捷方式

QQ截图20230219175806

然后点击开始服务器,让你的好友通过显示的IP地址链接就行(只在有公网IP或同一网络环境下有用)

如果在有公网IP环境下开设的服务器,是可以直接在游戏的服务器列表看到的

4. 通过HLSM控制服务器(可选,但可以使服务器更稳定)

首先在 SteamCMD根目录\steamapps\common\Codename CURE Dedicated Server\cure\cfg 下创建一个文件server.cfg

输入以下内容

hostname "服务器名"

//局域网
sv_lan 0

//机器人数(最大3)
bot_quota 3

//友伤
mp_friendlyfire 0

//unless freindly fire is disabled there is no way to turn off the new autokick system (introduced to reduce trolling)
//however you can alter the strikes and cooldown values (within a limited range)
//you can also set select steamid's to be exempt from being kicked on this server via "kickexemption.txt"
sv_autokick_strikes 10 //min 5, max 30
sv_autokick_cooldown 15 //min 10, max 60

//the amount of mins a player should be banned for after being kicked
//(-1 to turn off 0 for indefinate time)
sv_kickbantime 5

//the amount of time players have to vote, once it has been called
sv_votetime 20

//the amount of time players have to wait before calling another vote
sv_votenext 10

//FastDL
//sv_downloadurl "http://43.138.213.15:4313/game"
//sv_allowupload 1
//sv_allowdownload 1

//allow voting on specific issues
sv_allowvotekick 0
sv_allowvotediff 1
sv_allowvotemap 1

//it is no longer recommended to set difficulty here
//as on map change it will override any difficulty players have voted for

//send info to master servers
heartbeat

sv_tags "lv_mod,say_sound,many_map"

//可以使人数多加1个
tv_enable 1
tv_enable 0

然后下载HLSM

HLSM v2.4.1 - HL Server Monitor - AlliedModders (alliedmods.net)

QQ截图20230219180753

如果下载不了可以从我的网盘下:hlsm2.4.1.zip | GrMine - Drive

下载完成后解压到一个文件夹,双击打开hlsm.exe,右键空白地方 创建服务器

image-20230219200010987

点击浏览

image-20230219200115044

选择 SteamCMD根目录\steamapps\common\Codename CURE Dedicated Server\srcds.exe,运行参数填

-game cure +exec server +map cbe_bunker -console -port 端口(如27015) -ip 内网IP(如192.168.0.112)

IP必须要填写正确,不然会一直重启

然后点击确定就行了