Merge pull request #9 from gOOvER/brokeprotocol

Add BrokeProtocol Template
This commit is contained in:
PhonicUK 2021-11-11 11:19:54 +00:00 committed by GitHub
commit 8b14a8a7bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 125 additions and 0 deletions

6
bpmetaconfig.json Normal file
View File

@ -0,0 +1,6 @@
[
{
"ConfigFile": "/brokeprotokol/settings.json"
"AutoMap": true,
},
]

36
brokeprotokol.kvp Normal file
View File

@ -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=^(?<username>.+?): (?<message>.+)$
Console.UserJoinRegex=^User (?<username>.+?) \((?<userid>-?d+)\) connected from \[::ffff:(?<endpoint>.+?)\]$
Console.UserLeaveRegex=^User (?<username>.+?) \((?<userid>-?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/

83
brokeprotokolconfig.json Normal file
View File

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