Modding Help Object error, need help!

Discussion in 'Starbound Modding' started by gamez7, Dec 19, 2013.

  1. gamez7

    gamez7 Void-Bound Voyager

    So I'm trying to make a new object that can be crafted in the Tabula Rasa, and it shows up as Perfectly Generic Objects every time. This is the error I get when it tries to read the object file:
    Code:
    pixelvendingmachine.object: VariantException: Variant type not map for get("objectName"), is of type null
    Here's the object file:
    Code:
    {
      "objectName" : "pixelvendingmachine",
      "rarity" : "Common",
      "objectType" : "interactable",
      "interactAction" : "OpenCraftingInterface",
      "interactData" : {
        "config" : "/interface/windowconfig/pixelvendingmachine.config",
        "filter" : [ "pixelvendingmachine" ]
      },
      "printable" : false,
      "description" : "Put Pixels in, get cool stuff out!",
      "shortdescription" : "Pixel Vending Machine",
      "race" : "generic",
      "category" : "crafting",
      "price" : "0",
    
      "apexDescription" : "A Vending Machine.",
      "avianDescription" : "A Vending Machine.",
      "floranDescription" : "A Vending Machine.",
      "glitchDescription" : "A Vending Machine.",
      "humanDescription" : "A Vending Machine.",
      "hylotlDescription" : "A Vending Machine."
    
      "inventoryIcon" : "pixelvendingmachineicon.png",
      "orientations" : [
        {
          "image" : "pixelvendingmachine.png:<color>",
    
          "imagePosition" : [-16, 0],
          "frames" : 1,
          "animationCycle" : 0.5,
    
          "spaceScan" : 0.1,
          "anchors" : [ "bottom" ],
          "collision" : "platform"
    
        }
      ]
    }
    
    Please help!
     
  2. Xuhybrid

    Xuhybrid Scruffy Nerf-Herder

    Code:
      "humanDescription" : "A Vending Machine.",
      "hylotlDescription" : "A Vending Machine."
    Missing a comma.
     
  3. Dr. Toros

    Dr. Toros Existential Complex

    First step when you have a problem with this kind of code is put it through a json validator.

    If that doesn't work, then make sure your item and recipe are correct (remember, case-sensitive.)
     
  4. gamez7

    gamez7 Void-Bound Voyager

    Thanks guys! I'm kind of new to modding, will do next time :)
     

Share This Page