Modding Help Having an Admin related problem

Discussion in 'Starbound Modding' started by student 20, May 22, 2015.

  1. student 20

    student 20 Aquatic Astronaut

    Hey, everyone!
    I'm working on a pretty simple mod. Basically, it adds some low level Iron and Steel pickaxes, and iron and steel axes for lumber. Everything about the items themselves is working fine, but I have a weird problem: the items only show up at crafting stations when I'm admin.

    Now, I've done a search, both specifically in this forum and using Google, looking for a solution. I would have tried the solutions I had found, except my code looked exactly like the suggested code; there was nothing to change.

    Keeping that in mind, I'm not sure what to do. I'm happy to post the code here (see below) for everything I've done, and any other errors I've made I'd love to know about.

    First, my player.config.patch file:
    Code:
    my player.config.patch:
    [
        {
            "op" : "add",
            "path" : "/defaultBlueprints/tier1/0",
            "value" : {"item" : "ironpickaxe"}
        },
        {
            "op" : "add",
            "path" : "/defaultBlueprints/tier1/1",
            "value" : {"item" : "ironlumberaxe"}
        },
        {
            "op" : "add",
            "path" : "/defaultBlueprints/tier2/-",
            "value" : {"item" : "steellumberaxe"}
        },
        {
            "op" : "add",
            "path" : "/defaultBlueprints/tier2/-",
            "value" : {"item" : "steelpickaxe"}
        }
    ]
    Now, the Iron Lumber Axe, as an example - I have other items, but they all follow this pretty closely:
    Code:
    One of  the added items:
    {
      "itemName" : "ironlumberaxe",
      "inventoryIcon" : "ironaxeicon.png",
      "dropCollision" : [-4.0, -3.0, 4.0, 3.0],
      "maxStack" : 1,
      "rarity" : "Common",
      "tooltipKind" : "tool",
      "description" : "For taking out those evil trees!",
      "shortdescription" : "Iron Lumber Axe",
      "largeImage" : "ironaxebig.png",
      "image" : "ironaxe.png",
      "handPosition" : [-4, -8],
      "fireTime" : 0.4,
      "blockRadius" : 2,
      "altBlockRadius" : 1,
      "damage" : 15,
      "twoHanded" : true,
      "strikeSounds" : [ "/sfx/tools/pickaxe_hit.wav" ]
    }
    
    And the corresponding recipe:
    Code:
    Iron Lumber Axe recipe code:
    {
      "input" : [
        { "item" : "ironbar", "count" : 3 }
      ],
      "output" : { "item" : "ironlumberaxe", "count" : 1 },
      "groups" : [ "anvil", "tools", "all" ]
    }
    
    Any and all help is appreciated. I've got some customized icons and stuff going along with it, and I'll be happy to post it once I get it working.

    --student 20
     
  2. lazarus78

    lazarus78 The Waste of Time

    Did you try on a new character or an existing one?
     
    student 20 likes this.
  3. Kayuko

    Kayuko Oxygen Tank

    There is no array-table called "defaultBlueprints/tier2/" and higher.
    They are unlocked via different things by now.
    Also, you should usually just add them to a new array index, not a specified one.
    "/defaultBlueprints/tier1/-"
    Everything else "should" work, try to modify the playerconfig like this and report back if it worked.
     
    student 20 likes this.
  4. student 20

    student 20 Aquatic Astronaut

    Thanks for the quick response!

    I used both suggestions - I fixed the player.config.patch file and I used a new character. It worked perfectly!

    Okay. Just a few more additions, and I'll be all set. I see a lot of mods aimed at later game stuff, and I wanted to make one that would provide helpful, but not broken, tools for starting players. I really appreciate the help, and I look forward to posting my mod in such a friendly and helpful community. Thanks again!
     
    lazarus78 and Kayuko like this.
  5. student 20

    student 20 Aquatic Astronaut

    FYI, the mod is uploaded. Any feedback is appreciated!
     

Share This Page