Skip to content

Commit aaae57a

Browse files
authored
COD BO2: add Load Mod (fs_game) setting (#1859)
1 parent 5ee39e4 commit aaae57a

2 files changed

Lines changed: 22 additions & 7 deletions

File tree

call-of-dutybo2.kvp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Meta.Prerequsites=[]
2121
Meta.ExtraContainerPackages=[]
2222
Meta.ConfigReleaseState=NotSpecified
2323
Meta.NoCommercialUsage=False
24-
Meta.ConfigVersion=2
24+
Meta.ConfigVersion=3
2525
Meta.ReleaseNotes=
2626
Meta.BreakingReleaseNotes=
2727
Meta.AppConfigId=33c34501-5f7b-492c-9fb8-b33402471950
@@ -36,7 +36,7 @@ App.ExecutableLinux=/usr/bin/wine
3636
App.WorkingDir=server/Plutonium
3737
App.LinuxCommandLineArgs=bin/plutonium-bootstrapper-win32.exe
3838
App.WindowsCommandLineArgs=
39-
App.CommandLineArgs={{$PlatformArgs}} {{GameMode}} +set net_port {{$ServerPort}} +set net_ip {{$ApplicationIPBinding}} +set rcon_password "{{$RemoteAdminPassword}}" {{$FormattedArgs}} {{MapMode}}
39+
App.CommandLineArgs={{$PlatformArgs}} {{GameModeNew}} +set net_port {{$ServerPort}} +set net_ip {{$ApplicationIPBinding}} +set rcon_password "{{$RemoteAdminPassword}}" {{$FormattedArgs}} {{MapMode}}
4040
App.UseLinuxIOREDIR=False
4141
App.AppSettings={}
4242
App.EnvironmentVariables={"SteamAppId":"202970","WINEPREFIX":"{{$FullRootDir}}.wine","WINEARCH":"win32","WINEDEBUG":"-all","XDG_RUNTIME_DIR":"/tmp"}

call-of-dutybo2config.json

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@
7474
"Subcategory": "Server:dns:1",
7575
"Description": "Sets the game mode. Configure the relevant config file accordingly - 'Plutonium/storage/t6/dedicated.cfg' for Multiplayer, 'Plutonium/storage/t6/dedicated_zm.cfg' for Zombies",
7676
"Keywords": "game,mode,gamemode",
77-
"FieldName": "GameMode",
77+
"FieldName": "GameModeNew",
7878
"InputType": "enum",
79-
"ParamFieldName": "GameMode",
80-
"DefaultValue": "t6mp \"{{$FullBaseDir}}T6\" -dedicated +set key {{ServerKey}} +set fs_game \"\" +exec dedicated.cfg",
79+
"ParamFieldName": "GameModeNew",
80+
"DefaultValue": "t6mp \"{{$FullBaseDir}}T6\" -dedicated +set key {{ServerKey}} +set fs_game \"{{Mod}}\" +exec dedicated.cfg",
8181
"EnumValues": {
82-
"t6mp \"{{$FullBaseDir}}T6\" -dedicated +set key {{ServerKey}} +set fs_game \"\" +exec dedicated.cfg": "Multiplayer (default)",
83-
"t6zm \"{{$FullBaseDir}}T6\" -dedicated +set key {{ServerKey}} +set fs_game \"\" +exec dedicated_zm.cfg": "Zombies"
82+
"t6mp \"{{$FullBaseDir}}T6\" -dedicated +set key {{ServerKey}} +set fs_game \"{{Mod}}\" +exec dedicated.cfg": "Multiplayer (default)",
83+
"t6zm \"{{$FullBaseDir}}T6\" -dedicated +set key {{ServerKey}} +set fs_game \"{{Mod}}\" +exec dedicated_zm.cfg": "Zombies"
8484
}
8585
},
8686
{
@@ -175,6 +175,21 @@
175175
"Placeholder": "mp_dockside",
176176
"EnumValues": {}
177177
},
178+
{
179+
"DisplayName": "Load Mod",
180+
"Category": "Call of Duty Black Ops II:stadia_controller",
181+
"Subcategory": "Server:dns:1",
182+
"Description": "Sets the mod to load when starting the server, based on the path to the mod in the 'Plutonium/storage/t6' directory",
183+
"Keywords": "mods,mod,fs_game",
184+
"FieldName": "Mod",
185+
"InputType": "text",
186+
"ParamFieldName": "Mod",
187+
"IncludeInCommandLine": true,
188+
"SkipIfEmpty": true,
189+
"DefaultValue": "",
190+
"Placeholder": "mods/modname",
191+
"EnumValues": {}
192+
},
178193
{
179194
"DisplayName": "Player Limit",
180195
"Category": "Call of Duty Black Ops II:stadia_controller",

0 commit comments

Comments
 (0)