From 1a1db4cce71891fe079c1cb320c90ba9dad349d6 Mon Sep 17 00:00:00 2001 From: IceOfWraith <96364530+IceOfWraith@users.noreply.github.com> Date: Sat, 29 Jan 2022 20:32:24 -0600 Subject: [PATCH] Update Risk of Rain 2 Updated Risk of Rain 2 to use the MaxUsers properly. --- risk-of-rain-2.kvp | 1 + risk-of-rain-2config.json | 4 ++-- risk-of-rain-2metaconfig.json | 16 ++++++++-------- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/risk-of-rain-2.kvp b/risk-of-rain-2.kvp index b627699..e537541 100644 --- a/risk-of-rain-2.kvp +++ b/risk-of-rain-2.kvp @@ -22,6 +22,7 @@ App.RootDir=./risk-of-rain-2/ App.UpdateSource=Multi App.UpdateSources=[{"UpdateStageName": "SteamCMD Download","UpdateSourcePlatform": "All", "UpdateSource": "SteamCMD", "UpdateSourceData": "1180760", "ForceDownloadPlatform": "Windows"},{"UpdateStageName": "SDK Download","UpdateSourcePlatform": "All", "UpdateSource": "SteamCMD", "UpdateSourceData": "1007", "UpdateSourceTarget": "1180760", "ForceDownloadPlatform": "Windows"}] App.WorkingDir=1180760 +App.MaxUsers=4 Console.ThrowawayMessageRegex=^((WARNING|ERROR): Shader.+)|((Filename:.*))$ Console.AppReadyRegex=^.*Press Enter to chat.$ Console.UserJoinRegex=^.*GameNetworkManager.AddPlayerInternal.*$ diff --git a/risk-of-rain-2config.json b/risk-of-rain-2config.json index 1915c1c..c947630 100644 --- a/risk-of-rain-2config.json +++ b/risk-of-rain-2config.json @@ -30,7 +30,7 @@ "Category": "Server Settings", "Description": "The maximum number of players", "Keywords": "max players", - "FieldName": "sv_maxplayers", + "FieldName": "$MaxUsers", "InputType": "number", "IsFlagArgument": false, "ParamFieldName": "sv_maxplayers", @@ -54,4 +54,4 @@ "False": "0" } } -] +] \ No newline at end of file diff --git a/risk-of-rain-2metaconfig.json b/risk-of-rain-2metaconfig.json index 2fdc3c3..9f0888f 100644 --- a/risk-of-rain-2metaconfig.json +++ b/risk-of-rain-2metaconfig.json @@ -1,19 +1,19 @@ [ - { + { "ConfigFile": "Risk of Rain 2_Data/Config/server.cfg", "ConfigType": "kvp", - "ConfigFormat": "{0} \"{1}\";", + "ConfigFormat": "{0} \"{1}\";", "Subsections": [ { "Heading": "$root", "SettingMappings": { - "sv_maxplayers": "sv_maxplayers", + "sv_maxplayers": "$MaxUsers", "steam_server_heartbeat_enabled": "steam_server_heartbeat_enabled", - "sv_hostname": "sv_hostname", - "sv_port": "$ApplicationPort1", - "steam_server_query_port": "$ApplicationPort2", - "steam_server_steam_port": "$ApplicationPort3", - "sv_password": "sv_password", + "sv_hostname": "sv_hostname", + "sv_port": "$ApplicationPort1", + "steam_server_query_port": "$ApplicationPort2", + "steam_server_steam_port": "$ApplicationPort3", + "sv_password": "sv_password", } }