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.
This commit is contained in:
IceOfWraith 2021-12-22 18:09:48 -06:00
parent 948b1b7b3e
commit 13a1dcd0fa
3 changed files with 119 additions and 0 deletions

39
risk-of-rain-2.kvp Normal file
View File

@ -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\] <(?<username>.+?)> (?<message>.+)$
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/

57
risk-of-rain-2config.json Normal file
View File

@ -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"
}
}
]

View File

@ -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",
}
}
]
}
]