Tmodlauncher Json

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

{

"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL -


PTERODACTYL.IO",
"meta": {
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2022-06-25T16:10:24+02:00",
"name": "tModloader 1.4+",
"author": "tee@stainless.love",
"description": "tModLoader is essentially a mod that provides a way to load
your own mods without having to work directly with Terraria's source code itself.
This means you can easily make mods that are compatible with other people's mods,
save yourself the trouble of having to decompile and recompile Terraria.exe, and
escape from having to understand all of the obscure \"intricacies\" of Terraria's
source code. It is made to work for Terraria 1.4+.(updated by Tee)",
"features": null,
"docker_images": {
"quay.io\/parkervcp\/pterodactyl-images:debian_mono-5-complete":
"quay.io\/parkervcp\/pterodactyl-images:debian_mono-5-complete"
},
"file_denylist": [],
"startup": ".\/start-tModLoaderServer.sh -ip 0.0.0.0 -port ${SERVER_PORT} -
maxplayers ${MAX_PLAYERS} -difficulty ${DIFFICULTY} -password \"$
{SERVER_PASSWORD}\" -motd \"${MOTD}\" -lang ${LANGUAGE} -world ~\/saves\/Worlds\/$
{WORLD_NAME}.wld -worldname ${WORLD_NAME} -autocreate ${WORLD_SIZE} -savedirectory
~\/",
"config": {
"files": "{}",
"startup": "{\r\n \"done\": \"Type 'help' for a list of commands\",\r\n
\"userInteraction\": []\r\n}",
"logs": "{}",
"stop": "exit"
},
"scripts": {
"installation": {
"script": "#!\/bin\/bash\r\n# Vanilla tModloader Installation Script\r\
n#\r\n# Server Files: \/mnt\/server\r\n## install packages to get version and
download links\r\napt update\r\napt install -y curl jq file unzip libtool\r\n\r\n##
get release info and download links\r\nLATEST_JSON=$(curl --silent
\"https:\/\/api.github.com\/repos\/tmodloader\/tmodloader\/releases\" | jq -c '.[]
| select(.name | contains(\"v2022\"))' | head -1)\r\nRELEASES=$(curl --
silent \"https:\/\/api.github.com\/repos\/$GITHUB_PACKAGE\/releases\" | jq '.[] |
select(.name | contains(\"v2022\"))')\r\n\r\n\r\nif [ -z \"$VERSION\" ] ||
[ \"$VERSION\" == \"latest\" ]; then\r\n echo -e \"defaulting to latest
release\"\r\n DOWNLOAD_LINK=$(echo $LATEST_JSON | jq .assets | jq -r .
[].browser_download_url | grep -i tModLoader.zip)\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 tModLoader.zip)\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 | grep -i
tModLoader.zip)\r\n fi\r\nfi\r\n\r\n## mkdir and cd to \/mnt\/server\/\r\nmkdir
-p \/mnt\/server\r\n\r\ncd \/mnt\/server\r\n\r\n## download release\r\necho -
e \"running: curl -sSL ${DOWNLOAD_LINK} -o ${DOWNLOAD_LINK##*\/}\"\r\ncurl -sSL $
{DOWNLOAD_LINK} -o ${DOWNLOAD_LINK##*\/}\r\n\r\nFILETYPE=$(file -F ',' $
{DOWNLOAD_LINK##*\/} | cut -d',' -f2 | cut -d' ' -f2)\r\nif [ \"$FILETYPE\"
== \"gzip\" ]; then\r\n tar xzvf ${DOWNLOAD_LINK##*\/}\r\nelif [ \"$FILETYPE\"
== \"Zip\" ]; then\r\n unzip -o ${DOWNLOAD_LINK##*\/}\r\nelse\r\n echo -
e \"unknown filetype. Exiting\"\r\n exit 2 \r\nfi\r\n\r\necho '#!\/usr\/bin\/env
bash\r\ncd \"$(dirname \"$0\")\"\r\n\r\nlaunch_args=\"$@ -server\"\r\nif
[[ ! \"$launch_args\" == *\"-config\"* ]]; then\r\n
launch_args=\"$launch_args -config serverconfig.txt\"\r\nfi\r\n\r\nchmod +x
.\/LaunchUtils\/ScriptCaller.sh\r\n.\/LaunchUtils\/ScriptCaller.sh $launch_args' >
start-tModLoaderServer.sh\r\n\r\nchmod +x .\/start-tModLoaderServer.sh\r\n\r\necho
-e \"Cleaning up extra files.\"\r\nrm -rf terraria-server-${CLEAN_VERSION}.zip rm $
{DOWNLOAD_LINK##*\/}",
"container": "debian:buster-slim",
"entrypoint": "bash"
}
},
"variables": [
{
"name": "tModloader Version",
"description": "The version of tModloader that is to be used.",
"env_variable": "VERSION",
"default_value": "latest",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:20",
"field_type": "text"
},
{
"name": "World Name",
"description": "The name for the world file.",
"env_variable": "WORLD_NAME",
"default_value": "world",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:20",
"field_type": "text"
},
{
"name": "Max Players",
"description": "The maximum number of players a server will hold.",
"env_variable": "MAX_PLAYERS",
"default_value": "8",
"user_viewable": true,
"user_editable": false,
"rules": "required|numeric|digits_between:1,3",
"field_type": "text"
},
{
"name": "World Size",
"description": "Defines the worlds size. 3 sizes 1 (small), 2 (medium),
3 (large).",
"env_variable": "WORLD_SIZE",
"default_value": "1",
"user_viewable": true,
"user_editable": true,
"rules": "required|numeric|digits_between:1,3",
"field_type": "text"
},
{
"name": "MOTD",
"description": "Message of the Day for the server",
"env_variable": "MOTD",
"default_value": "Big Chungus",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:40",
"field_type": "text"
},
{
"name": "Language",
"description": "Sets the server language \r\n1:English, \r\n2:German, \
r\n3:Italian, \r\n4:French, \r\n5:Spanish",
"env_variable": "LANGUAGE",
"default_value": "1",
"user_viewable": true,
"user_editable": true,
"rules": "required|numeric|digits_between:1,5",
"field_type": "text"
}
]
}

You might also like