Ring_tesselation missing

Summary:

Steps to reproduce:

  1. Start any normal world
  2. Check terrain elevation edges

Expected Results: The colors change near the edges.

Actual Results: Flat colors

Below you can see in the red circle there is no color change near the edge, in the elevation below I made a quick sketch of what colors (not exactly) should be there.

At first I thought it was me messing too much with terrain, but it also happens in the temperate biome, as shown in the picture.

#I found the bug.

It is here:
stonehearth/services/server/game_creation/game_creation_service.lua
At line 147:
radiant.terrain.get_terrain_component():set_ring_tesselator_config_file(biome_src)

As you can see, it is (trying) reading the property from the biome file, NOT from the biome_generation_file! As required in a18 new biome files.

One possible fix:

Replace that line with:

   local biome_generation_data = radiant.resources.load_json(biome_src).generation_file
   radiant.terrain.get_terrain_component():set_ring_tesselator_config_file(biome_generation_data)

Now it will read the “ring_tesselation” property from the right file.

3 Likes

Hi,
Thanks for catching this!
Fixed for next release
-Yang

4 Likes