Modding Help My item wont show up in crafting table

Discussion in 'Starbound Modding' started by Martacus, Dec 11, 2013.

  1. Martacus

    Martacus Space Hobo

    Hey i just made an new chest . But when i start the game I make a new caracter and it doesnt show up in the crafting table. Also not on the tabs.

    This are my maps and my codes:

    Starbound/assets/objects/generic/ironchest

    This is the code in the .object and the .frame
    Code:
    {
      "objectName" : "ironchest",
      "rarity" : "Common",
      "objectType" : "container",
    
      "category" : "storage",
      "price" : "500",
      "description" : "A Iron Chest for some Iron storage!",
      "shortdescription" : "Iron Chest",
      "race" : "apex",
    
      "apexDescription" : "A chest! It looks shiny!",
      "avianDescription" : "A Iron chest. Anything useful to storage in there?",
      "floranDescription" : "Ssssweet chesst!",
      "glitchDescription" : "Analysing lock. There is no lock.",
      "humanDescription" : "I feel like a pirate with a nice shiny chest.",
      "hylotlDescription" : "A chest always fills me with excitement.",
    
      "inventoryIcon" : "ironchesticon.png",
      "orientations" : [
        {
          "dualImage" : "ironchest.png:<color>.<key>",
          "imagePosition" : [-8, 0],
    
          "spaceScan" : 0.1,
          "anchors" : [ "bottom" ]
        }
      ],
    
      "openSounds" : [ "/sfx/objects/chest_medium_open.wav" ],
      "closeSounds" : [ "/sfx/objects/chest_medium_close.wav" ],
      "slotCount" : 20,
      "uiConfig" : "/interface/chests/chest%slots%.config",
      "frameCooldown" : 67,
      "autoCloseCooldown" : 3600
    }
    
    Code:
    {
    
      "frameGrid" : {
        "size" : [16, 16],
        "dimensions" : [3, 1],
        "names" : [
          [ "default.0", "default.1", "default.2" ]
        ]
      },
    
      "aliases" : {
        "default.default" : "default.0"
      }
    }
    
    And i have both the icons in .png with the right names: ironchesticon.png and ironchest.png

    Then i have Starbound/assets/recipes/starter/crafting table

    In this i made an file named ironchest.recipe
    This si the code in it:
    Code:
    {
      "input" : [
        { "item" : "darkwoodmaterial", "count" : 30 },
        { "item" : "ironbar", "count" : 5 }
      ],
      "output" : {
        "item" : "ironchest",
        "count" : 1
      },
      "groups" : [ "crafting table", "all" ]
    }
    
    And i put this in the player.config in tier 1 : { "item" : "ironchest" },
     
  2. UrbanMyth

    UrbanMyth Space Spelunker

    I belive craftingtable is in one word. Try to change that in your recipe. :)
     
  3. deep_pants_mcgee

    deep_pants_mcgee Seal Broken

    Does it need an additional grouping tag here? (note: i am not a modder and have no idea, just basing this off of looking at other mods I have that work)

    Code:
    "groups" : [ "crafting table", "all" ]
    Other mods I have they fall into a specific category type. "tool, armor, weapon etc" is it possible it doesn't load without that data?
     
  4. Silmaril.SE

    Silmaril.SE Astral Cartographer

    other chests have "storage" and "objects" in their group field. so you could try that.
     
  5. Martacus

    Martacus Space Hobo

    Nope its in all the recipes
    I am trying it now. I hope it works since then ill be going further with my new mod!

    EDIT: Started a new char and nope. Still not working
     
  6. UrbanMyth

    UrbanMyth Space Spelunker

    i have used it in one word, and all of my recipes is working.
     
  7. Martacus

    Martacus Space Hobo

    I try

    EDIT: YES THANKYOU!! it works!
     
  8. UrbanMyth

    UrbanMyth Space Spelunker

    i have craftingtable in one word in every recipe i have made, not sure why it is not working for you. You could try to put anvil as a group and see if that works.
     
  9. Martacus

    Martacus Space Hobo

    It worked lol. This simple? But it wasnt showing in any other recipes soo yesh xD

    EDIT: K so now i open my chest and the game just closes. I gave it 20 spaces is that impossible?
    EDIT 2: Nope even with 16 slots it closes the game
     
    Last edited: Dec 11, 2013
  10. UrbanMyth

    UrbanMyth Space Spelunker

    I just had the same problem. it seems like the problem are related to the interface files. I fixed it by copying some of the files i needed to the mod folder i created.
    Here is the object i made, you can check out the files i have.
     

    Attached Files:

  11. Martacus

    Martacus Space Hobo

    I didnt know about an interface or an sfx xD well maybe thats the problem

    EDIT: Eeehm i dont get the interface qand sfx thingy. Il gotta look trough it because it all seems to be in there
     
    Last edited: Dec 12, 2013
  12. UrbanMyth

    UrbanMyth Space Spelunker

    You recommend you to read the error log after a crash. This helped me allot :)
     

Share This Page