Modding Help I need help, object broken and becoming a Perfectly Generic Item.

Discussion in 'Starbound Modding' started by Slash0mega, Dec 14, 2013.

  1. Slash0mega

    Slash0mega Subatomic Cosmonaut

    I am pretty sure that "Perfectly Generic Item" is a error handler if a object is broken or missing... Can someone experienced in modding help me figure out what i did wrong?

    ShipPartCrafter.object
    Code:
    {
      "objectName" : "ShipPartCrafter",
      "rarity" : "Common",
      "objectType" : "interactable",
      "interactAction" : "OpenCraftingInterface",
      "interactData" : {
        "config" : "/interface/windowconfig/craftingtable.config",
        "filter" : [ "ShipPartCrafter" ]8
      },
      "printable" : false,
      "description" : "A Device That can extract simple metals from the soil to make ship hulls, great for building your own ship!",
      "shortdescription" : "Ship Part Crafter",
      "race" : "generic",
      "category" : "crafting",
      "price" : "200",
    
      "learnBlueprintsOnPickup" : [
      { "item" : "ShipPartCrafter" },
      { "item" : "EasyCoalOre" },
      { "item" : "ShipDoor" },
      { "item" : "ShipLight" },
      { "item" : "ShipSupport" },
      { "item" : "ShipWall" }
      ]
    
      "apexDescription" : "A table with a bunch of tools for a craftsman.",
      "avianDescription" : "A chance to display one's ability to create.",
      "floranDescription" : "Floran ussse table. Make nice thingss.",
      "glitchDescription" : "Inspired. Crafting module activated.",
      "humanDescription" : "I can use materials I've found here to create new things.",
      "hylotlDescription" : "A chance to create.",
    
      "inventoryIcon" : "woodencraftingtable1icon.png",
      "orientations" : [
        {
          "dualImage" : "\objects\generic\pixelcompressor\pixelcompressor.png:<color>",
          "imagePosition" : [-24, 0],
          "frames" : 6,
          "animationCycle" : 1.0,
    
    
          "spaceScan" : 0.1,
          "anchors" : [ "bottom" ],
          "collision" : "platform"
    
        }
      ]
    }
    
    at first i though my add blueprint was bugged, but removing it did not help.

    do not know if this is important but those "item" under the add blueprint section are not actual items, but they are recipe names for recipes i built for the default ship parts.



    edit, here is the rest of my mod incase i broke somthing somewhere else.
     
    Last edited: Dec 14, 2013
  2. tifel100

    tifel100 Void-Bound Voyager

    Code:
    "filter" : [ "ShipPartCrafter" ]8
    Why is there an 8? remove the 8
     
  3. Slash0mega

    Slash0mega Subatomic Cosmonaut

    i have no idea where the 8 came from, must have accedently added it while editing the table.
    i thought the random 8 was odd, but thought it was there beforehand :/
     
  4. Slash0mega

    Slash0mega Subatomic Cosmonaut

    Still broken, trying to remove add blueprint again without the random 8 again.
     
  5. tifel100

    tifel100 Void-Bound Voyager

    If the item turned into the perfectly generic item, it won't turn into your item once you fix it, you have to obtain another 1.
     
  6. Slash0mega

    Slash0mega Subatomic Cosmonaut

    i have been checking the crafting table, not the object itself, but considering i do not know how recipies are stored on the character, i think ill be starting a new one to check if it is fixed there.
     
  7. Slash0mega

    Slash0mega Subatomic Cosmonaut

    nope, didn't work :(
    i think ill add the rest of my mod to the main topic incase i broke somthing somewhere else.
     
  8. Slash0mega

    Slash0mega Subatomic Cosmonaut

    using this that someone just linked on the mod forum, http://jsonlint.com/
    it shows that the problem is apparently in this line of my file...
    "dualImage": "\objects\generic\pixelcompressor\pixelcompressor.png:<color>",

    Parse error on line 27:
    ... "dualImage": "\objects\generic\pi
    -----------------------^
    Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['


    now i just need to figure out what i did wrong :/
     
  9. Slash0mega

    Slash0mega Subatomic Cosmonaut

    ...
    apparently the backslash was facing the wrong direction....
    but now my object is invisible... one step at a time i suppose.


    anyhow, thank you tefel100 for the help :)
     
  10. ollj

    ollj Big Damn Hero

    "learnBlueprintsOnPickup" : [
    { "item" : "ShipPartCrafter" },
    { "item" : "EasyCoalOre" },
    { "item" : "ShipDoor" },
    { "item" : "ShipLight" },
    { "item" : "ShipSupport" },
    { "item" : "ShipWall" }
    ]

    should be

    "learnBlueprintsOnPickup" : [
    "ShipPartCrafter" , "EasyCoalOre" , "ShipDoor" , "ShipLight" , "ShipSupport" , "ShipWall"
    ],

    the fatal error is a missing comma after the

    ],

    and some nonsense about items that is just making it way too complicated.
     
    Last edited: Dec 14, 2013
  11. Cayote

    Cayote Aquatic Astronaut

    Try removing the first backslash so it says: "objects\generic\pixelcompressor\pixelcompressor.png:<color>"

    or try removing ":<color>"


    (I assume you're using the bootstrap.config way of installing)

    Also do what ollj says above me.
     
  12. Slash0mega

    Slash0mega Subatomic Cosmonaut

    I did get it fixed, color did cause a issue, but then the WHOLE animation was showing at once, so it was a really, really, long object. the comma was also a issue...
    and i tried removing "item :" but the json checking threw up errors when i did.

    Anyhow, its all working now, and uploaded to the mod section.
     

Share This Page