Config files - Angry Koala

Discussion in 'Starbound Modding' started by michealv, Dec 24, 2013.

Thread Status:
Not open for further replies.
  1. Karmos

    Karmos Space Penguin Leader

    In the quoted text there was just a brace missing before "__merge" ... —no biggie.
     
  2. Westeller

    Westeller Space Penguin Leader

    It took me a bit to realize you meant the one he pasted further down rather than the initial examples, which are totes flawless.
    @michealv, this post has a missing bracket


    I'm not sure what you mean by multiple actions in the same config file.
    Let me give a brief example. The following code should do five things.

    • Add 1 recipe to tier 1
    • Overwrite all of tier 2 with 1 recipe
    • Remove tier 3
    • Change base health to 500
    • Adjust revive cost in pixels to 10% rather than 30%


    Code:
    {
      "__merge" : [],
    
       "defaultBlueprints" : {
          "__merge" : [
               ["overwrite", "tier2"],
               ["delete", "tier3"]
           ],
           "tier1" : [
              { "item" : "mycoolnewitem"  }
             ],
           "tier2" : [
              { "item" : "mycoolnewitem2" }
              ]
           },
    
       "maxHealth" : 500.0,
    
       "reviveCost" : {
         "percentile" : 10.0
        }
    
    }
    
     
    Last edited: Dec 24, 2013
    michealv and The | Suit like this.
  3. michealv

    michealv Industrial Terraformer

    What I'm after is a way to delete a specific item from say woodenbed from Tier 1 (from the default recipies) and replace it with one of my modded ones. Basically what I'm trying to do is make all the games default beds offer better healing as you progress through iron, titanium etc, without touching the main game assets.

    I'll add your example to the list though.
     
    Last edited: Dec 24, 2013
  4. Supergeek

    Supergeek Scruffy Nerf-Herder

    Your sig image doesn't work, btw. It shows an "image is not found" error.
     
Thread Status:
Not open for further replies.

Share This Page