From af6ca969a41694f119ef62a7dc0bccaf832f7de4 Mon Sep 17 00:00:00 2001 From: Shinynecrid Date: Tue, 1 Feb 2022 09:35:25 -0600 Subject: [PATCH] Update Configuration and Allow Skippable Settings Fixed a few things with the configuration file --- insurgencysandstorm.kvp | 8 +-- insurgencysandstormconfig.json | 90 ++++++++++++++++++++++++++++------ 2 files changed, 80 insertions(+), 18 deletions(-) diff --git a/insurgencysandstorm.kvp b/insurgencysandstorm.kvp index 2714497..8eca38e 100644 --- a/insurgencysandstorm.kvp +++ b/insurgencysandstorm.kvp @@ -1,16 +1,16 @@ App.AdminMethod=SourceRCON App.ApplicationPort1=27102 App.ApplicationPort2=27131 -App.ApplicationReadyMode=Immediate +App.ApplicationReadyMode=RCONConnected App.BaseDirectory=./insurgencysandstorm/581330/ -App.CommandLineArgs={{Map}}?Scenario={{Scenario}}?password={{Password}}?MaxPlayers={{$MaxUsers}} -Port={{$ApplicationPort1}} -QueryPort={{$ApplicationPort2}} -Rcon -RconPassword={{$RemoteAdminPassword}} -RconListetnPort={{$RemoteAdminPort}} -log -GameStats {{$FormattedArgs}} +App.CommandLineArgs={{Map}}?Scenario={{Scenario}}?password={{Password}}?MaxPlayers={{$MaxUsers}} -Port={{$ApplicationPort1}} -QueryPort={{$ApplicationPort2}} -Rcon -RconPassword={{$RemoteAdminPassword}} -RconListenPort={{$RemoteAdminPort}} -log -GameStats {{$FormattedArgs}} App.CommandLineParameterDelimiter= App.CommandLineParameterFormat=-{0}="{1}" App.DisplayName=InsurgencySandstorm App.EnvironmentVariables={"LD_LIBRARY_PATH": "./linux64:%LD_LIBRARY_PATH%", "SteamAppId": "581320"} App.ExecutableLinux=581330/Insurgency/Binaries/Linux/InsurgencyServer-Linux-Shipping App.ExecutableWin=581330\Insurgency\Binaries\Win64\InsurgencyServer-Win64-Shipping.exe -App.ExitMethod=OS_Close +App.ExitMethod=String App.ExitString=quit App.RCONConnectDelaySeconds=45 App.RCONConnectRetrySeconds=15 @@ -33,7 +33,7 @@ Meta.ConfigManifest=insurgencysandstormconfig.json Meta.ConfigRoot=insurgencysandstorm.kvp Meta.Description=Insurgency Sandstorm Dedicated Server Meta.DisplayImageSource=steam:581320 -Meta.DisplayName=InsurgencySandstorm +Meta.DisplayName=Insurgency Sandstorm Meta.EndpointURIFormat= Meta.OS=3 Meta.URL=https://steamdb.info/app/581330/ \ No newline at end of file diff --git a/insurgencysandstormconfig.json b/insurgencysandstormconfig.json index 0eadb97..90b533e 100644 --- a/insurgencysandstormconfig.json +++ b/insurgencysandstormconfig.json @@ -1,7 +1,7 @@ [ { "DisplayName": "Map", - "Category": "Server Configuration", + "Category": "Server Config", "Description": "Set the maps starting server", "Keywords": "Map", "FieldName": "Map", @@ -10,11 +10,12 @@ "ParamFieldName": "Map", "IncludeInCommandLine": false, "DefaultValue": "Oilfield", - "EnumValues": {} + "EnumValues": {}, + "SkipIfEmpty": true }, { "DisplayName": "Scenario", - "Category": "Server Configuration", + "Category": "Server Config", "Description": "Set the server scenario", "Keywords": "Scenario", "FieldName": "Scenario", @@ -23,11 +24,12 @@ "ParamFieldName": "Scenario", "IncludeInCommandLine": false, "DefaultValue": "Scenario_Refinery_Push_Security", - "EnumValues": {} + "EnumValues": {}, + "SkipIfEmpty": true }, { "DisplayName": "Hostname", - "Category": "Server Configuration", + "Category": "Server Config", "Description": "Set the servers hostname", "Keywords": "Hostname", "FieldName": "Hostname", @@ -40,7 +42,7 @@ }, { "DisplayName": "Token", - "Category": "Server Configuration", + "Category": "Server Config", "Description": "Set the steam GSLTToken", "Keywords": "Token", "FieldName": "GSLTToken", @@ -49,11 +51,12 @@ "ParamFieldName": "GSLTToken", "IncludeInCommandLine": true, "DefaultValue": "1234567890", - "EnumValues": {} + "EnumValues": {}, + "SkipIfEmpty": true }, { "DisplayName": "Max Players", - "Category": "Server Configuration", + "Category": "Server Config", "Description": "Set server maximum amount of players", "Keywords": "Max Users", "FieldName": "$MaxUsers", @@ -66,7 +69,7 @@ }, { "DisplayName": "Game Stats Token", - "Category": "Server Configuration", + "Category": "Server Config", "Description": "Set the game stats token for XP Gain", "Keywords": "Stats", "FieldName": "GameStatsToken", @@ -75,11 +78,12 @@ "ParamFieldName": "GameStatsToken", "IncludeInCommandLine": true, "DefaultValue": "1234567890", - "EnumValues": {} + "EnumValues": {}, + "SkipIfEmpty": true }, { "DisplayName": "Password", - "Category": "Server Configuration", + "Category": "Server Config", "Description": "Sets a password for the server", "Keywords": "Password", "FieldName": "Password", @@ -88,11 +92,12 @@ "ParamFieldName": "Password", "IncludeInCommandLine": false, "DefaultValue": "", - "EnumValues": {} + "EnumValues": {}, + "SkipIfEmpty": true }, { "DisplayName": "Mutator", - "Category": "Server Configuration", + "Category": "Server Config", "Description": "Set a server mutator", "Keywords": "Mutator", "FieldName": "mutators", @@ -101,6 +106,63 @@ "ParamFieldName": "mutators", "IncludeInCommandLine": true, "DefaultValue": "", - "EnumValues": {} + "EnumValues": {}, + "SkipIfEmpty": true + }, + { + "DisplayName": "Map Cycle", + "Category": "Server Config", + "Description": "Tell the server which map cycle text file to use", + "Keywords": "Map", + "FieldName": "MapCycle", + "InputType": "text", + "IsFlagArgument": false, + "ParamFieldName": "MapCycle", + "IncludeInCommandLine": true, + "DefaultValue": "", + "EnumValues": {}, + "SkipIfEmpty": true + }, + { + "DisplayName": "Rule Set", + "Category": "Server Config", + "Description": "Set the rules for the server", + "Keywords": "Rules", + "FieldName": "ruleset", + "InputType": "text", + "IsFlagArgument": false, + "ParamFieldName": "ruleset", + "IncludeInCommandLine": true, + "DefaultValue": "OfficialRules", + "EnumValues": {}, + "SkipIfEmpty": true + }, + { + "DisplayName": "MOTD", + "Category": "Server Config", + "Description": "Set the server MOTD file", + "Keywords": "MOTD", + "FieldName": "motd", + "InputType": "text", + "IsFlagArgument": false, + "ParamFieldName": "motd", + "IncludeInCommandLine": true, + "DefaultValue": "", + "EnumValues": {}, + "SkipIfEmpty": true + }, + { + "DisplayName": "Admin List", + "Category": "Server Config", + "Description": "set Admin List File for the server", + "Keywords": "Admin", + "FieldName": "AdminList", + "InputType": "text", + "IsFlagArgument": false, + "ParamFieldName": "AdminList", + "IncludeInCommandLine": true, + "DefaultValue": "", + "EnumValues": {}, + "SkipIfEmpty": true } ] \ No newline at end of file