From 60bf986f224d053b4b6dacb34f5a30cc36648d50 Mon Sep 17 00:00:00 2001 From: Alex <11708877+acl1704@users.noreply.github.com> Date: Wed, 3 Feb 2021 22:58:46 -0800 Subject: [PATCH 1/6] add tachyon --- ftl/tachyon/README.MD | 14 ++++++++++++++ ftl/tachyon/egg-tachyon.json | 31 +++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 ftl/tachyon/README.MD create mode 100644 ftl/tachyon/egg-tachyon.json diff --git a/ftl/tachyon/README.MD b/ftl/tachyon/README.MD new file mode 100644 index 00000000..6be5497f --- /dev/null +++ b/ftl/tachyon/README.MD @@ -0,0 +1,14 @@ +# Mohist + +Tachyon is a multiplayer FTL server and client. + +## Server Ports +The Tachyon server requires a single port for access + +| Port | default | +|-------|---------| +| Game | 30303 | + +## Server Specific + +The client can be found at https://spektor.itch.io/tachyon \ No newline at end of file diff --git a/ftl/tachyon/egg-tachyon.json b/ftl/tachyon/egg-tachyon.json new file mode 100644 index 00000000..b6444cf3 --- /dev/null +++ b/ftl/tachyon/egg-tachyon.json @@ -0,0 +1,31 @@ +{ + "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", + "meta": { + "version": "PTDL_v1", + "update_url": null + }, + "exported_at": "2021-02-03T22:58:07-08:00", + "name": "Tachyon", + "author": "alex.chang-lam@protonmail.com", + "description": "A multiplayer version of FTL.", + "features": null, + "images": [ + "quay.io\/pterodactyl\/core:java" + ], + "file_denylist": "", + "startup": ".\/tachyon\/server\/StartServerConsole.sh", + "config": { + "files": "{}", + "startup": "{}", + "logs": "{}", + "stop": "exit" + }, + "scripts": { + "installation": { + "script": "#! \/bin\/bash\r\n\r\nGITHUB_PACKAGE=Dav-Edward\/TachyonsCE\r\nMATCH=TachyonsCE\r\n\r\napt update\r\napt install -y curl jq file unzip\r\n\r\nif [ ! -d \/mnt\/server\/ ]; then\r\n mkdir -p \/mnt\/server\/\r\nfi\r\n\r\ncd \/mnt\/server\/\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 [ \"$(echo ${LATEST_JSON} | jq -r '.message')\" != \"Not Found\" ] && [[ -z \"${VERSION}\" || \"${VERSION}\" == \"latest\" ]]; then\r\n echo -e \"grabbing latest version\"\r\n DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -i ${MATCH})\r\nelif [ \"$(echo ${LATEST_JSON} | jq -r '.message')\" == \"Not Found\" ]; then\r\n ## emergency fallback if latest isn't found\r\n ## grabs the latest release even it it's a pre-release\r\n echo -e \"grabbing latest pre-release\"\r\n DOWNLOAD_URL=$(echo ${RELEASES} | jq -r '.[0].assets[].browser_download_url' | grep -i ${MATCH})\r\nelse\r\n echo -e \"grabbing version $VERSION\"\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_URL=$(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_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url)\r\n fi\r\nfi\r\n\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 VALIDATED_URL=${DOWNLOAD_URL}\r\n else \r\n echo -e \"link is invalid closing out\"\r\n exit 2\r\n fi\r\nfi\r\n\r\ncurl -sSL -o ${VALIDATED_URL##*\/} ${VALIDATED_URL}\r\n\r\nFILETYPE=$(file -F ',' ${VALIDATED_URL##*\/} | cut -d',' -f2 | cut -d' ' -f2)\r\nif [ \"$FILETYPE\" == \"gzip\" ]; then\r\n tar xzvf ${VALIDATED_URL##*\/}\r\nelif [ \"$FILETYPE\" == \"Zip\" ]; then\r\n unzip ${VALIDATED_URL##*\/}\r\nelif [ \"$FILETYPE\" == \"XZ\" ]; then\r\n tar xvf ${VALIDATED_URL##*\/}\r\nelse\r\n echo -e \"unknown filetype. Exiting\"\r\n # exit 2 \r\nfi\r\n\r\n#pull version and format folder name for renaming\r\nFOLDER=$(echo ${LATEST_JSON} | jq .tag_name | tr -d 'v\"')\r\n\r\n#move all files out\r\ncd .\/TachyonsCE_${FOLDER}\r\ncp -r * \/mnt\/server\r\n\r\ncd \/mnt\/server\r\nrm -rf TachyonsCE_${FOLDER}\r\nrm ${VALIDATED_URL##*\/}", + "container": "debian:buster-slim", + "entrypoint": "bash" + } + }, + "variables": [] +} \ No newline at end of file From e2d39edf80f6049b4f08526b8380040db8929c59 Mon Sep 17 00:00:00 2001 From: Alex <11708877+acl1704@users.noreply.github.com> Date: Wed, 3 Feb 2021 23:57:05 -0800 Subject: [PATCH 2/6] typo --- ftl/tachyon/README.MD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftl/tachyon/README.MD b/ftl/tachyon/README.MD index 6be5497f..7c408c6c 100644 --- a/ftl/tachyon/README.MD +++ b/ftl/tachyon/README.MD @@ -1,4 +1,4 @@ -# Mohist +# Tachyon Tachyon is a multiplayer FTL server and client. From 392312140de9328b7b7bded6138aca195f54833c Mon Sep 17 00:00:00 2001 From: Alex <11708877+acl1704@users.noreply.github.com> Date: Thu, 4 Feb 2021 00:26:37 -0800 Subject: [PATCH 3/6] remove extra files and fix startup --- ftl/tachyon/egg-tachyon.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ftl/tachyon/egg-tachyon.json b/ftl/tachyon/egg-tachyon.json index b6444cf3..3a005ec4 100644 --- a/ftl/tachyon/egg-tachyon.json +++ b/ftl/tachyon/egg-tachyon.json @@ -4,25 +4,25 @@ "version": "PTDL_v1", "update_url": null }, - "exported_at": "2021-02-03T22:58:07-08:00", + "exported_at": "2021-02-04T00:26:26-08:00", "name": "Tachyon", "author": "alex.chang-lam@protonmail.com", "description": "A multiplayer version of FTL.", "features": null, "images": [ - "quay.io\/pterodactyl\/core:java" + "quay.io\/pterodactyl\/core:java-11" ], "file_denylist": "", - "startup": ".\/tachyon\/server\/StartServerConsole.sh", + "startup": "java -Xms128M -Xmx{{SERVER_MEMORY}}M -Dterminal.jline=false -Dterminal.ansi=true -jar TachyonsCEServer.jar", "config": { "files": "{}", - "startup": "{}", + "startup": "{\r\n \"done\": \"[Server] SERVER STARTED.\",\r\n \"userInteraction\": []\r\n}", "logs": "{}", "stop": "exit" }, "scripts": { "installation": { - "script": "#! \/bin\/bash\r\n\r\nGITHUB_PACKAGE=Dav-Edward\/TachyonsCE\r\nMATCH=TachyonsCE\r\n\r\napt update\r\napt install -y curl jq file unzip\r\n\r\nif [ ! -d \/mnt\/server\/ ]; then\r\n mkdir -p \/mnt\/server\/\r\nfi\r\n\r\ncd \/mnt\/server\/\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 [ \"$(echo ${LATEST_JSON} | jq -r '.message')\" != \"Not Found\" ] && [[ -z \"${VERSION}\" || \"${VERSION}\" == \"latest\" ]]; then\r\n echo -e \"grabbing latest version\"\r\n DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -i ${MATCH})\r\nelif [ \"$(echo ${LATEST_JSON} | jq -r '.message')\" == \"Not Found\" ]; then\r\n ## emergency fallback if latest isn't found\r\n ## grabs the latest release even it it's a pre-release\r\n echo -e \"grabbing latest pre-release\"\r\n DOWNLOAD_URL=$(echo ${RELEASES} | jq -r '.[0].assets[].browser_download_url' | grep -i ${MATCH})\r\nelse\r\n echo -e \"grabbing version $VERSION\"\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_URL=$(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_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url)\r\n fi\r\nfi\r\n\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 VALIDATED_URL=${DOWNLOAD_URL}\r\n else \r\n echo -e \"link is invalid closing out\"\r\n exit 2\r\n fi\r\nfi\r\n\r\ncurl -sSL -o ${VALIDATED_URL##*\/} ${VALIDATED_URL}\r\n\r\nFILETYPE=$(file -F ',' ${VALIDATED_URL##*\/} | cut -d',' -f2 | cut -d' ' -f2)\r\nif [ \"$FILETYPE\" == \"gzip\" ]; then\r\n tar xzvf ${VALIDATED_URL##*\/}\r\nelif [ \"$FILETYPE\" == \"Zip\" ]; then\r\n unzip ${VALIDATED_URL##*\/}\r\nelif [ \"$FILETYPE\" == \"XZ\" ]; then\r\n tar xvf ${VALIDATED_URL##*\/}\r\nelse\r\n echo -e \"unknown filetype. Exiting\"\r\n # exit 2 \r\nfi\r\n\r\n#pull version and format folder name for renaming\r\nFOLDER=$(echo ${LATEST_JSON} | jq .tag_name | tr -d 'v\"')\r\n\r\n#move all files out\r\ncd .\/TachyonsCE_${FOLDER}\r\ncp -r * \/mnt\/server\r\n\r\ncd \/mnt\/server\r\nrm -rf TachyonsCE_${FOLDER}\r\nrm ${VALIDATED_URL##*\/}", + "script": "#! \/bin\/bash\r\n\r\nGITHUB_PACKAGE=Dav-Edward\/TachyonsCE\r\nMATCH=TachyonsCE\r\n\r\napt update\r\napt install -y curl jq file unzip\r\n\r\nif [ ! -d \/mnt\/server\/ ]; then\r\n mkdir -p \/mnt\/server\/\r\nfi\r\n\r\ncd \/mnt\/server\/\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 [ \"$(echo ${LATEST_JSON} | jq -r '.message')\" != \"Not Found\" ] && [[ -z \"${VERSION}\" || \"${VERSION}\" == \"latest\" ]]; then\r\n echo -e \"grabbing latest version\"\r\n DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -i ${MATCH})\r\nelif [ \"$(echo ${LATEST_JSON} | jq -r '.message')\" == \"Not Found\" ]; then\r\n ## emergency fallback if latest isn't found\r\n ## grabs the latest release even it it's a pre-release\r\n echo -e \"grabbing latest pre-release\"\r\n DOWNLOAD_URL=$(echo ${RELEASES} | jq -r '.[0].assets[].browser_download_url' | grep -i ${MATCH})\r\nelse\r\n echo -e \"grabbing version $VERSION\"\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_URL=$(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_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url)\r\n fi\r\nfi\r\n\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 VALIDATED_URL=${DOWNLOAD_URL}\r\n else \r\n echo -e \"link is invalid closing out\"\r\n exit 2\r\n fi\r\nfi\r\n\r\ncurl -sSL -o ${VALIDATED_URL##*\/} ${VALIDATED_URL}\r\n\r\nFILETYPE=$(file -F ',' ${VALIDATED_URL##*\/} | cut -d',' -f2 | cut -d' ' -f2)\r\nif [ \"$FILETYPE\" == \"gzip\" ]; then\r\n tar xzvf ${VALIDATED_URL##*\/}\r\nelif [ \"$FILETYPE\" == \"Zip\" ]; then\r\n unzip ${VALIDATED_URL##*\/}\r\nelif [ \"$FILETYPE\" == \"XZ\" ]; then\r\n tar xvf ${VALIDATED_URL##*\/}\r\nelse\r\n echo -e \"unknown filetype. Exiting\"\r\n # exit 2 \r\nfi\r\n\r\n#pull version and format folder name for renaming\r\nFOLDER=$(echo ${LATEST_JSON} | jq .tag_name | tr -d 'v\"')\r\n\r\n#move all server files out\r\ncp -r .\/TachyonsCE_${FOLDER}\/server\/* \/mnt\/server\r\n\r\n#remove zip and unneeded client-side and dev files\r\nrm -rf TachyonsCE_${FOLDER}\r\nrm ${VALIDATED_URL##*\/}\r\n\r\nchmod +x TachyonsCEServer.jar", "container": "debian:buster-slim", "entrypoint": "bash" } From eeadd85d51c59347adcb4b1713f09cc79ce03916 Mon Sep 17 00:00:00 2001 From: Alex <11708877+acl1704@users.noreply.github.com> Date: Thu, 4 Feb 2021 00:31:14 -0800 Subject: [PATCH 4/6] update readme --- README.md | 2 ++ ftl/tachyon/README.MD | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0fa14875..16bc3dc8 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,8 @@ If you are reading this it looks like you are looking to add an egg to your serv [ET Legacy](/enemy_territory/etlegacy) +[FTL: Tachyon](/ftl/tachyon) + [Factorio](/factorio) * [Vanilla](/factorio/factorio) * [ModUpdate](/factorio/factorio-modupdate) diff --git a/ftl/tachyon/README.MD b/ftl/tachyon/README.MD index 7c408c6c..597a7028 100644 --- a/ftl/tachyon/README.MD +++ b/ftl/tachyon/README.MD @@ -3,7 +3,7 @@ Tachyon is a multiplayer FTL server and client. ## Server Ports -The Tachyon server requires a single port for access +The Tachyon server requires a single port for access. | Port | default | |-------|---------| @@ -11,4 +11,4 @@ The Tachyon server requires a single port for access ## Server Specific -The client can be found at https://spektor.itch.io/tachyon \ No newline at end of file +The client can be found at https://github.com/Dav-Edward/TachyonsCE \ No newline at end of file From b05baee1dc859e8ddce6136ac3d36610bb60d24a Mon Sep 17 00:00:00 2001 From: Alex Chang-Lam Date: Thu, 4 Feb 2021 00:33:18 -0800 Subject: [PATCH 5/6] Update README.MD --- ftl/tachyon/README.MD | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ftl/tachyon/README.MD b/ftl/tachyon/README.MD index 597a7028..c4c03499 100644 --- a/ftl/tachyon/README.MD +++ b/ftl/tachyon/README.MD @@ -3,6 +3,7 @@ Tachyon is a multiplayer FTL server and client. ## Server Ports + The Tachyon server requires a single port for access. | Port | default | @@ -11,4 +12,4 @@ The Tachyon server requires a single port for access. ## Server Specific -The client can be found at https://github.com/Dav-Edward/TachyonsCE \ No newline at end of file +Latest client and standalone server can be found at https://github.com/Dav-Edward/TachyonsCE/releases From 08e847faedc98d910a095fb46d598b82130ce68a Mon Sep 17 00:00:00 2001 From: Alex <11708877+acl1704@users.noreply.github.com> Date: Tue, 9 Feb 2021 11:53:57 -0800 Subject: [PATCH 6/6] stop command fix --- ftl/tachyon/egg-tachyon.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ftl/tachyon/egg-tachyon.json b/ftl/tachyon/egg-tachyon.json index 3a005ec4..a2b299d5 100644 --- a/ftl/tachyon/egg-tachyon.json +++ b/ftl/tachyon/egg-tachyon.json @@ -4,7 +4,7 @@ "version": "PTDL_v1", "update_url": null }, - "exported_at": "2021-02-04T00:26:26-08:00", + "exported_at": "2021-02-09T11:53:05-08:00", "name": "Tachyon", "author": "alex.chang-lam@protonmail.com", "description": "A multiplayer version of FTL.", @@ -18,7 +18,7 @@ "files": "{}", "startup": "{\r\n \"done\": \"[Server] SERVER STARTED.\",\r\n \"userInteraction\": []\r\n}", "logs": "{}", - "stop": "exit" + "stop": "\/exit" }, "scripts": { "installation": {