|
|
发表于 2022-10-27 18:39:45
|
显示全部楼层
本帖最后由 ruanhuhu 于 2022-10-29 08:38 编辑

昨天看你回复的时候图片压根没有加载出来 理解错你的意思了
确实是你代码写错了 图片上那个是以前的写法了
再补充一句 如果在ForcedSpawnIniOptions里指定了游戏模式 那么单独定义的ini就不加载了
会去加载mpmodesmd.ini指定的对应ini
丢源码上来
指定是否仅允许人类玩家 仅允许网络对战 禁止指定位置和队伍等
UIName写中文会导致联机不能读地图(提示官方地图对方没有)
;CoopDifficultyLevel = forcedOptionsIni.GetIntValue(Name, "CoopDifficultyLevel", 0);
;UIName = forcedOptionsIni.GetStringValue(Name, "UIName", Name);
;MultiplayerOnly = forcedOptionsIni.GetBooleanValue(Name, "MultiplayerOnly", false);
;HumanPlayersOnly = forcedOptionsIni.GetBooleanValue(Name, "HumanPlayersOnly", false);
;ForceRandomStartLocations = forcedOptionsIni.GetBooleanValue(Name, "ForceRandomStartLocations", false);
;ForceNoTeams = forcedOptionsIni.GetBooleanValue(Name, "ForceNoTeams", false);
;MinPlayersOverride = forcedOptionsIni.GetIntValue(Name, "MinPlayersOverride", -1);
;forcedOptionsSection = forcedOptionsIni.GetStringValue(Name, "ForcedOptions", string.Empty);
;mapCodeININame = forcedOptionsIni.GetStringValue(Name, "MapCodeININame", Name + ".ini");
|
|