An Incredibly Buggy Terraria Template!



  • I was curious to see if I would be able to run a Terraria Server within PufferPanel.
    The answer: Yes, you can, but you probably wouldn't want to.

    Because of the weird way the Terraria server uses the console, the console ouput generally looks like this

    

    <number>Delete World

    <number>DeChooseCChoose World: te World
    Choose World: n
    Terraria Server v1.3.5.3

    1 Small
    2 Medium
    3 Large

    Choose size: 1
    Terraria Server v1.3.5.3

    1 Normal
    2 Expert

    Choose difficulty: 1
    Terraria Server v1.3.5.3

    Enter world name: 

    (Creating a new world)

    • The console output in the menu is often garbled, making using the menus really difficult.
    • When the server prompts you for an option in the menu, it's not possible to hit Enter for the default value. This also means that you have to type in a value for when it asks you a password - you can't have a passwordless server.
    • Console commands don't work in the menus, since Terraria won't accept text commands until the world is loaded. This also makes it practically impossible to stop the server while on a menu screen without using the "My server isn't responding! Please kill it." option.

    If you still want to try it, here's the template I cobbled together:
    terraria.json

    {
      "pufferd": {
        "type": "terraria",
        "display": "Terraria - Vanilla",
        "install": {
          "commands": [
            {
              "type": "download",
              "files": "http://terraria.org/server/terraria-server-${version}.zip"
            },
            {
              "commands": [
                "unzip terraria-server-${version}",
                "mv -v ${rootdir}/${version}/Linux/ ${rootdir}/Linux/",
                "chmod +x ${rootdir}/Linux/TerrariaServer",
                "chmod +x ${rootdir}/Linux/TerrariaServer.bin.x86"
              ],
              "type": "command"
            }
          ]
        },
        "run": {
          "stop": "exit",
          "pre": [],
          "post": [],
          "arguments": [
            "-port",
            "${port}",
            "-secure",
            "-steam"
          ],
          "program": "Linux/TerrariaServer"
        },
        "data": {
          "port": {
            "value": "7777",
            "required": true,
            "desc": "What port to bind the server to",
            "display": "Port",
            "internal": false
          },
          "version": {
            "value": "1353",
            "required": true,
            "desc": "Server Version",
            "display": "Server Version (Set this to the latest server version)",
            "internal": false
          }
        }
      }
    }
    

Log in to reply
 

Looks like your connection to PufferPanel Community was lost, please wait while we try to reconnect.