From a63342f3db1a770adf88610f9e84dd3cb3a01874 Mon Sep 17 00:00:00 2001 From: Torsten Widmann Date: Sat, 10 Oct 2020 16:48:06 +0200 Subject: [PATCH 1/2] First Commit --- README.md | 2 + among_us_impostor_server/README.md | 17 ++++++ .../egg-among-us--impostor-server.json | 54 +++++++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 among_us_impostor_server/README.md create mode 100644 among_us_impostor_server/egg-among-us--impostor-server.json diff --git a/README.md b/README.md index 50ed1595..a9f7c46f 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,8 @@ If you are reading this it looks like you are looking to add an egg to your serv * [PostgreSQL](/database/sql/postgres/) ## Game Eggs +[Among Us Impostor Server (/among_us_impostor_server) + [ET Legacy](/enemy_territory/etlegacy/) [Factorio](/factorio/factorio/) diff --git a/among_us_impostor_server/README.md b/among_us_impostor_server/README.md new file mode 100644 index 00000000..cedac370 --- /dev/null +++ b/among_us_impostor_server/README.md @@ -0,0 +1,17 @@ +# Among Us - Impostor Server +### From their [Github](https://github.com/AeonLucid/Impostor) + +Impostor is one of the first Among Us private servers, written in C#. +The latest version supported is 2020.9.22, both desktop and mobile. +There are no special features at this moment, the goal is aiming to be as close as possible to the real server, for now. In a later stage, making modifications to game logic by modifying GameData packets can be looked at. + +### Install notes + +You MUST use Port 22023, else you can't connect + +### Server Ports +Ports required to run the server in a table format. + +| Port | default | +|---------|---------| +| Game | 22023 | diff --git a/among_us_impostor_server/egg-among-us--impostor-server.json b/among_us_impostor_server/egg-among-us--impostor-server.json new file mode 100644 index 00000000..e8b93506 --- /dev/null +++ b/among_us_impostor_server/egg-among-us--impostor-server.json @@ -0,0 +1,54 @@ +{ + "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", + "meta": { + "version": "PTDL_v1" + }, + "exported_at": "2020-10-10T16:43:18+02:00", + "name": "Among Us - Impostor Server", + "author": "info@goover.de", + "description": "Impostor is one of the first Among Us private servers, written in C#.\r\n\r\nThe latest version supported is 2020.9.22, both desktop and mobile.\r\n\r\nThere are no special features at this moment, the goal is aiming to be as close as possible to the real server, for now. In a later stage, making modifications to game logic by modifying GameData packets can be looked at.", + "image": "quay.io\/parkervcp\/pterodactyl-images:debian_dotnet", + "startup": ".\/Impostor.Server", + "config": { + "files": "{\r\n \"config.ini\": {\r\n \"parser\": \"json\",\r\n \"find\": {\r\n \"PublicPort\": \" {{server.build.default.port}}\",\r\n \"ListenPort\": \"{{server.build.default.port}}\"\r\n }\r\n }\r\n}", + "startup": "{\r\n \"done\": \"Matchmaker is listening on\",\r\n \"userInteraction\": []\r\n}", + "logs": "{}", + "stop": "^C" + }, + "scripts": { + "installation": { + "script": "#!\/bin\/bash\r\n\r\napt -y update\r\napt -y upgrade\r\napt -y --no-install-recommends install wget curl jq unzip tar redis-server file ca-certificates apt-utils\r\n\r\nexport HOME=\/mnt\/server\r\ncd $HOME\r\n\r\n## this is a simple script to use the github API for release versions.\r\n## this requires the egg has a variable for GITHUB_PACKAGE, VERSION and MATCH (match is to match the filename in some way)\r\n## this supports using oauth\/personal access tokens via GITHUB_USER and GITHUB_OAUTH_TOKEN (both are required.)\r\n## if you are getting hit with GitHub API limit issues then you need to have the user and token set.\r\n\r\nif [ -z \"${GITHUB_USER}\" ] && [ -z \"${GITHUB_OAUTH_TOKEN}\" ] ; then\r\n echo -e \"[INFO] using anononym API Call\"\r\nelse\r\n echo -e \"[INFO] User and OAuth Token set\"\r\n alias curl='curl -u ${GITHUB_USER}:${GITHUB_OAUTH_TOKEN} '\r\nfi\r\n\r\n## get release info and download links\r\nLATEST_JSON=$(curl --silent \"https:\/\/api.github.com\/repos\/${GITHUB_PACKAGE}\/releases\/latest\")\r\nRELEASES=$(curl --silent \"https:\/\/api.github.com\/repos\/${GITHUB_PACKAGE}\/releases\")\r\n\r\nif [ -z \"${VERSION}\" ] || [ \"${VERSION}\" == \"latest\" ]; then\r\n DOWNLOAD_LINK=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -i ${MATCH})\r\nelse\r\n VERSION_CHECK=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .tag_name')\r\n if [ \"${VERSION}\" == \"${VERSION_CHECK}\" ]; then\r\n DOWNLOAD_LINK=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .assets[].browser_download_url' | grep -i ${MATCH})\r\n else\r\n echo -e \"defaulting to latest release\"\r\n DOWNLOAD_LINK=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url)\r\n fi\r\nfi\r\nif [ ! -z \"${DOWNLOAD_URL}\"]; then \r\n if curl --output \/dev\/null --silent --head --fail ${DOWNLOAD_URL}; then\r\n echo -e \"link is valid. setting download link to ${DOWNLOAD_URL}\"\r\n DOWNLOAD_LINK=${DOWNLOAD_URL}\r\n else \r\n echo -e \"link is invalid closing out\"\r\n exit 2\r\n fi\r\nfi\r\necho $DOWNLOAD_LINK\r\nwget $DOWNLOAD_LINK\r\nunzip Impostor-Server-linux-x64.zip\r\nrm -fR Impostor-Server-linux-x64.zip \r\nchmod +x Impostor.Server", + "container": "debian:buster-slim", + "entrypoint": "bash" + } + }, + "variables": [ + { + "name": "GITHUB_PACKAGE", + "description": "GITHUB_PACKAGE", + "env_variable": "GITHUB_PACKAGE", + "default_value": "AeonLucid\/Impostor", + "user_viewable": false, + "user_editable": false, + "rules": "required|string|max:20" + }, + { + "name": "VERSION", + "description": "VERSION", + "env_variable": "VERSION", + "default_value": "latest", + "user_viewable": false, + "user_editable": false, + "rules": "required|string|max:20" + }, + { + "name": "MATCH", + "description": "MATCH", + "env_variable": "MATCH", + "default_value": "Impostor-Server-linux-x64.zip", + "user_viewable": false, + "user_editable": false, + "rules": "required|string|max:40" + } + ] +} \ No newline at end of file From 1a34a04fb001bf7f51240d56696fc4b5c9e0fb56 Mon Sep 17 00:00:00 2001 From: Torsten Widmann Date: Sun, 11 Oct 2020 07:18:41 +0200 Subject: [PATCH 2/2] added Server IPs --- among_us_impostor_server/egg-among-us--impostor-server.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/among_us_impostor_server/egg-among-us--impostor-server.json b/among_us_impostor_server/egg-among-us--impostor-server.json index e8b93506..621b81f1 100644 --- a/among_us_impostor_server/egg-among-us--impostor-server.json +++ b/among_us_impostor_server/egg-among-us--impostor-server.json @@ -3,14 +3,14 @@ "meta": { "version": "PTDL_v1" }, - "exported_at": "2020-10-10T16:43:18+02:00", + "exported_at": "2020-10-11T07:18:29+02:00", "name": "Among Us - Impostor Server", "author": "info@goover.de", "description": "Impostor is one of the first Among Us private servers, written in C#.\r\n\r\nThe latest version supported is 2020.9.22, both desktop and mobile.\r\n\r\nThere are no special features at this moment, the goal is aiming to be as close as possible to the real server, for now. In a later stage, making modifications to game logic by modifying GameData packets can be looked at.", "image": "quay.io\/parkervcp\/pterodactyl-images:debian_dotnet", "startup": ".\/Impostor.Server", "config": { - "files": "{\r\n \"config.ini\": {\r\n \"parser\": \"json\",\r\n \"find\": {\r\n \"PublicPort\": \" {{server.build.default.port}}\",\r\n \"ListenPort\": \"{{server.build.default.port}}\"\r\n }\r\n }\r\n}", + "files": "{\r\n \"config.json\": {\r\n \"parser\": \"json\",\r\n \"find\": {\r\n \"Server.PublicIp\":\"{{server.build.env.SERVER_IP}}\",\r\n \"Server.PublicPort\": \"{{server.build.default.port}}\",\r\n \"Server.ListenPort\": \"{{server.build.default.port}}\"\r\n }\r\n }\r\n}", "startup": "{\r\n \"done\": \"Matchmaker is listening on\",\r\n \"userInteraction\": []\r\n}", "logs": "{}", "stop": "^C"