From 7c171d4327895a9318a004f1c1041efe84a4bce2 Mon Sep 17 00:00:00 2001 From: IceOfWraith <96364530+IceOfWraith@users.noreply.github.com> Date: Thu, 3 Feb 2022 19:01:15 -0600 Subject: [PATCH 1/2] Update Risk of Rain 2 for Proton This update allows Risk of Rain 2 to run under Proton and xvfb. This requires the user to run the command below to install prerequisites. apt-get install xvfb lib32gcc1 --- risk-of-rain-2.kvp | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/risk-of-rain-2.kvp b/risk-of-rain-2.kvp index e537541..11d28c8 100644 --- a/risk-of-rain-2.kvp +++ b/risk-of-rain-2.kvp @@ -4,14 +4,14 @@ App.ApplicationPort2=27016 App.ApplicationPort3=27017 App.ApplicationReadyMode=RegexMatch App.BaseDirectory=./risk-of-rain-2/1180760/ -App.CommandLineArgs="" +App.CommandLineArgs={{$PlatformArgs}} App.CommandLineParameterDelimiter= App.CommandLineParameterFormat= -App.LinuxCommandLineArgs= -App.ExecutableLinux=1580130/proton +App.LinuxCommandLineArgs=-a "{{$FullRootDir}}1580130/proton" run "./Risk of Rain 2.exe" +App.WindowsCommandLineArgs= App.DisplayName=Risk of Rain 2 -App.EnvironmentVariables={"LD_LIBRARY_PATH": "./linux64:%LD_LIBRARY_PATH%", "SteamAppId": "632360"} -App.ExecutableLinux=1180760/ +App.EnvironmentVariables={"LD_LIBRARY_PATH":"./linux64:%LD_LIBRARY_PATH%","SteamAppId":"{{$SteamAppID}}","STEAM_COMPAT_DATA_PATH":"{{$FullRootDir}}1580130","STEAM_COMPAT_CLIENT_INSTALL_PATH":"{{$FullRootDir}}1580130"} +App.ExecutableLinux=1580130/proton App.ExecutableWin=1180760\Risk of Rain 2.exe App.ExitMethod=OS_CLOSE App.ExitString=stop @@ -20,9 +20,13 @@ 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.UpdateSources=[{"UpdateStageName":"SteamCMD Download","UpdateSourcePlatform":31,"UpdateSource":4,"UpdateSourceData":"1180760","UpdateSourceArgs":null,"UpdateSourceVersion":null,"UpdateSourceTarget":null,"UnzipUpdateSource":false,"OverwriteExistingFiles":false,"ForceDownloadPlatform":1,"UpdateSourceConditionSetting":null,"UpdateSourceConditionValue":null},{"UpdateStageName":"Proton Compatibility Layer","UpdateSourcePlatform":2,"UpdateSource":4,"UpdateSourceData":"1580130","UpdateSourceArgs":null,"UpdateSourceVersion":null,"UpdateSourceTarget":null,"UnzipUpdateSource":false,"OverwriteExistingFiles":false,"ForceDownloadPlatform":0,"UpdateSourceConditionSetting":null,"UpdateSourceConditionValue":null}] App.WorkingDir=1180760 App.MaxUsers=4 +App.SupportsUniversalSleep=False +App.UniversalSleepApplicationUDPPort=1 +App.UniversalSleepSteamQueryPort=2 +App.WakeupMode=Any Console.ThrowawayMessageRegex=^((WARNING|ERROR): Shader.+)|((Filename:.*))$ Console.AppReadyRegex=^.*Press Enter to chat.$ Console.UserJoinRegex=^.*GameNetworkManager.AddPlayerInternal.*$ @@ -32,9 +36,9 @@ 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.Description=Risk of Rain 2 Dedicated Server Meta.DisplayImageSource=steam:632360 Meta.DisplayName=Risk of Rain 2 Meta.EndpointURIFormat=steam://connect/{ip}/{GenericModule.App.ApplicationPort2} -Meta.OS=1 +Meta.OS=3 Meta.URL=https://store.steampowered.com/app/632360/Risk_of_Rain_2/ \ No newline at end of file From d28644048d3bc8962a50491a470fb2a033421c96 Mon Sep 17 00:00:00 2001 From: IceOfWraith <96364530+IceOfWraith@users.noreply.github.com> Date: Thu, 3 Feb 2022 19:40:51 -0600 Subject: [PATCH 2/2] Put the right file... It helps if I put the right file out here. --- risk-of-rain-2.kvp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/risk-of-rain-2.kvp b/risk-of-rain-2.kvp index 11d28c8..16728f0 100644 --- a/risk-of-rain-2.kvp +++ b/risk-of-rain-2.kvp @@ -11,7 +11,7 @@ App.LinuxCommandLineArgs=-a "{{$FullRootDir}}1580130/proton" run "./Risk of Rain App.WindowsCommandLineArgs= App.DisplayName=Risk of Rain 2 App.EnvironmentVariables={"LD_LIBRARY_PATH":"./linux64:%LD_LIBRARY_PATH%","SteamAppId":"{{$SteamAppID}}","STEAM_COMPAT_DATA_PATH":"{{$FullRootDir}}1580130","STEAM_COMPAT_CLIENT_INSTALL_PATH":"{{$FullRootDir}}1580130"} -App.ExecutableLinux=1580130/proton +App.ExecutableLinux=/usr/bin/xvfb-run App.ExecutableWin=1180760\Risk of Rain 2.exe App.ExitMethod=OS_CLOSE App.ExitString=stop