Modding Help My custom recipes aren't showing up ):

Discussion in 'Starbound Modding' started by Amethystumn, Sep 18, 2016.

  1. Amethystumn

    Amethystumn Pangalactic Porcupine

    I have checked and checked and I don't know why my recipes aren't showing up. I've tried to make sure that my files are structured just like the new stuff. I'm hoping if I display the codes and folder structures I've got going on someone could help me? :)

    I used the crafting table, furniture1 as an example and structured it accordingly.


    [​IMG]
    [​IMG] and here is mine...
    [​IMG]


    I have compared my .recipe , .windowconfig and object files and can't figure out why I can't get the recipes to show up in my custom crafting table window.




    Code:
    {
        "objectName": "anmspetcraft",
        "colonyTags": ["crafting"],
        "rarity": "Rare",
        "interactAction": "OpenCraftingInterface",
        "interactData": {
            "config": "/interface/windowconfig/anmspetcraft.config",
            "paneLayoutOverride": {
                "windowtitle": {
                    "title": "  Pet Crafter",
                    "subtitle": "  Craft stuff for your pet!",
                    "icon": {
                        "file": "/interface/crafting/anmspetcraft.png"
                    }
                }
            },
            "filter": ["plain", "craftingtable"]
        },
        "printable": false,
        "description": "One could build some very sophisticated equipment on this table.",
        "shortdescription": "^orange;Pet Crafter^white;",
        "race": "generic",
        "category": "crafting",
        "price": 30,
    
        "apexDescription": "A crafting table for ironwork.",
        "avianDescription": "This crafting table enables me to create a wide range of equipment.",
        "floranDescription": "Iron table for making thingsss.",
        "glitchDescription": "Interested. It's an iron crafting table. It's better than a wooden one.",
        "humanDescription": "I'm not scared of some DIY. Let's do this.",
        "hylotlDescription": "An iron crafting table can be used to craft some good equipment with.",
        "novakidDescription": "A good ol' iron crafting table. It's better than a wooden one.",
    
        "inventoryIcon": "anmspetcrafticon.png",
        "orientations": [{
            "dualImage": "anmspetcraft.png:<color>",
    
            "imagePosition": [-16, 0],
            "frames": 1,
            "animationCycle": 1.0,
    
            "spaceScan": 0.1,
            "anchors": ["bottom"]
    
        }]
    }




    Code:
     {
      "noCategoryFilters" : false,
      "filter" : [ ],
      "titleFromEntity" : true,
      "requiresBlueprint" : true,
      "craftingSound" : "/sfx/interface/crafting_general1.ogg",
      "paneLayout" : {
        "background" : {
          "type" : "background",
          "fileHeader" : "/interface/crafting/craftingheader.png",
          "fileBody" : "/interface/crafting/petcraftbody.png",
          "fileFooter" : "/interface/crafting/craftingfooter.png"
        },
        "close" : {
          "type" : "button",
          "base" : "/interface/inventory/x.png",
          "hover" : "/interface/inventory/xhover.png",
          "press" : "/interface/inventory/xpress.png",
          "position" : [321, 261]
        },
        "windowtitle" : {
          "type" : "title",
          "title" : "  Pet Crafter",
          "subtitle" : "  Everything for your ship pets!",
          "position" : [-5, 252],
          "icon" : {
            "type" : "image",
            "file" : "/interface/crafting/anmspetcraft.png",
            "position" : [0, -20],
            "zlevel" : -1
          }
        },
        "bgShine" : {
          "type" : "image",
          "file" : "/interface/crafting/shine.png",
          "position" : [-15, 0],
          "zlevel" : -10
        },
        "lblSchematics" : {
          "type" : "label",
          "position" : [88, 244],
          "hAnchor" : "mid",
          "value" : "^#b9b5b2;BLUEPRINTS"
        },
        "lblProducttitle" : {
          "type" : "label",
          "position" : [265, 244],
          "hAnchor" : "mid",
          "value" : "^#b9b5b2;PRODUCT"
        },
        "spinCount" : {
          "type" : "spinner",
          "position" : [220, 46],
          "upOffset" : 36
        },
        "tbSpinCount" : {
          "type" : "textbox",
          "position" : [232, 46],
          "textAlign" : "center",
          "maxWidth" : 16,
          "regex" : "x?\\d{0,4}",
          "hint" : ""
        },
        "imgAmountInput" : {
          "type" : "image",
          "file" : "/interface/crafting/amount.png",
          "position" : [226, 45],
          "zlevel" : -3
        },
        "btnCraft" : {
          "type" : "button",
          "base" : "/interface/button.png",
          "hover" : "/interface/buttonhover.png",
          "position" : [271, 43],
          "caption" : "Craft"
        },
        "btnStopCraft" : {
          "type" : "button",
          "base" : "/interface/buttonactive.png",
          "hover" : "/interface/buttonactivehover.png",
          "position" : [271, 43],
          "caption" : "Stop"
        },
        "imgCraftBg" : {
          "type" : "image",
          "file" : "/interface/crafting/craftbg.png",
          "position" : [196, 40],
          "zlevel" : -5
        },
        "currentRecipeIcon" : {
          "type" : "itemslot",
          "callback" : "null",
          "position" : [197, 41]
        },
        "btnFilterHaveMaterials" : {
          "type" : "button",
          "base" : "/interface/crafting/checkboxnocheck.png",
          "baseImageChecked" : "/interface/crafting/checkboxcheck.png",
          "checkable" : true,
          "checked" : false,
          "position" : [40, 59]
        },
        "lblProduct" : {
          "type" : "label",
          "position" : [51, 58],
          "hAnchor" : "left",
          "value" : "MATERIALS AVAILABLE"
        },
    
        "description" : {
          "type" : "widget",
          "position" : [190, 41],
          "size" : [140, 220]
        },
        "filter" : {
          "type" : "textbox",
          "position" : [60, 43],
          "hint" : "Search",
          "maxWidth" : 70,
          "escapeKey" : "close",
          "enterKey" : "filter",
          "focus" : false
        },
    
        "scrollArea" : {
          "type" : "scrollArea",
          "rect" : [5, 69, 174, 221],
          "children" : {
            "itemList" : {
              "type" : "list",
              "schema" : {
                "selectedBG" : "/interface/crafting/craftableselected2.png",
                "unselectedBG" : "/interface/crafting/craftablebackground.png",
                "spacing" : [0, 1],
                "memberSize" : [159, 20],
                "listTemplate" : {
                  "background" : {
                    "type" : "image",
                    "file" : "/interface/crafting/craftablebackground.png",
                    "position" : [2, 0],
                    "zlevel" : -1
                  },
                  "itemName" : {
                    "type" : "label",
                    "position" : [25, 5],
                    "hAnchor" : "left",
                    "wrapWidth" : 116,
                    "value" : "Replace Me"
                  },
                  "itemIcon" : {
                    "type" : "itemslot",
                    "position" : [3, 1],
                    "callback" : "null"
                  },
                  "newIcon" : {
                    "type" : "image",
                    "position" : [119, 5],
                    "file" : "/interface/crafting/new.png",
                    "zlevel" : 2
                  },
                  "moneyIcon" : {
                    "type" : "image",
                    "position" : [122, 1],
                    "file" : "/interface/money.png"
                  },
                  "priceLabel" : {
                    "type" : "label",
                    "position" : [134, 1],
                    "hAnchor" : "left",
                    "value" : "0"
                  },
                  "notcraftableoverlay" : {
                    "type" : "image",
                    "file" : "/interface/crafting/notcraftableoverlay.png",
                    "position" : [2, 0],
                    "zlevel" : 1
                  }
                }
              }
            }
          }
        },
        "lblDoorTab" : {
          "type" : "image",
          "file" : "/interface/crafting/tabicon_petbeds.png",
          "position" : [6, 223],
          "zlevel" : 3
        },
        "lblLightTab" : {
          "type" : "image",
          "file" : "/interface/crafting/tabicon_pethouses.png",
          "position" : [33, 223],
          "zlevel" : 3
        },
        "lblBedTab" : {
          "type" : "image",
          "file" : "/interface/crafting/tabicon_toys.png",
          "position" : [59, 223],
          "zlevel" : 3
        },
        "lblDecorTab" : {
          "type" : "image",
          "file" : "/interface/crafting/tabicon_foodbowls.png",
          "position" : [88, 223],
          "zlevel" : 3
        },
        "categories" : {
          "type" : "radioGroup",
          "toggleMode" : false,
          "buttons" : [
            {
              "selected" : true,
              "position" : [4, 221],
              "baseImage" : "/interface/crafting/unselectedTab.png",
              "baseImageChecked" : "/interface/crafting/selectedTab.png",
              "data" : {
                "filter" : [ "petbeds" ]
              }
            },
            {
              "position" : [31, 221],
              "baseImage" : "/interface/crafting/unselectedTab.png",
              "baseImageChecked" : "/interface/crafting/selectedTab.png",
              "data" : {
                "filter" : [ "pethouses" ]
              }
            },
            {
              "position" : [58, 221],
              "baseImage" : "/interface/crafting/unselectedTab.png",
              "baseImageChecked" : "/interface/crafting/selectedTab.png",
              "data" : {
                "filter" : [ "toys" ]
              }
            },
            {
              "position" : [85, 221],
              "baseImage" : "/interface/crafting/unselectedTab.png",
              "baseImageChecked" : "/interface/crafting/selectedTab.png",
              "data" : {
                "filter" : [ "foodbowls" ]
              }
            }
          ]
        },
        "rarities" : {
          "type" : "radioGroup",
          "toggleMode" : true,
          "buttons" : [
          ]
        }
      }
    }
    



    Code:
    [
      {
        "op": "add",
        "path": "/defaultBlueprints/tier1/6",
        "value": {
          "item": "anmspetcraft"
        }
      },
      {
        "op": "add",
        "path": "/defaultBlueprints/tier1/13",
        "value": {
          "item": "aegisfoodbowl"
        }
      },
      {
        "op": "add",
        "path": "/defaultBlueprints/tier1/14",
        "value": {
          "item": "alienpb"
        }
      }
    ]
    I made this using Kawa's Starbound JSON lab.



    Code:
    {
      "input" : [
        { "item" : "refinedaegisalt", "count" : 1 }
      ],
      "output" : {
        "item" : "aegisfoodbowl",
        "count" : 1
      },
      "duration" : 1,
      "groups" : [ "anmspetcraft", "foodbowls", "craftingstations" ]
    }


    I hope someone can help me I've provided everything that I can think of that seems relevant. I have also deleted the crafting table itself and made another one incase that was the problem, but the problem still persists. ):

    [​IMG]
     
  2. Errors4l

    Errors4l Spaceman Spiff

    I'm not sure if this will solve any/all issues you're having, but try changing:
    - The numbers 6, 13 and 14 in the player.config.patch to -.
    Code:
    [
      {
        "op": "add",
        "path": "/defaultBlueprints/tier1/-",
        "value": {
          "item": "anmspetcraft"
        }
      },
      {
        "op": "add",
        "path": "/defaultBlueprints/tier1/-",
        "value": {
          "item": "aegisfoodbowl"
        }
      },
      {
        "op": "add",
        "path": "/defaultBlueprints/tier1/-",
        "value": {
          "item": "alienpb"
        }
      }
    ]
    - The interactData filters in the .object file to the filters your recipes use.
    Code:
    "filter": ["anmspetcraft", "foodbowls", "craftingstations"]
     
    Amethystumn likes this.
  3. Amethystumn

    Amethystumn Pangalactic Porcupine

    Thank you for trying to help! I will give it a try :)
     
  4. Amethystumn

    Amethystumn Pangalactic Porcupine

    Unfortunately no luck ):
     
  5. Amethystumn

    Amethystumn Pangalactic Porcupine

    [​IMG]

    Incase anyone else has run into the same problem- I missed this bit of code in petcrafter.object(formerly known as anmspetcraft )
    Code:
    {
        "objectName": "petcrafter",
        "colonyTags": ["crafting"],
        "rarity": "Rare",
        "interactAction": "OpenCraftingInterface",
        "interactData": {
            "config": "/interface/windowconfig/petcrafter.config",
            "paneLayoutOverride": {
                "windowtitle": {
                    "title": "  Pet Crafter",
                    "subtitle": "  Craft stuff for your pet!",
                    "icon": {
                        "file": "/interface/crafting/petcrafter.png"
                    }
                }
            },
            "filter": ["petcrafter", "craftingtable"]
        },

    All you have to do is make sure that your recipes have that same filter and then the filter of the respected 'tab' that you want that is in your .config file.
    Code:
        "categories" : {
    
          "type" : "radioGroup",
          "toggleMode" : false,
          "buttons" : [
            {
              "selected" : true,
              "position" : [4, 221],
              "baseImage" : "/interface/crafting/unselectedTab.png",
              "baseImageChecked" : "/interface/crafting/selectedTab.png",
              "data" : {
                "filter" : [ "petbeds" ]
              }
            },


    Then your recipe file should look something like this;

    Code:
    {
      "input" : [
        { "item" : "aegisaltore", "count" : 2 }
      ],
      "output" : { "item" : "aegisaltfb", "count" : 1 },
      "groups" : [ "petcrafter", "foodbowls", "all" ]
    }

    I hope that if anyone else had this problem that it is solved now! Have a good day!
     
    The | Suit likes this.
  6. The | Suit

    The | Suit Agent S. Forum Moderator

    Might be more beneficial if you wrote a tutorial on what you learned about filters and recipes.
     
  7. Amethystumn

    Amethystumn Pangalactic Porcupine

    Thanks for the suggestion! I'm not very good at making things neat though >.< my tutorial may seem very messy and hard to understand ):
     
  8. The | Suit

    The | Suit Agent S. Forum Moderator

    No harm in trying.
     

Share This Page