Counter-Strike 2: add workshop settings and switch to anonymous download (#502)

This commit is contained in:
Greelan 2023-11-04 06:57:52 +11:00 committed by GitHub
parent 1132273791
commit 06b5012b5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 61 additions and 4 deletions

View File

@ -5,7 +5,7 @@ Meta.AarchSupport=NotSupported
Meta.Arch=x86_64 Meta.Arch=x86_64
Meta.Author=Greelan Meta.Author=Greelan
Meta.URL=https://www.counter-strike.net/cs2 Meta.URL=https://www.counter-strike.net/cs2
Meta.DisplayImageSource=url:https://cdn.cloudflare.steamstatic.com/steam/apps/730/header.jpg?t=1695947021 Meta.DisplayImageSource=steam:730
Meta.EndpointURIFormat=steam://connect/{ip}:{GenericModule.App.Ports.$ServerPort} Meta.EndpointURIFormat=steam://connect/{ip}:{GenericModule.App.Ports.$ServerPort}
Meta.ConfigManifest=counter-strike2config.json Meta.ConfigManifest=counter-strike2config.json
Meta.MetaConfigManifest=counter-strike2metaconfig.json Meta.MetaConfigManifest=counter-strike2metaconfig.json
@ -70,8 +70,8 @@ App.PreStartStages=[]
App.ForceUpdate=False App.ForceUpdate=False
App.ForceUpdateReason= App.ForceUpdateReason=
App.Compatibility=None App.Compatibility=None
App.SteamUpdateAnonymousLogin=False App.SteamUpdateAnonymousLogin=True
App.SteamForceLoginPrompt=True App.SteamForceLoginPrompt=False
App.RapidStartup=False App.RapidStartup=False
App.MonitorChildProcess=False App.MonitorChildProcess=False
App.DumpFullChildProcessTree=False App.DumpFullChildProcessTree=False

View File

@ -131,6 +131,63 @@
"DefaultValue":"", "DefaultValue":"",
"EnumValues":{} "EnumValues":{}
}, },
{
"DisplayName":"Map Group",
"Category":"CS2 Server Settings",
"Description":"Sets the map group to load to enable map rotation. Alternatively specify a Workshop Collection ID which includes the maps required for rotation",
"Keywords":"map,group,mapgroup",
"FieldName":"mapgroup",
"InputType":"text",
"ParamFieldName":"mapgroup",
"IncludeInCommandLine":true,
"SkipIfEmpty":true,
"DefaultValue":"",
"Placeholder":"mg_cs2",
"EnumValues":{}
},
{
"DisplayName":"Workshop Map ID",
"Category":"CS2 Server Settings",
"Description":"Sets the ID of a [Steam workshop map](https://steamcommunity.com/workshop/browse/?appid=730&browsesort=trend&section=readytouseitems) to download and load on the server. This will override the Initial Map setting",
"Keywords":"workshop,map,host_workshop_map",
"FieldName":"host_workshop_map",
"InputType":"number",
"ParamFieldName":"host_workshop_map",
"IncludeInCommandLine":true,
"SkipIfEmpty":true,
"DefaultValue":"",
"Placeholder":"3070217773",
"EnumValues":{}
},
{
"DisplayName":"Workshop Collection ID",
"Category":"CS2 Server Settings",
"Description":"Sets the ID of a [Steam workshop collection](https://steamcommunity.com/workshop/browse/?appid=730&browsesort=trend&section=collections) to download and load on the server. Specify the initial map to load from that collection under Custom Initial Map",
"Keywords":"workshop,collection,host_workshop_collection",
"FieldName":"host_workshop_collection",
"InputType":"number",
"ParamFieldName":"host_workshop_collection",
"IncludeInCommandLine":true,
"SkipIfEmpty":true,
"DefaultValue":"",
"Placeholder":"3065925629",
"EnumValues":{}
},
{
"DisplayName":"Allow Other Map By Players",
"Category":"CS2 Server Settings",
"Description":"If set, and when the server is hosting a workshop collection, players will be able to play another workshop map on the server when it is empty and then rotate their map cycle into the server collection",
"Keywords":"workshop,map,allow,other,sv_workshop_allow_other_maps",
"FieldName":"sv_workshop_allow_other_maps",
"InputType":"checkbox",
"ParamFieldName":"sv_workshop_allow_other_maps",
"IncludeInCommandLine":true,
"DefaultValue":"false",
"EnumValues":{
"False":"false",
"True":"true"
}
},
{ {
"DisplayName":"Player Limit", "DisplayName":"Player Limit",
"Category":"CS2 Server Settings", "Category":"CS2 Server Settings",