ModTerrain

From The Colonists
Jump to navigation Jump to search

The terrain.json file may be used to change the biomes and terrain in random maps? - placeholder for now.
See existing entries in BiomeIds and in in TerrainIds

JSON fields

Name Entry Description
seaLevel 90 Defines sea level defualt height?
terrains array of ?? Defines ??

Example JSON

{
  "seaLevel": 90,
  "unitHeightLeewayNeeded": 10,
  "maxAdjustFromCoreHeight": 20,
  "maxNeighbourCornerAdjust": 5,
  "maxPathSlope": 10,
  "maxBuildingSlope": 30,
  "maxTrackSlope": 16,
  "maxRoamSlope": 20,
  "maxSheepFieldSlope": 12,
  "maxCowFieldSlope": 12,
  "maxOrchardFieldSlope": 12,
  "maxWheatFieldSlope": 12,
  "gravityFactor": 0.16, // gravity on projectiles in flight
  "snowTreeGrowthTimeFactor": 2.0,
  "defaultFogOfWarDistance": 16,
  "terrains": [
    {
      "terrainId": 1,
      "terrainCategory": 0
    },
    {
      "terrainId": 3,
      "terrainCategory": 0
    },
    {
      "terrainId": 15,
      "terrainCategory": 255
    },
    {
      "terrainId": 5,
      "terrainCategory": 2
    }
  ],
  "biomes": [
    {
      "biomeId": 0,
      "terrainHeightBoundaries": [
        {
          "terrainId": 2,
          "height": 0,
          "addSeaHeight": false,
          "terrainTileBorderType": 0
        },
        {
          "terrainId": 1,
          "height": 4,
          "addSeaHeight": true,
          "terrainTileBorderType": 0
        },
        {
          "terrainId": 3,
          "height": 16,
          "addSeaHeight": true,
          "terrainTileBorderType": 0
        },
        {
          "terrainId": 4,
          "height": 23,
          "addSeaHeight": true,
          "terrainTileBorderType": 1
        },
        {
          "terrainId": 5,
          "height": 70,
          "addSeaHeight": true,
          "terrainTileBorderType": 1
        }
      ]
    },
    {
      "biomeId": 1,
      "terrainHeightBoundaries": [
        {
          "terrainId": 5,
          "height": 50,
          "addSeaHeight": true,
          "terrainTileBorderType": 1
        }
      ]
    },
    {
      "biomeId": 2,
      "terrainHeightBoundaries": [
        {
          "terrainId": 2,
          "height": 0,
          "addSeaHeight": false,
          "terrainTileBorderType": 0
        },
        {
          "terrainId": 14,
          "height": 23,
          "addSeaHeight": true,
          "terrainTileBorderType": 1
        }
      ]
    }
  ]
}