Modding Help Can someone error check this code for me?

Discussion in 'Starbound Modding' started by BlueLeafeon, Sep 5, 2016.

  1. BlueLeafeon

    BlueLeafeon Cosmic Narwhal

    I'm trying to copy/paste things from the tundra biome into a barren biome to make a monsterless, but still plant- and tree-decorated planet type. I don't want ALL the things spawnable from Tundra biomes, so I deleted a few, and this apparently broke something along the way. It's probably a missing or misplaced comma, but anyway, here we go:

    Code:
        "surfacePlaceables" : {
        "grassMod" : [ "snow" ],
        "grassModDensity" : 1,
    
        "items" : [
          {
            "mode" : "floor",
            "priority" : 0,
            "variants" : 1,
            "distribution" : "/biomes/distributions.config:overgroundChests",
    
            "type" : "treasureBox",
            "treasureBoxSets" : [ "iceChest" ]
          },
          {
            "mode" : "floor",
            "priority" : 1.0,
            "variants" : 1,
            "distribution" : "/biomes/distributions.config:scatteredSmall",
    
            "type" : "object",
            "objectSets" : [
              {
                "pool" : [ [0.35, "iceshard1" ], [0.35, "iceshard2" ], [0.35, "iceshard3" ], [0.35, "iceshard4" ], [0.35, "iceshard5" ] ],
                "parameters" : { }
              }
            ]
          },
          {
            "mode" : "floor",
            "priority" : 1.0,
            "variants" : 1,
            "distribution" : "/biomes/distributions.config:potsRare",
    
            "type" : "object",
            "objectSets" : [
              {
                "pool" : [ [0.35, "snowdrift1" ], [0.35, "snowdrift2" ], [0.35, "snowdrift3" ], [0.35, "snowdrift4" ] ],
                "parameters" : { }
              }
            ]
          },
          {
            "mode" : "floor",
            "priority" : 1.0,
            "variants" : 1,
            "distribution" : "/biomes/distributions.config:ultraRare",
    
            "type" : "object",
            "objectSets" : [
              {
                "pool" : [ [1, "fancysnowman" ] ],
                "parameters" : { }
              }
            ]
          },
          {
            "mode" : "floor",
            "priority" : 3.0,
            "variants" : 1,
            "distribution" : "/biomes/distributions.config:scatteredSmall",
    
            "type" : "grass",
            "grasses" : [ "geometric" ]
          },
          {
            "mode" : "floor",
            "priority" : 5.0,
            "variants" : 1,
            "distribution" : "/biomes/distributions.config:overgroundChests",
    
            "type" : "microdungeon",
            "microdungeons" : [ "igloo" ]
          },
          {
            "mode" : "floor",
            "priority" : 1.0,
            "variants" : 1,
            "distribution" : "/biomes/distributions.config:moderateClumps",
    
            "type" : "tree",
            "treeFoliageHueShiftMax" : 0,
            "treeStemHueShiftMax" : 12,
            "treeStemList" : [ "geometricstem", "icespherestem" ],
            "treeFoliageList" : [ "" ]
          },
          {
            "mode" : "floor",
            "priority" : 1.0,
            "variants" : 1,
            "distribution" : "/biomes/distributions.config:scatteredSmall",
    
            "type" : "object",
            "objectSets" : [
              {
                "pool" : [ [0.35, "geometricshard1" ], [0.35, "geometricshard2" ], [0.35, "geometricshard3" ], [0.35, "geometricshard4" ], [0.35, "geometricshard5" ] ],
                "parameters" : { }
              }
            ]
          }
        ]
      }
    This was placed at the end of the file, and there's a single } after this, which ends the code.
     
  2. The | Suit

    The | Suit Agent S. Forum Moderator

  3. cybersam

    cybersam Subatomic Cosmonaut

    it is important to learn how to check your own changes....

    well...anyway...

    to your problem...
    the code you posted
    did you post every single character in the file (i mean "everything") ?!


    if yes... then you are missing the starting and ending bracets
    at the start you need to add "{"
    and at the end "}"

    the rest seems valid... and i mean it as a valid jason...
     
  4. Inf_Wolf14

    Inf_Wolf14 Parsec Taste Tester

    Another tool you can use to check your JSON is to try an online validator like JSONLint:
    (http://jsonlint.com/)

    This way you can check for surface errors before you ever have to open SB.
     
  5. BlueLeafeon

    BlueLeafeon Cosmic Narwhal

    I checked my starbound.log but never quite figured out what I was looking at. Thanks to that, though, I figured out that it was a comma missing from the line ABOVE the part I added. Oops.

    That doesn't seem to quite help? The finds an error with the sky options line, which has nothing to do with anything I edited lol.
     

Share This Page