Modding Help Can someone tell me what I am doing wrong?

Discussion in 'Starbound Modding' started by GoldenstarArtist, Jan 4, 2014.

  1. GoldenstarArtist

    GoldenstarArtist Cosmic Narwhal

    So I've been working for a few days now on a really great Buddhist monk vanity outfit just so I could test out how the modding system works (and possibly make more things in the future) - However even after following close instruction, I still can't seem to get the items to work...

    Can I trouble someone to look at my mod and see that the issue is? There is two pieces, a chest and leggings, The idea was to have it crafted on the yarnspinner for 10 fabric, and two dyes... (red&Yellow for the chest, and 2 yellow for the skirt/pants)
     
  2. Denesta

    Denesta Subatomic Cosmonaut

    There were a few things here but is was a good first try.

    1. The robe's need to be placed in a file structure like other clothing items in the game for them to work properly. I put them in \items\armor\other\BuddistRobe and that will work fine.

    2. In BuddhistRobeChest.chest you have vanity in the inspectionKind field. Thats not a valid inspectionKind so you should change that to armor.

    3. In both recipes you are missing commas on the inputs.

    4. Your folder name, modInfo name and the name field in the mod info should all match. So something like this:
    \BuddistRobeMod\BuddistRobeMod.modinfo
    Code:
    {
    "name" : "BuddistRobeMod",
    "version" : "Beta v. Angry Koala",
    "path" : ".",
    "dependencies" : [ ]
    }
    5. You can make a merged player.config file like this so you don't need people to manually do it.
    Code:
    {
      "__merge" : [],
      "defaultBlueprints" : {
          "tier1" : [
            { "item" : "BuddhistRobeChest" },
            { "item" : "BuddhistRobeSkirt" }
          ]
      }
    }
    Hope that helps. :)
     
    GoldenstarArtist and Kyrosiris like this.
  3. GoldenstarArtist

    GoldenstarArtist Cosmic Narwhal

    Thanks for taking the time to help me out!

    With the player merge file, do I just save that as a player.config in the mod?
     
  4. Kyrosiris

    Kyrosiris Scruffy Nerf-Herder

    That is correct. Another big thing that trips people up - if you're merging or otherwise altering any already-present asset, your directory structure needs to reflect the game's exactly, but consider the root mod folder (where your .modinfo is) as /assets.
     
    GoldenstarArtist likes this.
  5. Denesta

    Denesta Subatomic Cosmonaut

    You're welcome :)

    Yep, just make a player.config in your mod folder and copy/paste that into it. That will make your mod stuff merge right into the default player.config when the game starts.
     
    GoldenstarArtist likes this.
  6. GoldenstarArtist

    GoldenstarArtist Cosmic Narwhal

    Alrightly... one more thing...

    Is this what you mean by the commas?

    Code:
    {
      "input" : [
        { "item" : "fabric", "count" : 10 },
        { "item" : "yellowdye", "count" : 1 },
        { "item" : "reddye", "count" : 1 }
      ],
      "output" : { "item" : "BuddhistRobeChest", "count" : 1 },
      "groups" : [ "spinningwheel", "armor", "chest" ]
    }
    
     
  7. GoldenstarArtist

    GoldenstarArtist Cosmic Narwhal

    Preview.png

    Btw, if your curious this is what it's going to look like :D
     
    Holgast likes this.
  8. Kyrosiris

    Kyrosiris Scruffy Nerf-Herder

    That's precisely it. Within any sub-layer - that is, brackets, curly braces, etc. - any "list of things" needs to have a comma between each "thing" unless it is the last "thing".

    In your input, you start a new sublayer with the braces. Thus, your inputs form a list, and each one needs a comma after, just like you did.

    Edit: Also that's pretty.
     
    GoldenstarArtist likes this.
  9. Denesta

    Denesta Subatomic Cosmonaut

    Yep, that looks right. This game is super picky about it's commas :rofl:
     
    GoldenstarArtist likes this.
  10. Kyrosiris

    Kyrosiris Scruffy Nerf-Herder

    If I had a dollar for every time my girlfriend has mocked me for getting Really Mad About Commas, I could buy someone a copy of Starbound. :p
     
    GoldenstarArtist likes this.
  11. GoldenstarArtist

    GoldenstarArtist Cosmic Narwhal

    Alright... Lets test this bad boy >:D

    I will for sure make more, but I can see why not very many people due full outfits; there is a lot more frames then I thought there would be...
     
  12. GoldenstarArtist

    GoldenstarArtist Cosmic Narwhal

    Hmm Looks like it's working :D oddly though the icons are not showing.. hmm...
     
  13. Kyrosiris

    Kyrosiris Scruffy Nerf-Herder

    Did you properly use the inventoryIcon line in the armor's file?
     
  14. GoldenstarArtist

    GoldenstarArtist Cosmic Narwhal

    Code:
      "itemName" : "BuddhistRobeChest",
      "inventoryIcon" : "icons.png:chest",
      "dropCollision" : [-4.0, -3.0, 4.0, 3.0],
      "maxStack" : 1,
      "rarity" : "Common",
      "description" : "Humble yet Brezzy.",
      "shortdescription" : "Buddhist Robe Top",
      "inspectionKind" : "Armor",
     
  15. Kyrosiris

    Kyrosiris Scruffy Nerf-Herder

    Ah, did you make an icons.png?
     
  16. GoldenstarArtist

    GoldenstarArtist Cosmic Narwhal

    Yes, there is an "icons.png" in the same folder....
     

Share This Page