From fb658828b1f447c7fffe4205818e7bf61710ba1c Mon Sep 17 00:00:00 2001 From: gOOvER Date: Sat, 6 Nov 2021 07:24:05 +0100 Subject: [PATCH] add BrokeProtocol template --- bpmetaconfig.json | 6 +++ brokeprotokol.kvp | 36 +++++++++++++++++ brokeprotokolconfig.json | 83 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 125 insertions(+) create mode 100644 bpmetaconfig.json create mode 100644 brokeprotokol.kvp create mode 100644 brokeprotokolconfig.json diff --git a/bpmetaconfig.json b/bpmetaconfig.json new file mode 100644 index 0000000..a4a5506 --- /dev/null +++ b/bpmetaconfig.json @@ -0,0 +1,6 @@ +[ + { + "ConfigFile": "/brokeprotokol/settings.json" + "AutoMap": true, + }, +] diff --git a/brokeprotokol.kvp b/brokeprotokol.kvp new file mode 100644 index 0000000..fe4a7e6 --- /dev/null +++ b/brokeprotokol.kvp @@ -0,0 +1,36 @@ +App.AdminMethod=STDIO +App.ApplicationPort1=5557 +App.ApplicationPort2=5558 +App.ApplicationReadyMode=Immediate +App.BaseDirectory=./brokeprotocol/ +App.CommandLineArgs=-batchmode -logfile +App.CommandLineParameterDelimiter= +App.CommandLineParameterFormat=-{0} "{1}" +App.DisplayName=BrokeProtocol +App.ExecutableLinux=bpgameserver.x86_64 +App.ExecutableWin= +App.Compatibility=1 +App.ExitMethod=SIGTERM +App.ExitString=stop +App.HasReadableConsole=true +App.HasWritableConsole=false +App.RapidStartup=false +App.RootDir=./brokeprotocol/ +App.UpdateSource=Multi +App.UpdateSources=[{"UpdateStageName": "Server Download","UpdateSourcePlatform": "All", "UpdateSource": "FetchURL", "UpdateSourceData": "https://brokeprotocol.com/wp-content/uploads/game.tar.gz", "UnzipUpdateSource": true}] +App.WorkingDir= +Console.AppReadyRegex=^Server is ready.$ +Console.ThrowawayMessageRegex=^(WARNING|ERROR): Shader.+$ +Console.UserChatRegex=^(?.+?): (?.+)$ +Console.UserJoinRegex=^User (?.+?) \((?-?d+)\) connected from \[::ffff:(?.+?)\]$ +Console.UserLeaveRegex=^User (?.+?) \((?-?d+)\) disconnected\. Reason: (.+?)$ +Meta.Author=Torsten Widmann +Meta.ConfigManifest=brokeprotocolconfig.json +Meta.MetaConfigManifest=brokeprotocolmetaconfig.json +Meta.ConfigRoot=brokeprotocol.kvp +Meta.Description=Broke Protocol is a low-poly roleplaying game. +Meta.DisplayImageSource=url:https://brokeprotocol.com/wp-content/uploads/TitleClear.png +Meta.DisplayName=BrokeProtocol +Meta.EndpointURIFormat= +Meta.OS=2 +Meta.URL=https://brokeprotocol.com/ diff --git a/brokeprotokolconfig.json b/brokeprotokolconfig.json new file mode 100644 index 0000000..9778043 --- /dev/null +++ b/brokeprotokolconfig.json @@ -0,0 +1,83 @@ +[ + { + "DisplayName": "Server Name", + "Category": "BrokeProtocol Server", + "Description": "Public server name that will be displayed on the Server Browser. Color codes supported. (48 character limit)", + "Keywords": "", + "FieldName": "serverName", + "InputType": "text", + "IsFlagArgument": false, + "ParamFieldName": "serverName", + "IncludeInCommandLine": false, + "DefaultValue": "Unconfigured Server on AMP", + "EnumValues": {} + }, + { + "DisplayName": "Map", + "Category": "BrokeProtocol Server", + "Description": "Map the server will load. Can be subscribed on Steam or in /Maps directory", + "Keywords": "", + "FieldName": "map", + "InputType": "text", + "IsFlagArgument": false, + "ParamFieldName": "map", + "IncludeInCommandLine": false, + "DefaultValue": "Default", + "EnumValues": {} + }, + { + "DisplayName": "Server URL", + "Category": "BrokeProtocol Server", + "Description": "URL displayed on the serverlist. (48 character limit)", + "Keywords": "", + "FieldName": "URL", + "InputType": "text", + "IsFlagArgument": false, + "ParamFieldName": "URL", + "IncludeInCommandLine": false, + "DefaultValue": "", + "EnumValues": {} + }, + { + "DisplayName": "Players", + "Category": "BrokeProtocol Server", + "Description": "Maximum allowed player connections. (Max: 255)", + "Keywords": "", + "FieldName": "players", + "InputType": "text", + "IsFlagArgument": false, + "ParamFieldName": "players", + "IncludeInCommandLine": false, + "DefaultValue": "32", + "EnumValues": {} + }, + { + "DisplayName": "Port", + "Category": "BrokeProtocol Server", + "Description": "The port that the game server runs on.", + "Keywords": "", + "FieldName": "port", + "InputType": "number", + "IsFlagArgument": false, + "ParamFieldName": "port", + "IncludeInCommandLine": false, + "DefaultValue": "5557", + "EnumValues": {} + }, + { + "DisplayName": "Whitelist", + "Category": "BrokeProtocol Server", + "Description": "Set a private/whitelisted server. See whitelist.txt for more info.", + "Keywords": "", + "FieldName": "whitelist", + "InputType": "checkbox", + "IsFlagArgument": false, + "ParamFieldName": "whitelist", + "IncludeInCommandLine": false, + "DefaultValue": "false", + "EnumValues": { + "true": "True", + "false": "False" + } + } +] \ No newline at end of file