Merge pull request #17 from Greelan/pz

Add Project Zomboid template
This commit is contained in:
PhonicUK 2021-12-29 00:58:33 +00:00 committed by GitHub
commit ce08fbc799
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 119 additions and 0 deletions

61
project-zomboid.kvp Normal file
View File

@ -0,0 +1,61 @@
Meta.DisplayName=Project Zomboid
Meta.Description=Project Zomboid Dedicated Server
Meta.OS=Windows, Linux
Meta.Author=Greelan, IceOfWraith, Dhraz
Meta.URL=https://projectzomboid.com
Meta.DisplayImageSource=steam:108600
Meta.EndpointURIFormat=steam://connect/{ip}/{GenericModule.App.ApplicationPort2}
Meta.ConfigManifest=project-zomboidconfig.json
Meta.MetaConfigManifest=
Meta.ConfigRoot=project-zomboid.kvp
Meta.MinAMPVersion=2.3.0.8
Meta.SpecificDockerImage=
Meta.Prerequsites=[]
App.DisplayName=Project Zomboid
App.RootDir=./project-zomboid/
App.BaseDirectory=./project-zomboid/380870/
App.ExecutableWin=380870\jre64\bin\java.exe
App.ExecutableLinux=380870/ProjectZomboid64
App.WorkingDir=380870
App.LinuxCommandLineArgs=-Dzomboid.steam={{SteamInt}} -Duser.home=./ -Xmx{{MaxMemory}}m --
App.WindowsCommandLineArgs=-Djava.awt.headless=true -Dzomboid.znetlog=1 -Dzomboid.steam={{SteamInt}} -Duser.home=./ -Xmx{{MaxMemory}}m -XX:+UseZGC -XX:-CreateCoredumpOnCrash -XX:-OmitStackTraceInFastThrow -Djava.library.path=natives/;natives/win64/;. -cp java/*;java/ zombie.network.GameServer -statistic 0 --
App.CommandLineArgs={{$PlatformArgs}} -port {{$ApplicationPort1}} -steamport1 {{$ApplicationPort2}} -steamport2 {{$ApplicationPort3}} {{$FormattedArgs}}
App.AppSettings={}
App.EnvironmentVariables={"PATH":"./jre64/bin:%PATH%","LD_LIBRARY_PATH":"./linux64:./natives:./:./jre64/lib/amd64:%LD_LIBRARY_PATH%","LD_PRELOAD":"./jre64/lib/libjsig.so","PZ_CLASSPATH":"java/*;java/","SteamAppId":"108600"}
App.CommandLineParameterFormat=-{0} {1}
App.CommandLineParameterDelimiter=
App.ExitMethod=String
App.ExitTimeout=30
App.ExitString=quit
App.ExitFile=app_exit.lck
App.HasWriteableConsole=True
App.HasReadableConsole=True
App.SupportsLiveSettingsChanges=False
App.LiveSettingChangeCommandFormat=set {0} "{1}"
App.ApplicationIPBinding=
App.ApplicationPort1=16261
App.ApplicationPort2=8766
App.ApplicationPort3=8767
App.RemoteAdminPort=0
App.MaxUsers=20
App.UseRandomAdminPassword=False
App.RemoteAdminPassword=
App.AdminMethod=STDIO
App.UpdateSources=[{"UpdateStageName":"SteamCMD Download","UpdateSourcePlatform":31,"UpdateSource":4,"UpdateSourceData":"380870","UpdateSourceArgs":null,"UpdateSourceVersion":null,"UpdateSourceTarget":null,"UnzipUpdateSource":false,"OverwriteExistingFiles":false,"ForceDownloadPlatform":0,"UpdateSourceConditionSetting":null,"UpdateSourceConditionValue":null}]
App.Compatibility=None
App.SteamUpdateAnonymousLogin=True
App.SteamForceLoginPrompt=False
App.RapidStartup=False
App.ApplicationReadyMode=RegexMatch
App.TemplateMatchRegex={{(\$?[\w]+)}}
Console.FilterMatchRegex=
Console.FilterMatchReplacement=
Console.ThrowawayMessageRegex=^(WARNING|ERROR): Shader.+$
Console.AppReadyRegex=^LOG\s+: Network\s+, \d+> [\d,]+> \*+ SERVER STARTED \*+$
Console.UserJoinRegex=^LOG\s+: Network\s+, \d+> [\d,]+> Connected new client (?<username>.+?) ID # (?<userid>.+?) and assigned DL port (?<userport>.+?)$
Console.UserLeaveRegex=^LOG\s+: (Network|General)\s+, \d+> [\d,]+> (Disconnected player "(?<username>.+?)" |\d+ znet: Disconnecting client #(?<userid>.+?) SteamID=)\d+$
Console.UserChatRegex=
Console.UpdateAvailableRegex=
Console.SuppressLogAtStart=False
Console.ActivateLogRegex=
Console.UserActions={}

View File

@ -0,0 +1,58 @@
[
{
"DisplayName": "Admin Password",
"Category": "Server Settings",
"Description": "In-game \"admin\" user password (not the server password). You should change this after first installing the server",
"Keywords": "admin,password",
"FieldName": "adminpassword",
"InputType": "password",
"IsFlagArgument": false,
"ParamFieldName": "adminpassword",
"IncludeInCommandLine": true,
"DefaultValue": "Password123"
},
{
"DisplayName": "SteamVAC",
"Category": "Server Settings",
"Description": "Enable SteamVAC",
"Keywords": "steamvac",
"FieldName": "steamvac",
"InputType": "checkbox",
"IsFlagArgument": false,
"ParamFieldName": "steamvac",
"IncludeInCommandLine": true,
"DefaultValue": "true",
"EnumValues": {
"false": "False",
"true": "True"
}
},
{
"DisplayName": "Steam Integration",
"Category": "Server Settings",
"Description": "Enable Steam integration",
"Keywords": "steam,integration",
"FieldName": "SteamInt",
"InputType": "checkbox",
"IsFlagArgument": false,
"ParamFieldName": "SteamInt",
"IncludeInCommandLine": false,
"DefaultValue": "1",
"EnumValues": {
"0": "False",
"1": "True"
}
},
{
"DisplayName": "Maximum Server Memory",
"Category": "Server Settings",
"Description": "Maximum server memory (in MB)",
"Keywords": "maximum,memory",
"FieldName": "MaxMemory",
"InputType": "number",
"IsFlagArgument": false,
"ParamFieldName": "MaxMemory",
"IncludeInCommandLine": false,
"DefaultValue": "4096"
}
]