From 13a1dcd0fa7e0cf174b949dff5fb2377a05475f2 Mon Sep 17 00:00:00 2001 From: IceOfWraith <96364530+IceOfWraith@users.noreply.github.com> Date: Wed, 22 Dec 2021 18:09:48 -0600 Subject: [PATCH] Add Risk of Rain 2 This commit enables the use of Risk of Rain 2 servers on Windows only. There is no officially supported way to run on Linux. I'm attempting to solve this through Proton eventually, but it isn't currently an option. --- risk-of-rain-2.kvp | 39 ++++++++++++++++++++++++ risk-of-rain-2config.json | 57 +++++++++++++++++++++++++++++++++++ risk-of-rain-2metaconfig.json | 23 ++++++++++++++ 3 files changed, 119 insertions(+) create mode 100644 risk-of-rain-2.kvp create mode 100644 risk-of-rain-2config.json create mode 100644 risk-of-rain-2metaconfig.json diff --git a/risk-of-rain-2.kvp b/risk-of-rain-2.kvp new file mode 100644 index 0000000..b627699 --- /dev/null +++ b/risk-of-rain-2.kvp @@ -0,0 +1,39 @@ +App.AdminMethod=STDIO +App.ApplicationPort1=27015 +App.ApplicationPort2=27016 +App.ApplicationPort3=27017 +App.ApplicationReadyMode=RegexMatch +App.BaseDirectory=./risk-of-rain-2/1180760/ +App.CommandLineArgs="" +App.CommandLineParameterDelimiter= +App.CommandLineParameterFormat= +App.LinuxCommandLineArgs= +App.ExecutableLinux=1580130/proton +App.DisplayName=Risk of Rain 2 +App.EnvironmentVariables={"LD_LIBRARY_PATH": "./linux64:%LD_LIBRARY_PATH%", "SteamAppId": "632360"} +App.ExecutableLinux=1180760/ +App.ExecutableWin=1180760\Risk of Rain 2.exe +App.ExitMethod=OS_CLOSE +App.ExitString=stop +App.HasReadableConsole=true +App.HasWritableConsole=false +App.RapidStartup=false +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 +Console.ThrowawayMessageRegex=^((WARNING|ERROR): Shader.+)|((Filename:.*))$ +Console.AppReadyRegex=^.*Press Enter to chat.$ +Console.UserJoinRegex=^.*GameNetworkManager.AddPlayerInternal.*$ +Console.UserLeaveRegex=^(.*Log: connection .* has been disconnected by timeout.*)|(.*Kicking client on connection.*)$ +Console.UserChatRegex=^\[\d\d:\d\d:\d\d\] \[CHAT\] <(?.+?)> (?.+)$ +Meta.Author=IceOfWraith +Meta.ConfigManifest=risk-of-rain-2config.json +Meta.MetaConfigManifest=risk-of-rain-2metaconfig.json +Meta.ConfigRoot=risk-of-rain-2.kvp +Meta.Description= +Meta.DisplayImageSource=steam:632360 +Meta.DisplayName=Risk of Rain 2 +Meta.EndpointURIFormat=steam://connect/{ip}/{GenericModule.App.ApplicationPort2} +Meta.OS=1 +Meta.URL=https://store.steampowered.com/app/632360/Risk_of_Rain_2/ \ No newline at end of file diff --git a/risk-of-rain-2config.json b/risk-of-rain-2config.json new file mode 100644 index 0000000..4d954df --- /dev/null +++ b/risk-of-rain-2config.json @@ -0,0 +1,57 @@ +[ + { + "DisplayName": "Host name", + "Category": "Server Settings", + "Description": "Display name of the host", + "Keywords": "host name server", + "FieldName": "sv_hostname", + "InputType": "text", + "IsFlagArgument": false, + "ParamFieldName": "sv_hostname", + "IncludeInCommandLine": false, + "DefaultValue": "Powered by AMP", + "EnumValues": {} + }, + { + "DisplayName": "Password", + "Category": "Server Settings", + "Description": "Server password for users to join", + "Keywords": "server password users", + "FieldName": "sv_password", + "InputType": "password", + "IsFlagArgument": false, + "ParamFieldName": "sv_password", + "IncludeInCommandLine": false, + "DefaultValue": "", + "EnumValues": {} + }, + { + "DisplayName": "Max Players", + "Category": "Server Settings", + "Description": "The maximum number of players", + "Keywords": "max players", + "FieldName": "sv_maxplayers", + "InputType": "number", + "IsFlagArgument": false, + "ParamFieldName": "sv_maxplayers", + "IncludeInCommandLine": false, + "DefaultValue": "4", + "EnumValues": {} + }, + { + "DisplayName": "Steam Heartbeat", + "Category": "Server Settings", + "Description": "Advertise on the server list", + "Keywords": "advertise server list steam heartbeat", + "FieldName": "steam_server_heartbeat_enabled", + "InputType": "checkbox", + "IsFlagArgument": false, + "ParamFieldName": "steam_server_heartbeat_enabled", + "IncludeInCommandLine": false, + "DefaultValue": "1", + "EnumValues": { + "0": "False", + "1": "True" + } + } +] \ No newline at end of file diff --git a/risk-of-rain-2metaconfig.json b/risk-of-rain-2metaconfig.json new file mode 100644 index 0000000..2fdc3c3 --- /dev/null +++ b/risk-of-rain-2metaconfig.json @@ -0,0 +1,23 @@ +[ + { + "ConfigFile": "Risk of Rain 2_Data/Config/server.cfg", + "ConfigType": "kvp", + "ConfigFormat": "{0} \"{1}\";", + "Subsections": [ + { + "Heading": "$root", + "SettingMappings": { + "sv_maxplayers": "sv_maxplayers", + "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", + } + } + + ] + } +] +