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

Custom Template not showing up



  • Hello Puffers,
    I recently created my own template and uploaded however it does not appear to be showing up in the template list. I rebooted and even reinstalled the Daemon. However no luck, so im guessing its my code here it is:

    {
      "pufferd": {
        "type": "node",
        "display": "Mount & Blade: Warband",
        "install": {
          "commands": [
            {
              "type": "download",
              "files": [
                "http://download2.taleworlds.com/mb_warband_dedicated_1174.zip",
    			"https://uc125f6046de9e9ae75cbca2f7f0.dl.dropboxusercontent.com/cd/0/get/AgAO3bScEJ9QRkG4AWRpOosU9jTqfS31VcasR5CZGWjC_Vro2kf4TVFAF2qzf_5RJ0KuxHuC4yrV1CfMx51fXMj5C8ZbymMKtACVQQG6siH5Xyl6OkFX6q6Sr0xJFldBSWo/file?_download_id=544276448451568567015374678278543649125684468763612366114990050203&_notify_domain=www.dropbox.com&dl=1"
              ]
            },
    		
    		{
              "commands": [
                "unzip mb_warband_dedicated_1174.zip"
              ],
              "type": "command"
            },
    
          ]
        },
        "run": {
          "stop": "stop",
          "pre": [],
          "post": [],
    	  "arguments": [
            "mb_warband_dedicated.exe -r",
            "config.txt"
          ],
    	"program": "wineconsole --backend=curses"
        },
    	    "environment": {
          "type": "standard"
        },
    		"data": {
          "port": {
            "value": "7240",
            "required": true,
            "desc": "What port to bind the server to, Don't forget to portfoward",
            "display": "Port",
            "internal": false
    		},
    		
    		"steamport": {
            "value": "7241",
            "required": true,
            "desc": "this port must also be set, and same limitations of set_port apply for Steam port",
            "display": "Port",
            "internal": false
    		},
    		
    		"server_name": {
            "value": "server_name",
            "required": true,
            "desc": "Name for the server, NO SPACES OR INCORRECT LETTERS!",
            "display": "Name",
            "internal": false
        },
    		"adminpass": {
            "value": "adminpass",
            "required": true,
            "desc": "AdminPass for the server, NO SPACES OR INCORRECT LETTERS!",
            "display": "AdminPass",
            "internal": false
        }
      }
      }
    }
    

    Any help would be great, thank you.

    SOLVED:
    So I found the error in my code. It was:

        "environment": {
      "type": "standard"
    },
    

    Turn out i dont need a comma on the end, found this out using https://jsonlint.com/ i copyed and pasted the code in there.


Log in to reply
 

8
Online

944
Users

922
Topics

3.7k
Posts