From 46004e1d4b4aebe0b9852e8e9e7e4ded54635085 Mon Sep 17 00:00:00 2001 From: PhonicUK Date: Sat, 13 Feb 2021 15:17:10 +0000 Subject: [PATCH] Add Valheim template. --- valheim.kvp | 50 ++++++++++++++++++++++++++++++++++++++++++++++ valheimconfig.json | 32 +++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 valheim.kvp create mode 100644 valheimconfig.json diff --git a/valheim.kvp b/valheim.kvp new file mode 100644 index 0000000..67d2c1c --- /dev/null +++ b/valheim.kvp @@ -0,0 +1,50 @@ +Meta.DisplayName=Valheim +Meta.Description= +Meta.OS=Windows, Linux +Meta.Author=CubeCoders Limited +Meta.URL=https://www.valheimgame.com/ +Meta.DisplayImageSource=steam:892970 +Meta.EndpointURIFormat=steam://connect/{ip}:{GenericModule.App.ApplicationPort2} +Meta.ConfigManifest=valheimconfig.json +Meta.ConfigRoot=valheim.kvp +App.DisplayName=Valheim +App.RootDir=./Valheim/ +App.ExecutableWin=896660\valheim_server.exe +App.ExecutableLinux=896660/valheim_server.x86_64 +App.WorkingDir=896660 +App.CommandLineArgs=-port {{$ApplicationPort1}} {{$FormattedArgs}} -savedir "Data" -public 1 +App.CommandLineVars={"ServerName": "My Valheim Server - Powered by AMP", "WorldName": "PoweredByAMP", "ServerPassword": "12345"} +App.EnvironmentVariables={"LD_LIBRARY_PATH": "./linux64:%LD_LIBRARY_PATH%", "SteamAppId": "892970"} +App.CommandLineParameterFormat=-{0} "{1}" +App.ExitMethod=OS_CLOSE +App.ExitString= +App.ExitFile= +App.HasWriteableConsole=False +App.HasReadableConsole=True +App.ApplicationIPBinding=0.0.0.0 +App.ApplicationPort1=2456 +App.ApplicationPort2=2457 +App.ApplicationPort3=2458 +App.RemoteAdminPort=0 +App.MaxUsers=10 +App.UseRandomAdminPassword=False +App.RemoteAdminPassword=Password123 +App.AdminMethod=STDIO +App.UpdateSource=SteamCMD +App.Compatibility=None +App.SteamUpdateAnonymousLogin=True +App.SteamForceWindowsVersion=False +App.UpdateSourceData=896660 +App.UpdateSourceArgs= +App.UpdateSourceVersion= +App.UnzipUpdateSource=False +App.OverwriteExistingFiles=False +App.ApplicationReadyMode=RegexMatch +Console.FilterMatchRegex=^\d\d\/\d\d\/\d{4} \d\d:\d\d:\d\d: +Console.FilterMatchReplacement= +Console.ThrowawayMessageRegex=^\(Filename: .*? Line: \d+\)$ +Console.AppReadyRegex=^Game server connected$ +Console.UserJoinRegex=^Got character ZDOID from (?.+?) : (?-?\d+):\d+$ +Console.UserLeaveRegex=^Destroying abandoned non persistent zdo -?\d+:\d+ owner (?-?\d+)$ +Console.UserChatRegex= +Console.UserActions={} \ No newline at end of file diff --git a/valheimconfig.json b/valheimconfig.json new file mode 100644 index 0000000..8a0fcc9 --- /dev/null +++ b/valheimconfig.json @@ -0,0 +1,32 @@ +[ + { + "DisplayName": "Server Name", + "Description": "Server name as it appears in the server list", + "FieldName": "ServerName", + "Keywords": "", + "InputType": "text", + "Category": "Server", + "ParamFieldName": "name", + "IncludeInCommandLine": true + }, + { + "DisplayName": "World Seed", + "Description": "Random seed used for terrain random generation", + "FieldName": "WorldName", + "Keywords": "world", + "InputType": "text", + "Category": "Server", + "ParamFieldName": "world", + "IncludeInCommandLine": true + }, + { + "DisplayName": "Server Password", + "Description": "Password that clients must supply in order to connect", + "FieldName": "ServerPassword", + "Keywords": "", + "InputType": "password", + "Category": "Server", + "ParamFieldName": "password", + "IncludeInCommandLine": true + } +] \ No newline at end of file