{"meta":{"slug":"veloren","name":"Veloren","category":"veloren","source":"pterodactyl","owner":"pterodactyl","repo":"game-eggs","branch":"main","path":"veloren/egg-veloren.json","rawUrl":"https://raw.githubusercontent.com/pterodactyl/game-eggs/main/veloren/egg-veloren.json","indexedAt":1792246788483},"egg":{"_comment":"DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL EGG REPOSITORY - PTERODACTYLEGGS.COM","meta":{"version":"PTDL_v2","update_url":null},"exported_at":"2022-10-24T19:25:32+02: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,"docker_images":{"Ubuntu":"ghcr.io/ptero-eggs/yolks:ubuntu_24.04"},"file_denylist":[],"startup":"./veloren-server-cli","config":{"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}","startup":"{\r\n    \"done\": \"Server is ready to accept connections\"\r\n}","logs":"{}","stop":"shutdown graceful 10"},"scripts":{"installation":{"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/ptero-eggs/game-eggs/main/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 \"-----------------------------------------\"","container":"ghcr.io/ptero-eggs/installers:debian","entrypoint":"bash"}},"variables":[{"name":"Version","description":"weekly = download the latest weekly build.\r\nnightly = download the latest nightly build.","env_variable":"VERSION","default_value":"weekly","user_viewable":true,"user_editable":true,"rules":"required|string|in:weekly,nightly","field_type":"text"},{"name":"Server name","description":"The name your server will be displaying","env_variable":"SERVER_NAME","default_value":"A pterodactyl hosted server","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"}]},"readme":"# Veloren\n\n## From their [Site](https://veloren.net/)\n\nVeloren 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.\n\nVeloren is fully open-source, licensed under GPL 3. It uses original graphics, musics and other assets created by its community. Being contributor-driven, its development community and user community is one and the same: developers, players, artists and musicians come together to develop the game.\n\n## Server Ports\n\n**Due to there new config file you have to set the game port manual in the config file!!**\n\n`/home/container/userdata/server/server_config/settings.ron`\n- Line 4:             `address: \"[::]:14004\",` -> `            address: \"[::]:<port>\",`\n- Line 7:             `address: \"0.0.0.0:14004\",`->           `address: \"0.0.0.0:<port>\",`\n\nPorts required to run the server in a table format.\n\n| Port    | default |\n|---------|---------|\n| Game    | 14004   |\n| Metrics | 14005   |\n\n### Mods/Plugins may require ports to be added to the server\n"}