Welcome to the PufferPanel community forums! If you need help please register an account and post in the Support category.

Hurtworld template not working



  • I made template for Hurtworld server:

    {
      "pufferd": {
        "type": "srcds",
        "display": "Hurtworld",
        "install": {
          "commands": [
            {
              "files": "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz",
              "type": "download"
            },
            {
              "commands": [
                "mkdir steamcmd",
                "tar --no-same-owner -xzvf steamcmd_linux.tar.gz -C steamcmd",
                "steamcmd/steamcmd.sh +login anonymous +force_install_dir ${rootdir} +app_update 405100 +quit",
                "mkdir -p .steam/sdk32",
                "cp steamcmd/linux32/steamclient.so .steam/sdk32/steamclient.so"
              ],
              "type": "command"
            }
          ]
        },
        "run": {
          "stop": "quit",
          "pre": [],
          "post": [],
          "arguments": [
            "-batchmode",
            "-nographics",
            "-exec \"bindip ${ip};host ${port} ${map};queryport ${queryport};maxplayers ${maxplayers};servername ${servername} \"",
            "-logfile gamelog.txt"
          ],
          "program": "./Hurtworld.x86_64"
        },
        "environment": {
          "type": "tty"
        },
        "data": {
          "servername": {
            "value": "My Hurtworld Server",
            "required": true,
            "desc": "Name of server",
            "display": "Session Name",
            "internal": false
          },
          "ip": {
            "value": "0.0.0.0",
            "required": true,
            "desc": "What IP to bind the server to",
            "display": "IP",
            "internal": false
          },
          "port": {
            "value": "12871",
            "required": true,
            "desc": "What port to bind the server to",
            "display": "Port",
            "internal": false
          },
          "queryport": {
            "value": "13871",
            "required": true,
            "desc": "What port to listen for queries on",
            "display": "Query Port",
            "internal": false
          },
          "map": {
            "value": "diemensland",
            "required": true,
            "desc": "Hurtworld Map to load",
            "display": "Map",
            "internal": false
          },
          "maxplayers": {
            "value": "20",
            "required": true,
            "desc": "Maximum number of players",
            "display": "Max Players",
            "internal": false
          }
        }
      }
    }
    

    After pressing start i get error in console:

    Starting server
    Set current directory to /var/lib/pufferd/servers/f83cd2b8-7eff-451f-9470-1728141c392b
    Found path: /var/lib/pufferd/servers/f83cd2b8-7eff-451f-9470-1728141c392b/Hurtworld.x86_64
    Mono path[0] = '/var/lib/pufferd/servers/f83cd2b8-7eff-451f-9470-1728141c392b/Hurtworld_Data/Managed'
    Mono path[1] = '/var/lib/pufferd/servers/f83cd2b8-7eff-451f-9470-1728141c392b/Hurtworld_Data/Mono'
    Mono config path = '/var/lib/pufferd/servers/f83cd2b8-7eff-451f-9470-1728141c392b/Hurtworld_Data/Mono/etc'
    

    And nothing in the file gamelog.txt. The server is visible in processes but is dead.

    However, when launching the server manually, the server normally turns on:

    pufferd@ubuntu:~$ cd /var/lib/pufferd/servers/f83cd2b8-7eff-451f-9470-1728141c392b
    pufferd@ubuntu:~/servers/f83cd2b8-7eff-451f-9470-1728141c392b$ ./Hurtworld.x86_64 -batchmode -nographics -exec "host 12871;queryport 13871;maxplayers 60;servername My Hurtworld Server" -logfile gamelog.txt
    Set current directory to /var/lib/pufferd/servers/f83cd2b8-7eff-451f-9470-1728141c392b
    Found path: /var/lib/pufferd/servers/f83cd2b8-7eff-451f-9470-1728141c392b/Hurtworld.x86_64
    

    How to fix it?

    System: Ubuntu 16.04.2 LTS x64



  • The string you are passing to "-exec" differs from when you say the server starts, to what is in the template. However most of it looks valid. Only thing i can see is maybe your map name has the wrong case.



  • It is meaningless, because it works:

    pufferd@ubuntu:/root$ cd /var/lib/pufferd/servers/f83cd2b8-7eff-451f-9470-1728141c392b
    pufferd@ubuntu:~/servers/f83cd2b8-7eff-451f-9470-1728141c392b$ ./Hurtworld.x86_64 -batchmode -nographics -exec "bindip 0.0.0.0;host 12871 diemensland;queryport 13871;maxplayers 20;servername My Hurtworld Server" -logfile gamelog.txt
    Set current directory to /var/lib/pufferd/servers/f83cd2b8-7eff-451f-9470-1728141c392b
    Found path: /var/lib/pufferd/servers/f83cd2b8-7eff-451f-9470-1728141c392b/Hurtworld.x86_64
    

    The simplified templat does not work:

    {
      "pufferd": {
        "type": "srcds",
        "display": "Hurtworld simple",
        "install": {
          "commands": [
            {
              "files": "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz",
              "type": "download"
            },
            {
              "commands": [
                "mkdir steamcmd",
                "tar --no-same-owner -xzvf steamcmd_linux.tar.gz -C steamcmd",
                "steamcmd/steamcmd.sh +login anonymous +force_install_dir ${rootdir} +app_update 405100 +quit",
                "mkdir -p .steam/sdk32",
                "cp steamcmd/linux32/steamclient.so .steam/sdk32/steamclient.so"
              ],
              "type": "command"
            }
          ]
        },
        "run": {
          "stop": "quit",
          "pre": [],
          "post": [],
          "arguments": [
            "-batchmode",
            "-nographics",
            "-exec \"bindip 0.0.0.0;host 12871 diemensland;queryport 13871;maxplayers 20;servername My Hurtworld Server\"",
            "-logfile gamelog.txt"
          ],
          "program": "./Hurtworld.x86_64"
        },
        "environment": {
          "type": "tty"
        },
        "data": {
        }
      }
    }
    

    Is the server running in a special development environment? Maybe lack of access to some resources? In addition, this is a game with early access :\

    When you can run the servers in the docker? This may solve this problem.


Log in to reply
 

1
Online

666
Users

708
Topics

3.2k
Posts

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