Core Keeper: various updates (#445)

This commit is contained in:
Greelan 2023-08-21 22:33:26 +10:00 committed by GitHub
parent 84e61cb749
commit f6c4f91209
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 92 additions and 21 deletions

View File

@ -1,5 +1,5 @@
Meta.DisplayName=Core Keeper
Meta.Description=Core Keeper Dedicated Server
Meta.Description=Core Keeper Dedicated Server with BepInEx Option for Windows
Meta.OS=Windows, Linux
Meta.Arch=x86_64
Meta.Author=Greelan, Shinynecrid
@ -12,8 +12,8 @@ Meta.ConfigRoot=core-keeper.kvp
Meta.MinAMPVersion=2.3.3.0
Meta.SpecificDockerImage=cubecoders/ampbase:xvfb
Meta.DockerRequired=False
Meta.ContainerPolicy=NotSupported
Meta.ContainerPolicyReason=The server requires a version of Xvfb on Linux which is not present in the Debian version used by AMP's Docker. Ideally use Ubuntu 22.04 or Debian 12 to host the server on Linux.
Meta.ContainerPolicy=RecommendedOnLinux, SupportedOnWindows
Meta.ContainerPolicyReason=The server requires a modern version of Xvfb, as well as libxi6, on Linux. Using a container addresses these requirements.
Meta.Prerequsites=[]
Meta.ConfigReleaseState=NotSpecified
App.DisplayName=Core Keeper
@ -50,7 +50,7 @@ App.AdminLoginTransform=None
App.RCONConnectDelaySeconds=5
App.RCONConnectRetrySeconds=5
App.TelnetLoginFormat={0}
App.UpdateSources=[{"UpdateStageName":"SteamCMD Download","UpdateSourcePlatform":"All","UpdateSource":"SteamCMD","UpdateSourceData":"1963720","UpdateSourceArgs":"1621690"}]
App.UpdateSources=@IncludeJson[core-keeperupdates.json]
App.Compatibility=None
App.SteamUpdateAnonymousLogin=True
App.SteamForceLoginPrompt=False
@ -64,7 +64,7 @@ App.ApplicationReadyMode=RegexMatch
App.TemplateMatchRegex={{(\$?[\w]+)}}
Console.FilterMatchRegex=
Console.FilterMatchReplacement=
Console.ThrowawayMessageRegex=^((WARNING|ERROR): Shader.+|\d+:err:ole:.*|Could not find Wine Gecko.*)$
Console.ThrowawayMessageRegex=^(WARNING|ERROR): Shader.+$
Console.AppReadyRegex=^Started session with Game ID .+$
Console.UserJoinRegex=^Successful authentication from (?<userid>.+?)$
Console.UserLeaveRegex=^Disconnected from (?<userid>.+?)$

View File

@ -2,7 +2,7 @@
{
"DisplayName":"Game ID",
"Category":"Server Settings",
"Description":"Sets the Game ID for the server. Needs to be at least 23 characters and alphanumeric, excluding Y,y,x,0,O. Empty or not valid means a new Game ID will be generated at server start",
"Description":"Sets the Game ID for the server. Needs to be at least 28 characters and alphanumeric, excluding Y,y,x,0,O. Empty or not valid means a new Game ID will be generated at server start",
"Keywords":"game,id",
"FieldName":"gameid",
"InputType":"text",
@ -56,7 +56,7 @@
{
"DisplayName":"World Mode",
"Category":"Server Settings",
"Description":"Sets whether to use normal or hard mode for the world",
"Description":"Sets the world mode for the world. Changing between Creative and non-Creative worlds is not currently supported",
"Keywords":"world,mode",
"FieldName":"worldmode",
"InputType":"enum",
@ -66,7 +66,9 @@
"DefaultValue":"0",
"EnumValues":{
"0":"Normal",
"1":"Hard"
"1":"Hard",
"2":"Creative",
"4":"Casual"
}
},
{
@ -76,13 +78,13 @@
"Keywords":"max,players,limit",
"FieldName":"$MaxUsers",
"InputType":"number",
"MinValue":"1",
"IsFlagArgument":false,
"ParamFieldName":"maxplayers",
"IncludeInCommandLine":true,
"DefaultValue":"100",
"Suffix":"players",
"EnumValues":{},
"MinValue":"1"
"EnumValues":{}
},
{
"DisplayName":"Connection Mode",
@ -99,7 +101,29 @@
"":"Steam Relay Network",
"{{$GamePort}}":"Direct Port Connection"
}
},
},
{
"DisplayName":"Season Override",
"Category":"Server Settings",
"Description":"Sets the current season on the server",
"Keywords":"season,override",
"FieldName":"season",
"InputType":"enum",
"IsFlagArgument":false,
"ParamFieldName":"season",
"IncludeInCommandLine":true,
"DefaultValue":"-1",
"EnumValues":{
"-1":"System date determines (default)",
"0":"None",
"1":"Easter",
"2":"Halloween",
"3":"Christmas",
"4":"Valentine",
"5":"Anniversary",
"6":"Cherry Blossom"
}
},
{
"DisplayName":"Server IP Binding",
"Category":"Server Settings",
@ -114,5 +138,21 @@
"DefaultValue":"0.0.0.0",
"Placeholder":"0.0.0.0",
"EnumValues":{}
}
},
{
"DisplayName":"Activate BepInEx (Windows Only)",
"Category":"SteamCMD and Updates",
"Description":"If set, BepInEx will be installed when the server is updated and enabled when the server is run, allowing the server to be modded. Mods must be installed in the BepInEx/plugins directory, which is created after BepInEx is first run. Windows only at this time",
"Keywords":"install,enable,bepinex,modded,mods",
"FieldName":"BepInExEnabled",
"InputType":"checkbox",
"IsFlagArgument":false,
"ParamFieldName":"General.enabled",
"IncludeInCommandLine":false,
"DefaultValue":"false",
"EnumValues":{
"False":"false",
"True":"true"
}
}
]

View File

@ -1 +1,9 @@
[]
[
{
"ConfigFile":"doorstop_config.ini",
"AutoMap":true,
"ConfigType":"ini",
"ConfigFormat":"{0} = {1}",
"ConfigFormatRegex":"^(?<key>.+?) *= *(?<value>.*?)$"
}
]

View File

@ -1,8 +0,0 @@
{
"gameId": "",
"world": 0,
"worldName": "Core Keeper Server Powered by AMP",
"worldSeed": 0,
"maxNumberPlayers": 100,
"maxNumberPacketsSentPerFrame": 1
}

31
core-keeperupdates.json Normal file
View File

@ -0,0 +1,31 @@
[
{
"UpdateStageName":"SteamCMD Download",
"UpdateSourcePlatform":"All",
"UpdateSource":"SteamCMD",
"UpdateSourceData":"1963720",
"UpdateSourceArgs":"1621690"
},
{
"UpdateStageName":"Download BepInEx From Thunderstore",
"UpdateSourcePlatform":"Windows",
"UpdateSource":"FetchURL",
"UpdateSourceData":"https://thunderstore.io/package/download/BepInEx/BepInExPack_Core_Keeper/2.1.0/",
"UpdateSourceArgs":"BepInEx-BepInExPack_Core_Keeper-2.1.0.zip",
"UpdateSourceTarget":"{{$FullBaseDir}}",
"UnzipUpdateSource":true,
"OverwriteExistingFiles":true,
"DeleteAfterExtract":true,
"UpdateSourceConditionSetting":"BepInExEnabled",
"UpdateSourceConditionValue":"true"
},
{
"UpdateStageName":"BepInEx Copy",
"UpdateSourcePlatform":"Windows",
"UpdateSource":"Executable",
"UpdateSourceData":"cmd.exe",
"UpdateSourceArgs":"/C xcopy /E /Y /I core-keeper\\1963720\\BepInExPack_Core-Keeper\\* core-keeper\\1963720\\ && rmdir /Q /S core-keeper\\1963720\\BepInExPack_Core-Keeper",
"UpdateSourceConditionSetting":"BepInExEnabled",
"UpdateSourceConditionValue":"true"
}
]