Day of Infamy

Day of Infamy

Not enough ratings
Day of infamy | Windows服务器中文指南
By Fubuki
参照官方指南:https://steamproxy.com/sharedfiles/filedetails/?id=952405515
如果遇到什么问题,可以在指南底下留言。
如果觉得本指南对你有帮助请给个赞!
   
Award
Favorite
Favorited
Unfavorite
运行库设置
Microsoft Visual C++ 2013/2015 Redistributable Package(x86)
https://www.microsoft.com/en-us/download/details.aspx?id=53587


Microsoft Visual C++ 2013/2015 Redistributable Package(x64)
https://www.microsoft.com/en-us/download/details.aspx?id=53587
开发者工具(非必要)[可忽略]
GCFScape下载方法
  • Steam

  • 工具
  • 下载安装SourceSDK
  • 找到GCFScape

Notepad++下载地址


[https://notepad-plus-plus.org/] Notepad++ [/url]

编写服务端文件建议用Notepad++,保存为UTF8 无BOM


Hammer(地图制作)

  • Steam

  • 工具
  • 下载安装SourceSDK
  • 找到锤子
  • 玩个锤子


Sourcemod
下载地址
Sourcemod [www.sourcemod.net]
SteamCMD下载
服务端下载
打开SteamCMD输入
  • login anonymous
  • force_install_dir 路径(非必要,默认文件夹路径在\SteamCMD\steamapps\common)
  • app_update 462310 validate

等待服务端下载完毕输入quit,服务器路径最好只留英文,不然可能报错。
服务端启动Bat基本设置[合作模式]
创建一个txt文件将其后缀改为bat,在其中添加

start srcds.exe -usercon +sv_pure 0 +map "crete entrenchment"+maxplayers 49

其中sv_pure,map和maxplayers都是可更改的,但是合作模式建议49人
服务端启动Bat基本设置[PVP]
创建一个txt文件将其后缀改为bat,在其中添加

start srcds.exe -usercon +sv_pure 0 +map "crete invasion"+maxplayers 32

其中sv_pure,map和maxplayers都是可更改的,但是PVP模式建议32人

设置好后运行start.bat,让服务端自动生成CFG文件,然后输入quit

经测试,任何Cvar可添加进启动器里面,除了不可更改cvar
启动器(.bat)详细
启动器(.bat)后面的+可以用来设置参数,包括地图或者状态。

经测试:Maxplayers大于32时和Map只能写在启动器内启动
MOTD设置
导航到steamapps\common\Day of Infamy Dedicated Server\doi

然后自定义玩家进你服务器时所看到的文本,编码使用UTF8无BOM防止中文乱码。


欢迎来到克里特研究协会所提供的服务器。 服务器资金:0 服务器租金:0 管理员:影 游戏模式:要塞 | 防守 | 突袭
服务器Cvar设置
服务器的Cvar一般在Day of Infamy Dedicated Server\doi\cfg里

其中Server.cfg是应用于整个服务器的

Default_Server_xxxx是个别特殊地图/模式的cvar,不编辑就是默认server.cfg里的参数

可编辑的文件如下

  • Default_server_xxxx
  • Server.cfg

可以用指令Cvarlist来显示所有Cvar

我把Cvarlist里的所有Cvar放到了一个TXT里
下载地址: Cvarlist [file.yiyuen.com]

其中:CMD指服务端指令 sv指服务器 Cheat指作弊指令(需要Sv_Cheats 1)
一般Sv指令都是服务器设置 均可更改
除了特殊指令后面没写cheats 但是划分为Cheats指令
例:Noclip Force_respawn_me Gods God
Mapcycle设置[地图列表]
Day of Infamy Dedicated Server\doi\mapcycle.txt

其中填写规则为

地图 地图规则

例如克里特岛的进攻

Crete stronghold

可不编辑此mapcycle,这样就是应用playlist默认的地图列表

不过不能添加超出playlist限制的地图,比如说合作的playlist不能在其中加入侵略(Invasion)模式

模式
内容
Stronghold
进攻
Entrenchment
防守
Raid
突袭
服务器Mapcycle列表[合作模式] 使用预设Playlist的时候无需写进去-复制于Playlist
"bastogne" "stronghold" "comacchio" "stronghold" "crete" "stronghold" "dog_red" "stronghold" "foy" "stronghold" "ortona" "stronghold" "reichswald" "stronghold" "saint_lo" "stronghold" "salerno" "stronghold" "sicily" "stronghold" "rhineland" "stronghold" "breville" "stronghold" "dunkirk" "stronghold" "brittany" "stronghold" "flakturm" "stronghold" "bastogne" "raid" "comacchio" "raid" "crete" "raid" "dog_red" "raid" "foy" "raid" "ortona" "raid" "reichswald" "raid" "saint_lo" "raid" "salerno" "raid" "sicily" "raid" "rhineland" "raid" "bastogne" "entrenchment" "comacchio" "entrenchment" "crete" "entrenchment" "dog_red" "entrenchment" "foy" "entrenchment" "reichswald" "entrenchment" "salerno" "entrenchment" "sicily" "entrenchment" "rhineland" "entrenchment" "breville" "entrenchment" "dunkirk" "entrenchment" "brittany" "entrenchment" "flakturm" "entrenchment"
服务器Mapcycle列表[官方PVP] 使用预设Playlist的时候无需写进去
"bastogne" "offensive" "comacchio" "offensive" "crete" "offensive" "dog_red" "offensive" "foy" "offensive" "ortona" "offensive" "reichswald" "offensive" "saint_lo" "offensive" "salerno" "offensive" "sicily" "offensive" "rhineland" "offensive" "breville" "offensive" "dunkirk" "offensive" "brittany" "offensive" "flakturm" "offensive" "bastogne" "frontline" "comacchio" "frontline" "crete" "frontline" "foy" "frontline" "ortona" "frontline" "reichswald" "frontline" "saint_lo" "frontline" "salerno" "frontline" "sicily" "frontline" "breville" "frontline" "rhineland" "frontline" "flakturm" "frontline" "bastogne" "liberation" "comacchio" "liberation" "crete" "liberation" "foy" "liberation" "ortona" "liberation" "reichswald" "liberation" "saint_lo" "liberation" "salerno" "liberation" "sicily" "liberation" "rhineland" "liberation" "breville" "liberation" "dunkirk" "liberation" "brittany" "liberation" "bastogne" "invasion" "sicily" "invasion" "dog_red" "invasion" "foy" "invasion" "crete" "invasion" "ortona" "invasion" "breville" "invasion" "dunkirk" "invasion" "brittany" "invasion" "flakturm" "invasion"
Playlist设置[游玩列表]
Playlist一般写入server.cfg里

  • nwi/coop//合作模式

  • nwi/coop_commando//突击合作模式(比合作模式略难)

  • nwi/mp_casual_with_bots//给bot当陪玩

  • nwi/mp_special_assignments//特殊指派

  • nwi/mp_battles//PVP
写法如下
sv_playlist xxxxxx

例子
sv_playlist nwi/coop
服务器启动
打开Start.bat,你的服务器就成功建立了!

如果遇到什么问题,可以在指南底下留言

可能有错误,留言后会尽快指正。
起源服务端管理平台(Soucemod)非必要
Soucemod可用于管理服务器下载完后解包丢入

Day of Infamy Dedicated Server\doi

下载链接:https://www.sourcemod.net/downloads.php?branch=stable

插件可自行编辑或添加于Sourcemod官网
Custom(Theater篇)
Theater通过GCF解包后更改完毕

创建一个新文件夹Custom在根目录下

把修改完的theater丢入

但是修改后没经验
Ban和Kick在Rcon,list与sm中应用
在游戏内控制台输入Status以得到玩家在服务端中的序号(上面带#的)和玩家的STEAMID

以下为DOI与INS中简单的运用
  • kickid 数字
  • kick 名字
  • banid #xxxx(一次性)
  • ban 名字(一次性)

Banlist

Banlist索引(用户)
Day of Infamy Dedicated Server\doi\cfg\banned_user

Banlist索引(IP)
Day of Infamy Dedicated Server\doi\cfg\banned_ip
控制台Rcon
在server.cfg中添加

Rcon_password “你的服务器密码”

本地在进入服务器控制台输入Rcon_password “你的服务器密码”

服务器参数可通过Rcon修改


rcon "sv_Cheats 1"

服务端安装Sourcemod后,无需Rcon_password,可通过SM直接修改Cvar



sm_cvar "sv_Cheats 1"
附加内容(1)-PVE服务器bot数量设置
PVE中,想要设置Bot的数量首先得在CFG里输入

doi_bot_count_override 1

然后再自定义bot数量通过以下指令
"doi_bot_count_default_enemy_max_players" "" "doi_bot_count_default_enemy_min_players" "" "doi_bot_count_default_friendly_min_players" "" "doi_bot_count_default_friendly_max_players" ""

注意:需确保Maxplayer没有溢出
附加内容(2)-Sourcemod已知错误
Sourcemod的Button和复活函数经测试与doi并不完全兼容

Button在数字5-9不可触发

复活函数会导致玩家Hitbox错误,武器加载错误
16 Comments
Fubuki  [author] 3 Oct, 2023 @ 11:47am 
凉凉
OldHouse011 13 Oct, 2020 @ 11:54pm 
@影 谢谢
Fubuki  [author] 13 Oct, 2020 @ 5:13am 
@OldHouse011 Playlist设置
OldHouse011 13 Oct, 2020 @ 3:09am 
请问服务器如何显示在官方列表?
再吵鲨了你 6 Apr, 2020 @ 3:07am 
@maxman~谢谢拉
Fubuki  [author] 4 Apr, 2020 @ 9:56pm 
@软泥印丶 换繁体中文,或者英文,简体中文有bug
Fubuki  [author] 4 Apr, 2020 @ 9:56pm 
@Braised meat 检测Be有没有被文件屏蔽,他上面写的什么能具体一点么
再吵鲨了你 4 Apr, 2020 @ 8:37am 
麻烦问一下各位小哥哥小姐姐,我这个游戏玩着玩着总莫名其妙闪退是什么原因啊
Braised meat 2 Apr, 2020 @ 7:43pm 
我的耻辱日一打开就有一串英文错误提示,这个怎么解决呀,求助大佬...
Fubuki  [author] 14 Feb, 2020 @ 3:43am 
唔,DOI我很少玩的啦,都是偶尔上去看看,好友你发申请吧