From b5e6bc50e8a4e925916bbc9a669605e1044b349a Mon Sep 17 00:00:00 2001 From: Maskuh <85193434+Maskuh@users.noreply.github.com> Date: Sat, 9 Mar 2024 04:47:59 +0000 Subject: [PATCH 1/3] added beamp to templates --- Beammp/README.MD | 2 + Beammp/beammp.json | 177 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 179 insertions(+) create mode 100644 Beammp/README.MD create mode 100644 Beammp/beammp.json diff --git a/Beammp/README.MD b/Beammp/README.MD new file mode 100644 index 0000000..b68cd9f --- /dev/null +++ b/Beammp/README.MD @@ -0,0 +1,2 @@ +# Template for [Beamng.drive Multiplayer (Beammp)](https://beammp.com/) +This template makes it possible to run [Beamng.drive Multiplayer (Beammp)](https://beammp.com/) with [PufferPanel](https://www.pufferpanel.com/) on Linux. diff --git a/Beammp/beammp.json b/Beammp/beammp.json new file mode 100644 index 0000000..f066465 --- /dev/null +++ b/Beammp/beammp.json @@ -0,0 +1,177 @@ +{ + "name": "BeamMP", + "display": "BeamMP", + "type": "beammp", + "install": [ + { + "files": [ + "https://github.com/BeamMP/BeamMP-Server/releases/latest/download/BeamMP-Server-linux" + ], + "type": "download" + }, + { + "commands": [ + "chmod +x BeamMP-Server-linux", + "timeout -s 9 3 ./BeamMP-Server-linux" + ], + "type": "command" + } + ], + "run": { + "stop": "exit", + "command": "./BeamMP-Server-linux", + "workingDirectory": "", + "pre": [ + { + "file": "ServerConfig.toml", + "regex": true, + "replace": "AuthKey = \"${authkey}\"", + "search": "AuthKey =.*", + "type": "alterfile" + }, + { + "file": "ServerConfig.toml", + "regex": true, + "replace": "Debug = ${debug}", + "search": "Debug =.*", + "type": "alterfile" + }, + { + "file": "ServerConfig.toml", + "regex": true, + "replace": "Description = \"${description}\"", + "search": "Description =.*", + "type": "alterfile" + }, + { + "file": "ServerConfig.toml", + "regex": true, + "replace": "Map = \"${map}\"", + "search": "Map =.*", + "type": "alterfile" + }, + { + "file": "ServerConfig.toml", + "regex": true, + "replace": "MaxCars = ${cars}", + "search": "MaxCars =.*", + "type": "alterfile" + }, + { + "file": "ServerConfig.toml", + "regex": true, + "replace": "MaxPlayers = ${players}", + "search": "MaxPlayers =.*", + "type": "alterfile" + }, + { + "file": "ServerConfig.toml", + "regex": true, + "replace": "Name = \"${name}\"", + "search": "Name =.*", + "type": "alterfile" + }, + { + "file": "ServerConfig.toml", + "regex": true, + "replace": "Port = ${port}", + "search": "Port =.*", + "type": "alterfile" + }, + { + "file": "ServerConfig.toml", + "regex": true, + "replace": "Private = ${private}", + "search": "Private =.*", + "type": "alterfile" + } + ], + "post": [], + "environmentVars": {} + }, + "data": { + "authkey": { + "type": "string", + "desc": "Beam-MP's server authentication key. Go to the docs for help.", + "display": "Authentication Key", + "required": true, + "value": "", + "userEdit": true + }, + "cars": { + "type": "integer", + "desc": "Maximum amount of cars per player. Can be either 1 or 2", + "display": "Cars", + "value": "1", + "userEdit": true, + "options": [ + { + "value": "1", + "display": "1" + }, + { + "value": "2", + "display": "2" + } + ] + }, + "debug": { + "type": "boolean", + "desc": "Run the server in debug mode.", + "display": "Debug Mode", + "value": "false", + "userEdit": true + }, + "description": { + "type": "string", + "desc": "The description for your server.", + "display": "Description", + "value": "Hosted using PufferPanel", + "userEdit": true + }, + "map": { + "type": "string", + "desc": "The map to use.", + "display": "Map", + "value": "/levels/gridmap_v2/info.json", + "userEdit": true + }, + "name": { + "type": "string", + "desc": "The name of your Beam-MP server", + "display": "Server Name", + "required": true, + "value": "Default PufferPanel Beam-MP Server" + }, + "players": { + "type": "integer", + "desc": "Maximum amount of players that can join the server.", + "display": "Max Players", + "value": "6", + "userEdit": true + }, + "port": { + "type": "integer", + "desc": "The port to run the server on.", + "display": "Port", + "value": "30814", + "userEdit": true + }, + "private": { + "type": "boolean", + "desc": "Don't show server on server list", + "display": "Private Server", + "value": "false", + "userEdit": true + } + }, + "environment": { + "type": "standard" + }, + "supportedEnvironments": [ + { + "type": "standard" + } + ], + "requirements": {} + } \ No newline at end of file From 1cf84a6f1fd28e25f4df464696ad7a458c8b5895 Mon Sep 17 00:00:00 2001 From: Maskuh <85193434+Maskuh@users.noreply.github.com> Date: Sat, 9 Mar 2024 04:53:19 +0000 Subject: [PATCH 2/3] edit credits --- Beammp/README.MD | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Beammp/README.MD b/Beammp/README.MD index b68cd9f..5472e03 100644 --- a/Beammp/README.MD +++ b/Beammp/README.MD @@ -1,2 +1,9 @@ # Template for [Beamng.drive Multiplayer (Beammp)](https://beammp.com/) This template makes it possible to run [Beamng.drive Multiplayer (Beammp)](https://beammp.com/) with [PufferPanel](https://www.pufferpanel.com/) on Linux. + +* BeamMP requires an Authkey, you can get on https://beammp.com/k/keys +* Additional information on the configuration can be found here: https://wiki.beammp.com/en/home/server-maintenance + +## Credit +* [PaulTimmermann](https://github.com/PaulTimmermann) +* [45ninjas](https://gist.github.com/45ninjas) From 03de325c735a343ded026321438ab43299f43276 Mon Sep 17 00:00:00 2001 From: Maskuh <85193434+Maskuh@users.noreply.github.com> Date: Sat, 9 Mar 2024 04:55:24 +0000 Subject: [PATCH 3/3] Added Beammp to the templates for pufferpanel --- Beammp/README.MD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Beammp/README.MD b/Beammp/README.MD index 5472e03..bffa1af 100644 --- a/Beammp/README.MD +++ b/Beammp/README.MD @@ -4,6 +4,6 @@ This template makes it possible to run [Beamng.drive Multiplayer (Beammp)](https * BeamMP requires an Authkey, you can get on https://beammp.com/k/keys * Additional information on the configuration can be found here: https://wiki.beammp.com/en/home/server-maintenance -## Credit +## Credit (Those who had the file already made but wasn't working correctly) * [PaulTimmermann](https://github.com/PaulTimmermann) * [45ninjas](https://gist.github.com/45ninjas)