Update Risk of Rain 2 (#133)

This updates the following:

1. Runs on WINE
2. Docker capable!
3. Game mode option
4. Updates player join/leave regex using sessionid
5. New ports method
This commit is contained in:
IceOfWraith 2022-05-29 10:07:44 -05:00 committed by GitHub
parent 5fdaabfbbb
commit 2397051f3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 96 additions and 43 deletions

View File

@ -1,45 +1,81 @@
App.AdminMethod=STDIO
App.ApplicationPort1=27015
App.ApplicationPort2=27016
App.ApplicationPort3=27017
App.RemoteAdminPort=0
App.ApplicationReadyMode=RegexMatch
App.BaseDirectory=./risk-of-rain-2/1180760/
App.CommandLineArgs={{$PlatformArgs}}
App.CommandLineParameterDelimiter=
App.CommandLineParameterFormat=
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":"{{$SteamAppID}}","STEAM_COMPAT_DATA_PATH":"{{$FullRootDir}}1580130","STEAM_COMPAT_CLIENT_INSTALL_PATH":"{{$FullRootDir}}1580130"}
App.ExecutableLinux=/usr/bin/xvfb-run
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":"SteamCMD Download","UpdateSourcePlatform":"All","UpdateSource":"SteamCMD","UpdateSourceData":"1007","UpdateSourceTarget":"1180760","ForceDownloadPlatform":"Windows"},{"UpdateStageName":"Proton Compatibility Layer","UpdateSourcePlatform":"Linux","UpdateSource":"SteamCMD","UpdateSourceData":"1580130"}]
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=^.*SteamworksServerManager.OnAuthChange.steamId=(?<userid>\d+),.*$
Console.UserLeaveRegex=^.*Log: connection .* has been disconnected by timeout.*
Console.UserChatRegex=^.*\[\d\d:\d\d:\d\d\] \[CHAT\] <(?<username>.+?)> (?<message>.+)$
Meta.DisplayName=Risk of Rain 2
Meta.Description=Risk of Rain 2 Dedicated Server
Meta.OS=Windows, Linux
Meta.Arch=x86_64
Meta.Author=IceOfWraith
Meta.URL=https://store.steampowered.com/app/632360/Risk_of_Rain_2/
Meta.DisplayImageSource=steam:632360
Meta.EndpointURIFormat=steam://connect/{ip}:{GenericModule.App.Ports.$ApplicationPort2}
Meta.ConfigManifest=risk-of-rain-2config.json
Meta.MetaConfigManifest=risk-of-rain-2metaconfig.json
Meta.ConfigRoot=risk-of-rain-2.kvp
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=3
Meta.URL=https://store.steampowered.com/app/632360/Risk_of_Rain_2/
Meta.MinAMPVersion=2.3.3.0
Meta.SpecificDockerImage=cubecoders/ampbase:wine
Meta.DockerRequired=False
Meta.ContainerPolicy=Supported
Meta.Prerequsites=[]
Meta.ConfigReleaseState=NotSpecified
App.DisplayName=Risk of Rain 2
App.RootDir=./risk-of-rain-2/
App.BaseDirectory=./risk-of-rain-2/1180760/
App.ExecutableWin=1180760\Risk of Rain 2.exe
App.ExecutableLinux=/usr/bin/xvfb-run
App.WorkingDir=1180760
App.LinuxCommandLineArgs=-a wine "./Risk of Rain 2.exe"
App.WindowsCommandLineArgs=
App.CommandLineArgs={{$PlatformArgs}}
App.UseLinuxIOREDIR=False
App.AppSettings={}
App.EnvironmentVariables={"LD_LIBRARY_PATH":"./linux64:%LD_LIBRARY_PATH%","SteamAppId":"{{$SteamAppID}}"}
App.CommandLineParameterFormat=+{0} {1}
App.CommandLineParameterDelimiter=
App.ExitMethod=OS_CLOSE
App.ExitTimeout=30
App.ExitString=stop
App.ExitFile=app_exit.lck
App.HasWriteableConsole=True
App.HasReadableConsole=True
App.SupportsLiveSettingsChanges=False
App.LiveSettingChangeCommandFormat=set {0} "{1}"
App.ApplicationIPBinding=0.0.0.0
App.Ports=[{"Protocol":2,"Port":27015,"Offset":0,"Range":1,"Ref":"ApplicationPort1","Name":"Application Port 1","Description":"","ChildPorts":null},{"Protocol":2,"Port":27016,"Offset":0,"Range":1,"Ref":"ApplicationPort2","Name":"Application Port 2","Description":"","ChildPorts":null},{"Protocol":2,"Port":27017,"Offset":0,"Range":1,"Ref":"ApplicationPort3","Name":"Application Port 3","Description":"","ChildPorts":null}]
App.AdminPortRef=RemoteAdminPort
App.PrimaryApplicationPortRef=ApplicationPort1
App.UniversalSleepApplicationUDPPortRef=ApplicationPort1
App.UniversalSleepSteamQueryPortRef=ApplicationPort2
App.MaxUsers=4
App.UseRandomAdminPassword=False
App.RemoteAdminPassword=Password123
App.AdminMethod=STDIO
App.AdminLoginTransform=None
App.RCONConnectDelaySeconds=5
App.RCONConnectRetrySeconds=5
App.TelnetLoginFormat={0}
App.UpdateSources=[{"UpdateStageName":"SteamCMD Download","UpdateSourcePlatform":"All","UpdateSource":"SteamCMD","UpdateSourceData":"1180760","ForceDownloadPlatform":"Windows"},{"UpdateStageName":"SteamCMD Download","UpdateSourcePlatform":"All","UpdateSource":"SteamCMD","UpdateSourceData":"1007","UpdateSourceTarget":"1180760","ForceDownloadPlatform":"Windows"}]
App.Compatibility=None
App.SteamUpdateAnonymousLogin=True
App.SteamForceLoginPrompt=False
App.RapidStartup=False
App.SupportsUniversalSleep=False
App.WakeupMode=Any
App.ApplicationReadyMode=RegexMatch
App.TemplateMatchRegex={{(\$?[\w]+)}}
Console.FilterMatchRegex=
Console.FilterMatchReplacement=
Console.ThrowawayMessageRegex=^.*Couldn't create a Convex Mesh from source mesh.*$|^.*Shader .* fallback shader .* not found.*$|^.*\[RoR2\.Audio\.NetworkSoundEventCatalog\] Error during network sound registration.*does not exist.*$|^.*\(Filename:.*Line: \d+\).*$
Console.AppReadyRegex=^.*Press Enter to chat.*$
Console.UserJoinRegex=^.*NetworkManagerSystem\.AddPlayerInternal\(conn=hostId: \d+ connectionId: (?<sessionid>\d+) .*$
Console.UserLeaveRegex=^.*Log: connection \{(?<sessionid>\d+)\} has been disconnected by timeout.*$
Console.UserChatRegex=^\[\d\d:\d\d:\d\d\] \[CHAT\] <(?<username>.+?)> (?<message>.+)$
Console.UpdateAvailableRegex=^\[\d\d:\d\d:\d\d\] \[INFO\] A new server update is available! v[\d\.]+.$
Console.MetricsRegex=
Console.SuppressLogAtStart=False
Console.ActivateLogRegex=
Console.UserActions={}
Limits.SleepMode=True
Limits.SleepOnStart=False
Limits.SleepDelayMinutes=5
Limits.DozeDelay=2
Limits.AutoRetryCount=5
Limits.SleepStartThresholdSeconds=100

View File

@ -53,5 +53,22 @@
"True": "1",
"False": "0"
}
},
{
"DisplayName": "Game Mode",
"Category": "Server Settings",
"Description": "Select a game mode for the server",
"Keywords": "game mode",
"FieldName": "gamemode",
"InputType": "enum",
"IsFlagArgument": false,
"ParamFieldName": "gamemode",
"IncludeInCommandLine": false,
"DefaultValue": "ClassicRun",
"EnumValues": {
"EclipseRun": "Eclipse",
"ClassicRun": "Normal",
"InfiniteTowerRun": "Simulacrum"
}
}
]

View File

@ -14,10 +14,10 @@
"steam_server_query_port": "$ApplicationPort2",
"steam_server_steam_port": "$ApplicationPort3",
"sv_password": "sv_password",
"gamemode": "gamemode"
}
}
]
}
]
]