Modding Help Difference between depth1/depth2/depth3 in oredistributions?

Discussion in 'Starbound Modding' started by SorensonPA, Dec 9, 2013.

  1. SorensonPA

    SorensonPA Aquatic Astronaut

    So if anybody's ever cracked open oredistributions.lvltables, you get a spread of data determining what stuff spawns where:

    Code:
    {
    
      "surfaceOres" : [
      [1, [ [ "copper", 0.6], [ "coal", 0.6], [ "iron", 0.45], [ "silverore", 0.3], [ "gold", 0.1] ] ],
      [11, [ [ "copper", 0.6], [ "coal", 0.6], [ "iron", 0.55], [ "silverore", 0.3], [ "gold", 0.1] ] ],
      [21, [ [ "copper", 0.6], [ "coal", 0.6], [ "titanium", 0.45], [ "silverore", 0.2], [ "gold", 0.22], [ "iron", 0.20] ] ],
      [31, [ [ "copper", 0.3], [ "coal", 0.6], [ "titanium", 0.55], [ "silverore", 0.6], [ "gold", 0.3], [ "iron", 0.22] ] ],
      [32, [ [ "copper", 0.3], [ "coal", 0.6], [ "aegisalt", 0.45], [ "silverore", 0.6], [ "gold", 0.3], [ "titanium", 0.22], [ "iron", 0.11] ] ],
      [33, [ [ "copper", 0.3], [ "coal", 0.6], [ "aegisalt", 0.55], [ "silverore", 0.6], [ "gold", 0.3], [ "titanium", 0.22], [ "iron", 0.11] ] ],
      [34, [ [ "coal", 0.6], [ "Cerulium", 0.45], [ "silverore", 0.3], [ "gold", 0.4], [ "platinum", 0.1], [ "aegisalt", 0.22], [ "titanium", 0.11],  [ "iron", 0.11] ] ],
      [35, [ [ "coal", 0.6], [ "Cerulium", 0.55], [ "silverore", 0.3], [ "gold", 0.4], [ "platinum", 0.1], [ "aegisalt", 0.22], [ "titanium", 0.11], [ "iron", 0.11] ] ] ,
      [36, [ [ "coal", 0.6], [ "Rubium", 0.45], [ "silverore", 0.3], [ "gold", 0.4], [ "platinum", 0.1], [ "Cerulium", 0.32], [ "aegisalt", 0.11], [ "titanium", 0.11],  [ "iron", 0.11] ] ] ,
      [37, [ [ "coal", 0.6], [ "Rubium", 0.55], [ "gold", 0.3], [ "platinum", 0.4], [ "diamond", 0.1], [ "Cerulium", 0.42], [ "aegisalt", 0.11], [ "titanium", 0.11],  [ "iron", 0.11] ] ]
       
      ],
    
      "subsurfaceOres" : [
      [1, [ [ "copper", 0.6], [ "coal", 0.6], [ "iron", 0.55], [ "silverore", 0.35], [ "gold", 0.15] ] ],
      [11, [ [ "copper", 0.6], [ "coal", 0.6], [ "iron", 0.6], [ "silverore", 0.35], [ "gold", 0.15] ] ],
      [21, [ [ "copper", 0.6], [ "coal", 0.6], [ "titanium", 0.55], [ "silverore", 0.25], [ "gold", 0.25], [ "iron", 0.27] ] ],
      [31, [ [ "copper", 0.35], [ "coal", 0.6], [ "titanium", 0.6], [ "silverore", 0.6], [ "gold", 0.35], [ "iron", 0.27] ] ],
      [32, [ [ "copper", 0.35], [ "coal", 0.6], [ "aegisalt", 0.55], [ "silverore", 0.6], [ "gold", 0.35], [ "titanium", 0.22], [ "iron", 0.11] ] ],
      [33, [ [ "copper", 0.35], [ "coal", 0.6], [ "aegisalt", 0.6], [ "silverore", 0.6], [ "gold", 0.35], [ "titanium", 0.22],  [ "iron", 0.11] ] ],
      [34, [ [ "coal", 0.6], [ "Cerulium", 0.55], [ "silverore", 0.35], [ "gold", 0.4], [ "platinum", 0.15], [ "aegisalt", 0.32], [ "titanium", 0.11],  [ "iron", 0.11] ] ],
      [35, [ [ "coal", 0.6], [ "Cerulium", 0.6], [ "silverore", 0.35], [ "gold", 0.4], [ "platinum", 0.15], [ "aegisalt", 0.32], [ "titanium", 0.11],  [ "iron", 0.11] ] ],
      [36, [ [ "coal", 0.6], [ "Rubium", 0.55], [ "silverore", 0.35], [ "gold", 0.4], [ "platinum", 0.15], [ "Cerulium", 0.32], [ "aegisalt", 0.11], [ "titanium", 0.11],  [ "iron", 0.11] ]  ],
      [37, [ [ "coal", 0.6], [ "Rubium", 0.6], [ "gold", 0.35], [ "platinum", 0.4], [ "diamond", 0.15], [ "Cerulium", 0.42], [ "aegisalt", 0.11], [ "titanium", 0.11],  [ "iron", 0.11] ] ]
      ],
    
      "deepsurfaceOres" : [
      [1, [ [ "copper", 0.65], [ "coal", 0.6], [ "iron", 0.65], [ "silverore", 0.4], [ "gold", 0.2] ] ],
      [11, [ [ "copper", 0.65], [ "coal", 0.6], [ "iron", 0.6], [ "silverore", 0.4], [ "gold", 0.2] ] ],
      [21, [ [ "copper", 0.65], [ "coal", 0.6], [ "titanium", 0.55], [ "silverore", 0.3], [ "gold", 0.35], [ "iron", 0.27] ] ],
      [31, [ [ "copper", 0.4], [ "coal", 0.6], [ "titanium", 0.6], [ "silverore", 0.65], [ "gold", 0.4], [ "iron", 0.27] ] ],
      [32, [ [ "copper", 0.4], [ "coal", 0.6], [ "aegisalt", 0.55], [ "silverore", 0.65], [ "gold", 0.4], [ "titanium", 0.22], [ "iron", 0.11] ] ],
      [33, [ [ "copper", 0.4], [ "coal", 0.6], [ "aegisalt", 0.6], [ "silverore", 0.65], [ "gold", 0.4], [ "titanium", 0.22], [ "iron", 0.11] ] ],
      [34, [ [ "coal", 0.6], [ "Cerulium", 0.55], [ "silverore", 0.4], [ "gold", 0.45], [ "platinum", 0.2], [ "aegisalt", 0.32], [ "titanium", 0.11],  [ "iron", 0.11] ] ],
      [35, [ [ "coal", 0.6], [ "Cerulium", 0.6], [ "silverore", 0.4], [ "gold", 0.45], [ "platinum", 0.2], [ "aegisalt", 0.32], [ "titanium", 0.11],  [ "iron", 0.11] ] ],
      [36, [ [ "coal", 0.6], [ "Rubium", 0.55], [ "silverore", 0.4], [ "gold", 0.45], [ "platinum", 0.2],[ "Cerulium", 0.42], [ "aegisalt", 0.11], [ "titanium", 0.11],  [ "iron", 0.11] ] ],
      [37, [ [ "coal", 0.6], [ "Rubium", 0.6], [ "gold", 0.4], [ "platinum", 0.45], [ "diamond", 0.2],[ "Cerulium", 0.42], [ "aegisalt", 0.11], [ "titanium", 0.11],  [ "iron", 0.11] ] ]
      ],
    
      "depth1" : [
      [1, [ [ "coal", 0.6], [ "copper", 0.65], [ "iron", 0.7], [ "silverore", 0.45], [ "gold", 0.3] ] ],
      [11, [ [ "coal", 0.6], [ "copper", 0.65], [ "iron", 0.8], [ "silverore", 0.45], [ "gold", 0.3] ] ],
      [21, [ [ "coal", 0.6], [ "uranium", 0.2], [ "copper", 0.45], [ "titanium", 0.6], [ "silverore", 0.45], [ "gold", 0.5], [ "iron", 0.27] ] ],
      [31, [ [ "coal", 0.6], [ "uranium", 0.2], [ "copper", 0.45], [ "titanium", 0.8], [ "silverore", 0.65], [ "gold", 0.45], [ "iron", 0.27] ] ],
      [32, [ [ "coal", 0.6], [ "uranium", 0.2], [ "plutonium", 0.2], [ "copper", 0.45], [ "aegisalt", 0.6], [ "silverore", 0.65], [ "gold", 0.45], [ "titanium", 0.22],  [ "iron", 0.11] ] ],
      [33, [ [ "coal", 0.6], [ "uranium", 0.2], [ "plutonium", 0.2], [ "copper", 0.45], [ "aegisalt", 0.8], [ "silverore", 0.65], [ "gold", 0.45], [ "titanium", 0.22],  [ "iron", 0.11] ] ],
      [34, [ [ "coal", 0.6], [ "uranium", 0.2], [ "plutonium", 0.2], [ "solarium", 0.2], [ "Cerulium", 0.6], [ "silverore", 0.45], [ "gold", 0.45], [ "platinum", 0.3], [ "aegisalt", 0.22], [ "titanium", 0.11],  [ "iron", 0.11] ] ],
      [35, [ [ "coal", 0.6], [ "uranium", 0.2], [ "plutonium", 0.2], [ "solarium", 0.2], [ "Cerulium", 0.8], [ "silverore", 0.55], [ "gold", 0.45], [ "platinum", 0.3], [ "aegisalt", 0.22], [ "titanium", 0.11],  [ "iron", 0.11] ] ],
      [36, [ [ "coal", 0.6], [ "uranium", 0.2], [ "plutonium", 0.2], [ "solarium", 0.2], [ "Rubium", 0.6], [ "silverore", 0.45], [ "gold", 0.45], [ "platinum", 0.3], [ "Cerulium", 0.42], [ "aegisalt", 0.11], [ "titanium", 0.11],  [ "iron", 0.11] ] ],
      [37, [ [ "coal", 0.6], [ "uranium", 0.2], [ "plutonium", 0.2], [ "solarium", 0.2], [ "Rubium", 0.8], [ "gold", 0.55], [ "platinum", 0.45], [ "diamond", 0.3], [ "Cerulium", 0.42], [ "aegisalt", 0.11], [ "titanium", 0.11],  [ "iron", 0.11] ] ]
      ],
    
      "depth2" : [
      [1, [ [ "coal", 0.6], [ "copper", 0.65], [ "iron", 0.8], [ "silverore", 0.55], [ "gold", 0.4], [ "platinum", 0.1] ] ],
      [11, [ [ "coal", 0.6], [ "copper", 0.65], [ "iron", 0.9], [ "silverore", 0.55], [ "gold", 0.4], [ "platinum", 0.1] ] ],
      [21, [ [ "coal", 0.6], [ "uranium", 0.3], [ "copper", 0.45], [ "titanium", 0.8], [ "silverore", 0.45], [ "gold", 0.6], [ "platinum", 0.1], [ "iron", 0.27] ] ],
      [31, [ [ "coal", 0.6], [ "uranium", 0.3], [ "copper", 0.55], [ "titanium", 0.9], [ "silverore", 0.65], [ "gold", 0.55], [ "platinum", 0.1], [ "iron", 0.27] ] ],
      [32, [ [ "coal", 0.6], [ "uranium", 0.3], [ "plutonium", 0.3], [ "copper", 0.55], [ "aegisalt", 0.8], [ "silverore", 0.65], [ "gold", 0.55], [ "platinum", 0.1], [ "titanium", 0.22],  [ "iron", 0.11] ] ],
      [33, [ [ "coal", 0.6], [ "uranium", 0.3], [ "plutonium", 0.3], [ "copper", 0.55], [ "aegisalt", 0.9], [ "silverore", 0.65], [ "gold", 0.55], [ "platinum", 0.1], [ "titanium", 0.22],  [ "iron", 0.11] ] ],
      [34, [ [ "coal", 0.6], [ "uranium", 0.3], [ "plutonium", 0.3], [ "solarium", 0.3], [ "Cerulium", 0.8], [ "silverore", 0.55], [ "gold", 0.45], [ "platinum", 0.4], [ "diamond", 0.1], [ "aegisalt", 0.22], [ "titanium", 0.11],  [ "iron", 0.11] ] ],
      [35, [ [ "coal", 0.6], [ "uranium", 0.3], [ "plutonium", 0.3], [ "solarium", 0.3], [ "Cerulium", 0.9], [ "silverore", 0.6], [ "gold", 0.45], [ "platinum", 0.4], [ "diamond", 0.1], [ "aegisalt", 0.22], [ "titanium", 0.11],  [ "iron", 0.11] ] ],
      [36, [ [ "coal", 0.6], [ "uranium", 0.3], [ "plutonium", 0.3], [ "solarium", 0.3], [ "Rubium", 0.8], [ "silverore", 0.55], [ "gold", 0.45], [ "platinum", 0.4], [ "diamond", 0.1], [ "Cerulium", 0.42], [ "aegisalt", 0.11], [ "titanium", 0.11],  [ "iron", 0.11] ] ],
      [37, [ [ "coal", 0.6], [ "uranium", 0.3], [ "plutonium", 0.3], [ "solarium", 0.3], [ "Rubium", 0.9], [ "gold", 0.6], [ "platinum", 0.45], [ "diamond", 0.4], [ "Cerulium", 0.42], [ "aegisalt", 0.11], [ "titanium", 0.11],  [ "iron", 0.11] ] ]
      ],
    
      "depth3" : [
      [1, [ [ "coal", 0.6], [ "copper", 0.65], [ "iron", 0.9], [ "silverore", 0.6], [ "gold", 0.45], [ "platinum", 0.2], [ "diamond", 0.1], [ "iron", 0.27] ] ],
      [11, [ [ "coal", 0.6], [ "copper", 0.65], [ "iron", 0.95], [ "silverore", 0.6], [ "gold", 0.45], [ "platinum", 0.2], [ "diamond", 0.1], [ "iron", 0.27] ] ],
      [21, [ [ "coal", 0.6], [ "uranium", 0.4], [ "copper", 0.45], [ "titanium", 0.9], [ "silverore", 0.5], [ "gold", 0.65], [ "platinum", 0.2], [ "diamond", 0.1], [ "titanium", 0.22],  [ "iron", 0.11] ] ],
      [31, [ [ "coal", 0.6], [ "uranium", 0.4], [ "copper", 0.6], [ "titanium", 0.95], [ "silverore", 0.65], [ "gold", 0.6], [ "platinum", 0.2], [ "diamond", 0.1], [ "titanium", 0.22],  [ "iron", 0.11] ] ],
      [32, [ [ "coal", 0.6], [ "uranium", 0.4], [ "plutonium", 0.4], [ "copper", 0.6], [ "aegisalt", 0.9], [ "silverore", 0.65], [ "gold", 0.6], [ "platinum", 0.2], [ "diamond", 0.1], [ "aegisalt", 0.22], [ "titanium", 0.11],  [ "iron", 0.11] ] ],
      [33, [ [ "coal", 0.6], [ "uranium", 0.4], [ "plutonium", 0.4], [ "copper", 0.6], [ "aegisalt", 0.95], [ "silverore", 0.65], [ "gold", 0.6], [ "platinum", 0.2], [ "diamond", 0.1], [ "aegisalt", 0.22], [ "titanium", 0.11],  [ "iron", 0.11] ] ],
      [34, [ [ "coal", 0.6], [ "uranium", 0.4], [ "plutonium", 0.4], [ "solarium", 0.4], [ "Cerulium", 0.9], [ "silverore", 0.6], [ "gold", 0.45], [ "platinum", 0.45], [ "diamond", 0.2],  [ "aegisalt", 0.11], [ "titanium", 0.11],  [ "iron", 0.11] ] ],
      [35, [ [ "coal", 0.6], [ "uranium", 0.4], [ "plutonium", 0.4], [ "solarium", 0.4], [ "Cerulium", 0.95], [ "silverore", 0.65], [ "gold", 0.45], [ "platinum", 0.45], [ "diamond", 0.2],  [ "aegisalt", 0.11], [ "titanium", 0.11],  [ "iron", 0.11] ] ],
      [36, [ [ "coal", 0.6], [ "uranium", 0.4], [ "plutonium", 0.4], [ "solarium", 0.4], [ "Rubium", 0.9], [ "silverore", 0.6], [ "gold", 0.45], [ "platinum", 0.45], [ "diamond", 0.2], [ "Cerulium", 0.42], [ "aegisalt", 0.11], [ "titanium", 0.11],  [ "iron", 0.11] ] ],
      [37, [ [ "coal", 0.6], [ "uranium", 0.4], [ "plutonium", 0.4], [ "solarium", 0.4], [ "Rubium", 0.95], [ "gold", 0.65], [ "platinum", 0.45], [ "diamond", 0.45], [ "Cerulium", 0.42], [ "aegisalt", 0.11], [ "titanium", 0.11],  [ "iron", 0.11] ] ]
      ],
    The first several are fairly self-explanatory, but the last 3 not so much despite what you'd think. There've been numerous people remarking about how platinum doesn't spawn in their games until they hit level 34 planets, and this is true in the case of everything through depth1 - depth2 and depth3, though, have it spawning from the get-go.

    So what exactly are those last two entries, then? I've dug hellevators on level 20 planets to the magma core and dug tunnels around the entire planet without a single platinum to show for it, so it doesn't seem to be a direct correlation to depth. Could it maybe be something to do with planet size, ie larger planets having more layers? Or does planet size merely increase the actual layer size and not the number?
     
  2. p0pp3t

    p0pp3t Void-Bound Voyager

    I would assume it depends on the side of the planet. If you look in the planetgen.config file, you'll see "undergroundLayers". Only large, verylarge and huge have at least 2 underground layers and huge is the only one with 3 layers.
     
  3. SorensonPA

    SorensonPA Aquatic Astronaut

    Which brings up the initially-silly question of "which planets are large, very large and huge?". There doesn't seem to be an indicator in the navigation screen about planet size - just level and biome - and eyeballing it based on the graphics doesn't seem to be very reliable as I just spent the better part of 15 minutes carving a tunnel capable of holding a jumbo jet through the just-above-the-magma layer of a seemingly-massive level 11 desert world. Perhaps giving all planet types 3 depth layers for the time being would be a good idea until that issue gets sorted out.
     
  4. p0pp3t

    p0pp3t Void-Bound Voyager

    Based on the celestial.config file
    Code:
    "variationParameters" : [
            {
              "imageScale" : 0.125,
              "smallImageScale" : 0.5,
              "worldSize" : "large"
            },
            {
              "imageScale" : 0.15,
              "smallImageScale" : 0.6,
              "worldSize" : "verylarge"
            },
            {
              "imageScale" : 0.175,
              "smallImageScale" : 0.7,
              "worldSize" : "huge"
            }
          ],
    The size of the image of the planet scales with the world size. Knowing which size is large and very large is another thing, but i guess we could assume the biggest one is huge and go from there.
     
  5. Platoonsgt1

    Platoonsgt1 Big Damn Hero

    With the distribution tables, it seems that any value below about 0.27 basically won't spawn any ores, hence why you rarely find iron above level 21 planets, even though the iron is said to spawn everywhere (The last value on every single row is iron)
     

Share This Page