Modding Help I can't get recipes to appear in the anvil

Discussion in 'Starbound Modding' started by Toseda, Nov 21, 2017.

  1. Toseda

    Toseda Phantasmal Quasar

    I want some weapons to appear in the first anvil but I can't find them in game. My hierarchy corresponding with the starbound asset folder is recipes/anvil1/weapons/tier1. Help me
     
  2. The | Suit

    The | Suit Agent S. Forum Moderator

    It has to match filter name.
    You also have to unlock the recipes by adding it to player.config

    Location where you kept the recipe has no relevance.

    I suggest my Video for learning basics.

     
  3. lazarus78

    lazarus78 The Waste of Time

    If your crafting station uses a custom config, you can add in this line:

    "requiresBlueprint" : false,

    this will bypass the need to list the blueprints in the player.config by making them just visible to all. Obviously this doesn't work if you are intending there to be a defined progression like Starbound does, unlocking blueprints as you go, but I was never fond of that method.
     
  4. Toseda

    Toseda Phantasmal Quasar

    its the normal anvil without upgrades
     
  5. slowcold

    slowcold Pangalactic Porcupine

    "groups" : [ "craftinganvil", "weapons", "all" ] should be in your recipe file. If it isn't, the anvil won't see the recipe even if it has been learned.
     
  6. Toseda

    Toseda Phantasmal Quasar

    Uh (sorry to revive this), one of my recipe file looks like this

    {
    "input" : [
    { "item" : "titaniumbar", "count" : 3 },
    { "item" : "ironbar", "count" : 1 },
    { "item" : "yellowdye", "count" : 3 }
    ],
    "output" : {
    "item" : "yellowsword",
    "count" : 1
    },
    "duration" : 8.00,
    "groups" : [ "craftinganvil", "weapons", "all" ]
    }

    and my player.config.patch file looks like this

    Code:
    [
    {
    "op":"add",
    "path":"/defaultBlueprints/tier1/-",
    "value":{"item":"vulcan"},
    "value":{"item":"recon"},
    "value":{"item":"cyclone"},
    "value":{"item":"longstrike"},
    "value":{"item":"roughcut"},
    "value":{"item":"yellowsword"},
    "value":{"item":"rivalatlasblue"},
    "value":{"item":"rivalnemesisblue"},
    "value":{"item":"rivalzeusblue"},
    "value":{"item":"rivalatlasred"},
    "value":{"item":"rivalnemesisred"},
    "value":{"item":"rivalzeusred"},
    "value":{"item":"incisor"},
    "value":{"item":"rayven"},
    "value":{"item":"maverick"}
    }
    ]
    and my weapons still won't appear in the anvil in non-admin mode.
    Sorry if something here is blatantly wrong, i don't know much about the code of starbound.
    I've also looked through some other mod's code and I see something that looks like this
    Code:
    // Theron Shan
    
    {"op" : "add","path" : "/defaultBlueprints/tier1/-","value" : { "item" : "SWM2theronchest" }},
    {"op" : "add","path" : "/defaultBlueprints/tier1/-","value" : { "item" : "SWM2theronlegs" }},
    and I was wondering what it does or if it's the same as my player.config.patch file
     
  7. Nexus Of Chaos

    Nexus Of Chaos Parsec Taste Tester

    u can only have 1 value per path, and 1 path per operation. u may patch the same path thru multiple operations, tho
     
    projectmayhem likes this.
  8. Toseda

    Toseda Phantasmal Quasar

    so i would type

    Code:
    {"op : "add","path" : "/defaultBlueprints/tier1-","value":{"item":"yellowsword"},
    but change "yellowsword" with something else?
     
  9. Nexus Of Chaos

    Nexus Of Chaos Parsec Taste Tester

    essentially yes, but multiple times
     
  10. Toseda

    Toseda Phantasmal Quasar

    so then my entire player.config.patch file would be this?
    Code:
    [
    {
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"vulcan"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"recon"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"cyclone"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"longstrike"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"roughcut"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"yellowsword"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"rivalatlasblue"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"rivalnemesisblue"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"rivalzeusblue"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"rivalatlasred"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"rivalnemesisred"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"rivalzeusred"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"incisor"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"rayven"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"maverick"}
    }
    ]
     
  11. Nexus Of Chaos

    Nexus Of Chaos Parsec Taste Tester

    Code:
    [
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"vulcan"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"recon"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"cyclone"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"longstrike"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"roughcut"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"yellowsword"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"rivalatlasblue"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"rivalnemesisblue"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"rivalzeusblue"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"rivalatlasred"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"rivalnemesisred"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"rivalzeusred"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"incisor"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"rayven"},
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"maverick"}
    ]
    the [{ at the beginning would not work, just needs [
     
  12. Toseda

    Toseda Phantasmal Quasar

    Hmm, I must be doing something wrong then, I've done that and all the other things in this thread but I still can't get it to work. Sorry if this is to much to ask for but it could be something else in my files that's wrong that I don't know. If someone feels like going through my files, go ahead. Don't know if this is asking too much.
     

    Attached Files:

  13. projectmayhem

    projectmayhem Spaceman Spiff

    You patch is called .player.config.patch
    remove the extra "." in front so it reads player.config.patch
     
  14. Toseda

    Toseda Phantasmal Quasar

    now my game crashes and i don' have any other mods on.
     
  15. Nexus Of Chaos

    Nexus Of Chaos Parsec Taste Tester

    just realized every } in what I showed u should be }}
    Code:
    [
    {"op" : "add","path" : "/defaultBlueprints?tier1/-","value":{"item":"vulcan"}, <----- missing } between } and ,
     
    projectmayhem and lazarus78 like this.
  16. Toseda

    Toseda Phantasmal Quasar

    so my player.blah blah blah file would look like this?
    Code:
    [
    {"op" : "add","path" : "/defaultBlueprintstier1/-","value":{"item":"vulcan"}},
    {"op" : "add","path" : "/defaultBlueprintstier1/-","value":{"item":"recon"}},
    {"op" : "add","path" : "/defaultBlueprintstier1/-","value":{"item":"cyclone"}},
    {"op" : "add","path" : "/defaultBlueprintstier1/-","value":{"item":"longstrike"}},
    {"op" : "add","path" : "/defaultBlueprintstier1/-","value":{"item":"roughcut"}},
    {"op" : "add","path" : "/defaultBlueprintstier1/-","value":{"item":"yellowsword"}},
    {"op" : "add","path" : "/defaultBlueprintstier1/-","value":{"item":"rivalatlasblue"}},
    {"op" : "add","path" : "/defaultBlueprintstier1/-","value":{"item":"rivalnemesisblue"}},
    {"op" : "add","path" : "/defaultBlueprintstier1/-","value":{"item":"rivalzeusblue"}},
    {"op" : "add","path" : "/defaultBlueprintstier1/-","value":{"item":"rivalatlasred"}},
    {"op" : "add","path" : "/defaultBlueprintstier1/-","value":{"item":"rivalnemesisred"}},
    {"op" : "add","path" : "/defaultBlueprintstier1/-","value":{"item":"rivalzeusred"}},
    {"op" : "add","path" : "/defaultBlueprintstier1/-","value":{"item":"incisor"}},
    {"op" : "add","path" : "/defaultBlueprintstier1/-","value":{"item":"rayven"}},
    {"op" : "add","path" : "/defaultBlueprintstier1/-","value":{"item":"maverick"}}
    ]
     
  17. Nexus Of Chaos

    Nexus Of Chaos Parsec Taste Tester

  18. lazarus78

    lazarus78 The Waste of Time

  19. Toseda

    Toseda Phantasmal Quasar

    Why does nothing here work. :(
     
  20. The Avelon

    The Avelon Phantasmal Quasar

    The path is incorrect. Here is what each line should look like:

    Code:
    { "op" : "add", "path" : "/defaultBlueprints/tier1/-", "value" : { "item" : "itemname" } }
    Make sure you did indeed rename it to player.config.patch without that extra period at the beginning. It was crashing because of the lack of second curly bracket, and now nothing is showing up because your path is /defaultBlueprintstier1/- (missing a / between Blueprints and tier1)
     
    DrPvtSkittles and projectmayhem like this.

Share This Page