Complete Overhaul of the Configuration File

Completely Re-Do the configuration file.
Added Mod functionality
This commit is contained in:
Shinynecrid 2022-02-02 17:58:34 -06:00
parent 5749cf4b93
commit dd336cff45
4 changed files with 210 additions and 49 deletions

106
InsurgencySS_Game.ini Normal file
View File

@ -0,0 +1,106 @@
[/Script/Insurgency.INSGameMode]
bKillFeed={{bKillFeed}}
bKillFeedSpectator={{bKillFeedSpectator}}
bKillerInfo={{bKillerInfo}}
bKillerInfoRevealDistance={{bKillerInfoRevealDistance}}
TeamKillLimit={{TeamKillLimit}}
TeamKillGrace={{TeamKillGrace}}
TeamKillReduceTime={{TeamKillReduceTime}}
bDeadSay={{bDeadSay}}
bDeadSayTeam={{bDeadSayTeam}}
bVoiceAllowDeadChat={{bVoiceAllowDeadChat}}
bVoiceEnemyHearsLocal={{bVoiceEnemyHearsLocal}}
ObjectiveCaptureTime={{ObjectiveCaptureTime}}
ObjectiveResetTime={{ObjectiveResetTime}}
ObjectiveSpeedup={{ObjectiveSpeedup}}
ObjectiveMaxSpeedupPlayers={{ObjectiveMaxSpeedupPlayers}}
[/Script/Insurgency.INSMultiplayerMode]
bKillFeedGameStartingIntermissionTime={{bKillFeedGameStartingIntermissionTime}}
WinTime={{WinTime}}
PostRoundTime={{PostRoundTime}}
PostGameTime={{PostGameTime}}
bAutoAssignTeams={{bAutoAssignTeams}}
bAllowFriendlyFire={{bAllowFriendlyFire}}
FriendlyFireModifier={{FriendlyFireModifier}}
FriendlyFireReflect={{FriendlyFireReflect}}
bAutoBalanceTeams={{bAutoBalanceTeams}}
AutoBalanceDelay={{AutoBalanceDelay}}
bMapVoting={{bMapVoting}}
bUseMapCycle={{bUseMapCycle}}
bVoiceIntermissionAllowAll={{bVoiceIntermissionAllowAll}}
IdleLimit={{IdleLimit}}
IdleLimitLowReinforcements={{IdleLimitLowReinforcements}}
IdleCheckFrequency={{IdleCheckFrequency}}
MinimumPlayers={{MinimumPlayers}}
RoundLimit={{RoundLimit}}
WinLimit={{WinLimit}}
GameTimeLimit={{GameTimeLimit}}
PreRoundLimit={{PreRoundLimit}}
RoundTime={{RoundTime}}
OverTime={{OverTime}}
TeamSwitchTime={{TeamSwitchTime}}
SwitchTeamsEveryRound={{SwitchTeamsEveryRound}}
bAllowPlayerTeamSelect={{bAllowPlayerTeamSelect}}
bBots={{bBots}}
BotQuots={{BotQuots}}
InitialSupply={{InitialSupply}}
MaximumSupply={{MaximumSupply}}
bSupplyGainEnabled={{bSupplyGainEnabled}}
bAwardSupplyInstantly={{bAwardSupplyInstantly}}
SupplyGainFrequency={{SupplyGainFrequency}}
[/Script/Insurgency.INSPushGameMode]
RoundTimeExtension={{RoundTimeExtension}}
AttackerWavesPerObjective={{AttackerWavesPerObjective}}
AttackerWaveDPR={{AttackerWaveDPR}}
AttackerWaveTimer={{AttackerWaveTimer}}
DefenderWavesPerObjective={{DefenderWavesPerObjective}}
DefenderWaveDPR={{DefenderWaveDPR}}
DefenderWaveTimer={{DefenderWaveTimer}}
LastStandSetupDelay={{LastStandSetupDelay}}
AdvanceAttackerSpawnsDelay={{AdvanceAttackerSpawnsDelay}}
[/Script/Insurgency.INSFrontlineGameMode]
StartingWaves={{StartingWaves}}
CapturingBonusWave={{CapturingBonusWave}}
RegressSpawnsTimer={{RegressSpawnsTimer}}
[/Script/Insurgency.INSSkirmishGameMode]
DefaultReinforcementWaves={{DefaultReinforcementWaves}}
CaptureBonusWaves={{CaptureBonusWaves}}
[/Script/Insurgency.INSCoopMode]
AIDifficulty={{AIDifficulty}}
bUseVehicleInsertion={{bUseVehicleInsertion}}
FriendlyBotQuota={{FriendlyBotQuota}}
MinimumEnemies={{MinimumEnemies}}
MaximumEnemies={{MaximumEnemies}}
[/Script/Insurgency.INSCheckpointGameMode]
DefendTimer={{DefendTimer}}
DefendTimerFinal={{DefendTimerFinal}}
RetreatTimer={{RetreatTimer}}
RespawnDPR={{RespawnDPR}}
RespawnDelay={{RespawnDelay}}
PostCaptureRushTimer={{PostCaptureRushTimer}}
CounterAttackRespawnDPR={{CounterAttackRespawnDPR}}
CounterAttackRespawnDelay={{CounterAttackRespawnDelay}}
ObjectiveTotalEnemyRespawnMultiplierMin={{ObjectiveTotalEnemyRespawnMultiplierMin}}
ObjectiveTotalEnemyRespawnMultiplierMax={{ObjectiveTotalEnemyRespawnMultiplierMax}}
FinalCacheBotQuotaMultiplier={{FinalCacheBotQuotaMultiplier}}
[/Script/Insurgency.TeamInfo]
bVotingEnabled={{bVotingEnabled}}
TeamVoteIssues={{TeamVoteIssues}}
[/Script/Insurgency.VoteIssueKick]
bCanTargetEnemies={{bCanTargetEnemies}}
bRequiresMinimumToStart={{bRequiresMinimumToStart}}
DefaultVoteBanDuration={{DefaultVoteBanDuration}}
IdleVoteBanDuration={{IdleVoteBanDuration}}
MinimumPlayerRatio={{MinimumPlayerRatio}}
MinimumPlayersRequired={{MinimumPlayersRequired}}
MinimumYesNoDifference={{MinimumYesNoDifference}}
VotePassRatio={{VotePassRatio}}
VoteTimeout={{VoteTimeout}}

View File

@ -1,7 +1,7 @@
App.AdminMethod=SourceRCON App.AdminMethod=SourceRCON
App.ApplicationPort1=27102 App.ApplicationPort1=27102
App.ApplicationPort2=27131 App.ApplicationPort2=27131
App.ApplicationReadyMode=RCONConnected App.ApplicationReadyMode=RegexMatch
App.BaseDirectory=./insurgencysandstorm/581330/ App.BaseDirectory=./insurgencysandstorm/581330/
App.CommandLineArgs={{Map}}?Scenario={{Scenario}}?MaxPlayers={{$MaxUsers}}{{password_enabled}}{{Password}} -Port={{$ApplicationPort1}} -QueryPort={{$ApplicationPort2}} -Rcon -RconPassword={{$RemoteAdminPassword}} -RconListenPort={{$RemoteAdminPort}} -log -GameStats {{$FormattedArgs}} App.CommandLineArgs={{Map}}?Scenario={{Scenario}}?MaxPlayers={{$MaxUsers}}{{password_enabled}}{{Password}} -Port={{$ApplicationPort1}} -QueryPort={{$ApplicationPort2}} -Rcon -RconPassword={{$RemoteAdminPassword}} -RconListenPort={{$RemoteAdminPort}} -log -GameStats {{$FormattedArgs}}
App.CommandLineParameterDelimiter= App.CommandLineParameterDelimiter=
@ -23,13 +23,14 @@ App.UpdateSource=Multi
App.UpdateSources=[{"UpdateStageName": "SteamCMD Download","UpdateSourcePlatform": "All", "UpdateSource": "SteamCMD", "UpdateSourceData": "581330"}] App.UpdateSources=[{"UpdateStageName": "SteamCMD Download","UpdateSourcePlatform": "All", "UpdateSource": "SteamCMD", "UpdateSourceData": "581330"}]
App.WorkingDir=581330 App.WorkingDir=581330
App.UseRandomAdminPassword=True App.UseRandomAdminPassword=True
Console.AppReadyRegex=^\[[\d\.]+-[\d\.]+:\d+\]\[[ \d]+\]LogGameState: Match State Changed from WaitingToStart to InProgress$ Console.AppReadyRegex=^\[\d+.\d+.\d+-\d+.\d+.\d+\:\d+\]\[.*\]LogSession\: Display\: OnCreateSessionComplete.*Result: \(1\)$
Console.ThrowawayMessageRegex=^(WARNING|ERROR): Shader.+$ Console.ThrowawayMessageRegex=^(WARNING|ERROR): Shader.+$
Console.UserChatRegex= Console.UserChatRegex=
Console.UserJoinRegex= Console.UserJoinRegex=
Console.UserLeaveRegex= Console.UserLeaveRegex=
Meta.Author=Shinynecrid,IceOfWraith Meta.Author=Shinynecrid,IceOfWraith
Meta.ConfigManifest=insurgencysandstormconfig.json Meta.ConfigManifest=insurgencysandstormconfig.json
Meta.MetaConfigManifest=insurgencysandstormmetaconfig.json
Meta.ConfigRoot=insurgencysandstorm.kvp Meta.ConfigRoot=insurgencysandstorm.kvp
Meta.Description=Insurgency Sandstorm Dedicated Server Meta.Description=Insurgency Sandstorm Dedicated Server
Meta.DisplayImageSource=steam:581320 Meta.DisplayImageSource=steam:581320

View File

@ -1,8 +1,8 @@
[ [
{ {
"DisplayName": "Map", "DisplayName": "Map",
"Category": "Server Config", "Category": "Startup Config",
"Description": "Set the maps starting server", "Description": "Set the servers starting map",
"Keywords": "Map", "Keywords": "Map",
"FieldName": "Map", "FieldName": "Map",
"InputType": "text", "InputType": "text",
@ -15,7 +15,7 @@
}, },
{ {
"DisplayName": "Scenario", "DisplayName": "Scenario",
"Category": "Server Config", "Category": "Startup Config",
"Description": "Set the server scenario", "Description": "Set the server scenario",
"Keywords": "Scenario", "Keywords": "Scenario",
"FieldName": "Scenario", "FieldName": "Scenario",
@ -29,7 +29,7 @@
}, },
{ {
"DisplayName": "Hostname", "DisplayName": "Hostname",
"Category": "Server Config", "Category": "Startup Config",
"Description": "Set the servers hostname", "Description": "Set the servers hostname",
"Keywords": "Hostname", "Keywords": "Hostname",
"FieldName": "Hostname", "FieldName": "Hostname",
@ -42,21 +42,21 @@
}, },
{ {
"DisplayName": "Token", "DisplayName": "Token",
"Category": "Server Config", "Category": "Startup Config",
"Description": "Set the steam GSLTToken", "Description": "Set the steam GSLTToken APPID 581320 [Get A GSLToken ID](https://steamcommunity.com/dev/managegameservers/)",
"Keywords": "Token", "Keywords": "Token",
"FieldName": "GSLTToken", "FieldName": "GSLTToken",
"InputType": "text", "InputType": "password",
"IsFlagArgument": false, "IsFlagArgument": false,
"ParamFieldName": "GSLTToken", "ParamFieldName": "GSLTToken",
"IncludeInCommandLine": true, "IncludeInCommandLine": true,
"DefaultValue": "1234567890", "DefaultValue": "",
"EnumValues": {}, "EnumValues": {},
"SkipIfEmpty": true "SkipIfEmpty": true
}, },
{ {
"DisplayName": "Max Players", "DisplayName": "Max Players",
"Category": "Server Config", "Category": "Startup Config",
"Description": "Set server maximum amount of players", "Description": "Set server maximum amount of players",
"Keywords": "Max Users", "Keywords": "Max Users",
"FieldName": "$MaxUsers", "FieldName": "$MaxUsers",
@ -69,21 +69,21 @@
}, },
{ {
"DisplayName": "Game Stats Token", "DisplayName": "Game Stats Token",
"Category": "Server Config", "Category": "Startup Config",
"Description": "Set the game stats token for XP Gain", "Description": "Set the game stats token for XP Gain [Get A GameStats Token ID](https://gamestats.sandstorm.game/)",
"Keywords": "Stats", "Keywords": "Stats",
"FieldName": "GameStatsToken", "FieldName": "GameStatsToken",
"InputType": "text", "InputType": "password",
"IsFlagArgument": false, "IsFlagArgument": false,
"ParamFieldName": "GameStatsToken", "ParamFieldName": "GameStatsToken",
"IncludeInCommandLine": true, "IncludeInCommandLine": true,
"DefaultValue": "1234567890", "DefaultValue": "",
"EnumValues": {}, "EnumValues": {},
"SkipIfEmpty": true "SkipIfEmpty": true
}, },
{ {
"DisplayName": "Password", "DisplayName": "Password",
"Category": "Server Config", "Category": "Startup Config",
"Description": "Sets a password for the server", "Description": "Sets a password for the server",
"Keywords": "Password", "Keywords": "Password",
"FieldName": "Password", "FieldName": "Password",
@ -97,7 +97,7 @@
}, },
{ {
"DisplayName": "Password Enabled", "DisplayName": "Password Enabled",
"Category": "Server Config", "Category": "Startup Config",
"Description": "Enables the server password", "Description": "Enables the server password",
"Keywords": "Password", "Keywords": "Password",
"FieldName": "password_enabled", "FieldName": "password_enabled",
@ -113,7 +113,7 @@
}, },
{ {
"DisplayName": "Mutator", "DisplayName": "Mutator",
"Category": "Server Config", "Category": "Startup Config",
"Description": "Set a server mutator", "Description": "Set a server mutator",
"Keywords": "Mutator", "Keywords": "Mutator",
"FieldName": "mutators", "FieldName": "mutators",
@ -125,23 +125,9 @@
"EnumValues": {}, "EnumValues": {},
"SkipIfEmpty": true "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", "DisplayName": "Rule Set",
"Category": "Server Config", "Category": "Startup Config",
"Description": "Set the rules for the server", "Description": "Set the rules for the server",
"Keywords": "Rules", "Keywords": "Rules",
"FieldName": "ruleset", "FieldName": "ruleset",
@ -153,32 +139,73 @@
"EnumValues": {}, "EnumValues": {},
"SkipIfEmpty": true "SkipIfEmpty": true
}, },
{
"DisplayName": "Mods Enabled",
"Category": "Startup Config",
"Description": "Enables the server to use a Modlist",
"Keywords": "Mods",
"FieldName": "Mods_enabled",
"InputType": "checkbox",
"IsFlagArgument": false,
"ParamFieldName": "Mods_enabled",
"IncludeInCommandLine": false,
"DefaultValue": "",
"EnumValues": {
"False": "",
"True": "-Mods -ModList=Mods"
}
},
{ {
"DisplayName": "MOTD", "DisplayName": "MOTD",
"Category": "Server Config", "Category": "Startup Config",
"Description": "Set the server MOTD file", "Description": "Set the server MOTD",
"Keywords": "MOTD", "Keywords": "MOTD",
"FieldName": "motd", "FieldName": "Motd",
"InputType": "text", "InputType": "text",
"IsFlagArgument": false, "IsFlagArgument": false,
"ParamFieldName": "motd", "ParamFieldName": "Motd",
"IncludeInCommandLine": true, "IncludeInCommandLine": false,
"DefaultValue": "", "DefaultValue": "",
"EnumValues": {}, "EnumValues": {},
"SkipIfEmpty": true "SkipIfEmpty": true
}, },
{ {
"DisplayName": "Admin List", "DisplayName": "Admin Players",
"Category": "Server Config", "Description": "A list of Steam64 IDs for players that are in-game admins. [Find your Steam64 ID](https://steamidfinder.com/)",
"Description": "set Admin List File for the server", "FieldName": "AdminPlayers",
"Keywords": "Admin", "Category": "Startup Config",
"FieldName": "AdminList", "InputType": "list",
"InputType": "text", "Special": "listfile:./insurgencysandstorm/581330/Insurgency/Config/Server/Admins.txt"
},
{
"DisplayName": "Map Cycle",
"Description": "A List of map scenarios for the server to use",
"FieldName": "MapCycle",
"Category": "Startup Config",
"InputType": "list",
"Special": "listfile:./insurgencysandstorm/581330/Insurgency/Config/Server/MapCycle.txt"
},
{
"DisplayName": "Mods",
"Description": "Define a list of Mods for the server to use.",
"FieldName": "Mods",
"Category": "Startup Config",
"InputType": "list",
"Special": "listfile:./insurgencysandstorm/581330/Insurgency/Config/Server/Mods.txt"
},
{
"DisplayName": "Kill Feed Enabled",
"Category": "Game Mode",
"Description": "Is the kill feed enabled?",
"Keywords": "Kill Feed",
"FieldName": "bKillFeed",
"InputType": "checkbox",
"IsFlagArgument": false, "IsFlagArgument": false,
"ParamFieldName": "AdminList", "ParamFieldName": "bKillFeed",
"IncludeInCommandLine": true, "DefaultValue": "False",
"DefaultValue": "", "EnumValues": {
"EnumValues": {}, "False": "False",
"SkipIfEmpty": true "True": "True"
}
} }
] ]

View File

@ -0,0 +1,27 @@
[
{
"ConfigFile": "Insurgency/Saved/Config/WindowsServer/Game.ini",
"AutoMap": true,
"ConfigType": "template",
"ConfigFileTemplate": "InsurgencySS_Game.ini"
},
{
"ConfigFile": "Insurgency/Saved/Config/LinuxServer/Game.ini",
"AutoMap": true,
"ConfigType": "template",
"ConfigFileTemplate": "InsurgencySS_Game.ini"
},
{
"ConfigFile": "Insurgency/Config/Server/Motd.txt",
"ConfigType": "kvp",
"ConfigFormat": "{0}{1}",
"Subsections": [
{
"Heading": "$root",
"SettingMappings": {
"": "Motd"
}
}
]
}
]