Skip to content

Planet Configuration

Sushut edited this page May 31, 2025 · 2 revisions

!!! THIS PAGE IS INCOMPLETE! MORE DOCUMENTATION WILL RELEASE AS DEVELOPMENT CONTINUES !!!

This page will go over planet configuration for Gnome Space Program and all relevant parameters.

  • GSP's external configs use the JSON file format for configuring and parsing ingame content. That includes planets.
  • GSP configs DO NOT support comments!

This is how a standard planet config, (in this case, the homeworld, Gnobe) looks like:

{
  "configType": "cBody",
  "properties": {
    "name": "Gnobe",
    "geeASL": 1,
    "radius": 600000
  },
  "orbit": {
    "parent": "Sun",
    "semiMajorAxis": 14959800320,
    "inclination": 7.155,
    "eccentricity": 0.0167086,
    "argumentOfPeriapsis": 0,
    "longitudeOfAscendingNode": 0,
    "trueAnomaly": 0
  },
  "ocean": {
    "radius": 600000
  },
  "pqs": {
    "pqsMods": [
      {
        "mod": "fastNoise3D",
        "type": "perlin",
        "seed": 0,
        "offset": [-0.2,0,0],
        "deformity": 3000,
        "offset": -1000,
        "frequency": 281,
        "fractal": {
          "type": "pingPong",
          "octaves": 10,
          "lacunarity": 1,
          "gain": 0.5,
          "weightedStrength": 0,
          "pingPongParams": {
            "pingPongStrength": 2
          }
        },
        "cellular": {
          "distanceFunction": "euclidian",
          "jitter": 1,
          "returnType": "distance"
        }
      }
    ]
  }
}

A few complicated parameters (Such as pqs mods) are more extensively documented in the pqsMods page.