Call to Arms - Gates of Hell: Ostfront

Call to Arms - Gates of Hell: Ostfront

VC模块: 参数_速杀对局_天气扩展/vancat_config_realspeed_weather
 This topic has been pinned, so it's probably important
贪玩蓝月摆烂版  [developer] 19 Oct, 2022 @ 2:47am
第三方地图添加 天气扩展支持/Add weather extension support to third-party maps
推荐使用编辑器 vscode[code.visualstudio.com]
地图文件:UTF8编码
翻译文件:UTF8bom编码
打开你的地图文件夹 找到下面两种类型的文件 *.info *..mi

📌1.修改扩展名为📄*.info的文件
如果你的地图文件是符合规则的应该能够搜索到以下内容
{options "any_weather" "day_weather" "night_weather" }
>>修改成
{options "any_weather" "day_weather" "night_weather" (include "../vancat_tq_info.inc")}

否则你需要如下修改
{game 代码内具体添加此内容
{mission_options {selects {"weather_options_choices" {options "any_weather" "day_weather" "night_weather" (include "../vancat_tq_info.inc")} {selected "any_weather"} } } }
下面这个是一个完整的文件示范
;SDL {game {maxPlayers 2} ; {texMod wood} ; {ranked} ; {rankedMinPlayers 2} ; {rankedMaxPlayers 2} {mission_options {selects {"weather_options_choices" {options "any_weather" "day_weather" "night_weather" (include "../vancat_tq_info.inc")} {selected "any_weather"} } } } }

📌2.修改扩展名为📄*..mi的文件
💎方法1: 如果你的地图文件是符合规则的如下修改即可
{triggers
>>修改成
{triggers (include "../vancat_tq_mi_1.inc") (include "../vancat_tq_mi_2.inc")

💎方法2: 方法1修改后请进入游戏测试一下天气是否生效(因为第三方地图的代码完全取决于其发布者),如不生效请使用此方法
{triggers
>>修改成
{event "action"} {event "ambient"} {event "gamestart"} {triggers (include "../vancat_tq_mi_1.inc") (include "../vancat_tq_mi_2.inc") {"start" {condition } {actions {"delay" {time 0.1} } {"event" {event "gamestart"} {mode set} {delay 0} } {"event" {event "ambient"} {mode set} {delay 0} } } }

💎方法3: 这个该死的地图我搜不到{triggers
{Helpers 代码内具体添加此内容
{event "action"} {event "ambient"} {event "gamestart"} {triggers (include "../vancat_tq_mi_1.inc") (include "../vancat_tq_mi_2.inc") {"start" {condition } {actions {"delay" {time 0.1} } {"event" {event "gamestart"} {mode set} {delay 0} } {"event" {event "ambient"} {mode set} {delay 0} } } } }
下面这个是一个文件示范
{Helpers {event "action"} {event "ambient"} {event "gamestart"} {triggers (include "../vancat_tq_mi_1.inc") (include "../vancat_tq_mi_2.inc") ....

📌3.添加本地化(文本翻译)
***参考以下路径,正确放置本地化文件,打开并修改其中的内容以对应正确的文本翻译
中文翻译文本参考
"Call to Arms - Gates of Hell\mods\vancat_config_realspeed_weather_1.022\localizations\ch\interface\text\mission\multi\1v1_crossing.po"
其他语言翻译文本参考
"Call to Arms - Gates of Hell\mods\vancat_config_realspeed_weather_1.022\localizations\default\interface\text\mission\multi\1v1_crossing.pot"