eggs/game_eggs/veloren/egg-veloren.json

62 lines
3.9 KiB
JSON
Raw Normal View History

2021-04-13 09:24:52 +08:00
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
2022-09-08 00:16:06 +08:00
"version": "PTDL_v2",
2021-04-13 09:24:52 +08:00
"update_url": null
},
2022-10-25 01:09:39 +08:00
"exported_at": "2022-10-24T19:08:31+02:00",
2021-04-13 09:24:52 +08:00
"name": "Veloren",
"author": "parker@parkervcp.com",
"description": "Veloren is a multiplayer voxel RPG written in Rust. It is inspired by games such as Cube World, Legend of Zelda: Breath of the Wild, Dwarf Fortress and Minecraft.",
"features": null,
2022-09-08 00:16:06 +08:00
"docker_images": {
2022-10-25 01:09:39 +08:00
"Debian": "ghcr.io\/parkervcp\/yolks:debian"
2022-09-08 00:16:06 +08:00
},
2021-04-13 09:24:52 +08:00
"file_denylist": [],
"startup": ".\/veloren-server-cli",
2021-04-13 09:24:52 +08:00
"config": {
2022-10-22 17:27:06 +08:00
"files": "{\r\n \"userdata\/server\/server_config\/settings.ron\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \" metrics_address\": \" metrics_address: \\\"0.0.0.0:{{server.build.env.METRICS_PORT}}\\\",\",\r\n \" server_name\": \" server_name: \\\"{{server.build.env.SERVER_NAME}}\\\",\"\r\n }\r\n }\r\n}",
2021-04-24 06:44:33 +08:00
"startup": "{\r\n \"done\": \"Server is ready to accept connections\"\r\n}",
2021-04-13 09:24:52 +08:00
"logs": "{}",
2021-06-20 20:47:21 +08:00
"stop": "shutdown graceful 10"
2021-04-13 09:24:52 +08:00
},
"scripts": {
"installation": {
2022-10-25 01:09:39 +08:00
"script": "#!\/bin\/bash\r\n\r\napt update\r\napt install -y curl wget unzip git jq\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\nARCH=$([[ \"$(uname -m)\" == \"x86_64\" ]] && echo \"x86_64\" || echo \"aarch64\")\r\n\r\nif [ -z \"${VERSION}\" ] || [ \"${VERSION}\" == \"weekly\" ]; then\r\n echo -e \"weekly\"\r\n DOWNLOAD_URL=https:\/\/download.veloren.net\/latest\/linux\/${ARCH}\/weekly\r\nelif [ \"${VERSION}\" == \"nightly\" ]; then\r\n echo -e \"nightly\"\r\n DOWNLOAD_URL=https:\/\/download.veloren.net\/latest\/linux\/${ARCH}\/nightly\r\nelse\r\n echo -e \"something went wrong\"\r\nfi\r\n\r\necho -e \"download url: ${DOWNLOAD_URL}\"\r\nwget ${DOWNLOAD_URL} -O files.zip\r\n\r\nunzip -o files.zip\r\nrm files.zip\r\n\r\nchmod +x veloren-server-cli\r\n\r\n## generate config because there is no better way to get it.\r\nmkdir -p \/mnt\/server\/userdata\/server\/server_config\/\r\nif [ ! -f \/mnt\/server\/userdata\/server\/server_config\/settings.ron ]; then\r\n wget https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/game_eggs\/veloren\/settings.ron -O \/tmp\/settings.ron\r\n sed \"s\/14004\/${SERVER_PORT}\/g\" \/tmp\/settings.ron > \/mnt\/server\/userdata\/server\/server_config\/settings.ron\r\n rm \/tmp\/settings.ron\r\n echo \"config file pulled\"\r\nfi\r\n\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"",
2022-09-08 00:16:06 +08:00
"container": "debian:bullseye-slim",
2021-04-13 09:24:52 +08:00
"entrypoint": "bash"
}
},
2022-09-08 00:16:06 +08:00
"variables": [
{
"name": "Version",
2022-10-25 01:09:39 +08:00
"description": "weekly = download the latest weekly build.\r\nnightly = download the latest nightly build.",
2022-09-08 00:16:06 +08:00
"env_variable": "VERSION",
"default_value": "weekly",
2022-10-01 01:33:04 +08:00
"user_viewable": true,
"user_editable": true,
2022-10-25 01:09:39 +08:00
"rules": "required|string|in:weekly,nightly",
2022-09-08 00:16:06 +08:00
"field_type": "text"
},
{
"name": "Server name",
"description": "The name your server will be displaying",
"env_variable": "SERVER_NAME",
2022-10-22 17:27:06 +08:00
"default_value": "A pterodactyl hosted server",
2022-09-08 00:16:06 +08:00
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:64",
"field_type": "text"
},
{
"name": "Metrics port",
"description": "Game port +1",
"env_variable": "METRICS_PORT",
"default_value": "14005",
"user_viewable": true,
"user_editable": false,
"rules": "required|integer",
"field_type": "text"
}
]
}