Add Valheim template.

This commit is contained in:
PhonicUK 2021-02-13 15:17:10 +00:00 committed by GitHub
parent e4b796e87e
commit 46004e1d4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 82 additions and 0 deletions

50
valheim.kvp Normal file
View File

@ -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 (?<username>.+?) : (?<userid>-?\d+):\d+$
Console.UserLeaveRegex=^Destroying abandoned non persistent zdo -?\d+:\d+ owner (?<userid>-?\d+)$
Console.UserChatRegex=
Console.UserActions={}

32
valheimconfig.json Normal file
View File

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