Wow, thanks guys for mentioning me as some kind of expert in biomes I’m not, but let me try to help.
You want less, but bigger mountains, so first increase your plains:
"plains_percentage": 40,
try maybe 80 as a value. This will be all areas without elevation. Everything else will be a mountain. Then to change the mountains you already figured out how:
"mountains": {
"step_size": 25,
"step_count": 7
}
step_size is always multiple of 5 (else the game crash, unless you also mod the .lua files with all the math for the terrains, then it is even possible to make smooth climbs), and it is the vertical size in blocks of each layer of a mountain.
step_count is the maximum possible steps a mountain will have. With a lot of flat/plain areas, there will be not much space for mountains and they will hardly reach the maximum size, cause they need a large base. (I can’t remember if there is a limit to this value)
With 80% plains and 7 steps, you will get mostly 4 steps tall mountains. Less plain allow more room for the mountains to grow more steps.
By the way, those are just the rock part of the mountain, not the grass one which can be tuned at the foothills code.
You can tune how many foothills you will get before reaching the rocks. I think temperate has 3 layers of foothill each with 10 block high and desert has only 2 layers with 5 blocks tall.
The desert file is closer to what you want, so it is better to mod your biome based on that file. If you want grass, just change the colors (or copy the colors from temperate)
-And thank you for posting! -It cleared allot of my confusion about the code.
I don’t know anything about the.Lua files yet though.
Yeah, the desert is best for the basis of the Biome I’m aiming for.
-And I got some great results! -And some crazy ones too.
Changing the colors for dirt to grass did not appear to me (=
And I want the colors for the mountains to be in a gray/white shade.
-I will dig in and start changing the colors and terrain. (It helps, because I got the terrain shape quite right)…
Trees and bushes and such were the easy bit, but the mountains!?
now I can be more defensive and sell more sundials (70g each) (Settlement Decor mod) and buy more feathers and ores w/o the need of a shepherd and ruining the map.
btw, I add in some few pics and text to fill in the nulls.
The color seen in the map where you chose a tile to start? That is hardcoded in lua.
At the file: stonehearth/services/server/world_generation/biome.lua
At line number 278:
local color_map = {
water = '#1cbfff'
}
Change the hex color code to the color you want.
But doing this will change it to all biomes if the player has your mod, so you will also need to add a condition there to only change if the biome is selected…
In my case, I added I line to the biome json file with the color I want.
And in that biome.lua I read the json and get the color. If it fails (for example for default biomes that don’t have that new line in their json) it will then grab the default 1cbfff color.
Not that, the color map for the water when in the actual world, like your past post were the water was red like lava and you were creating “canals” I think… I don’t remember.
In game water color is at:
/stonehearth/renderers/water/water_renderer.lua
Line 14: self._face_color = Color4(28, 191, 255, 192)
It is an argb color code (red,blue,green,alpha).
That screenshot I made by editing the stonehearth file. Sorry
The reason why is because even overriding the file, the game still calls the original from stonehearth mod. That was the reason that made me comeback to archipelago I was stuck at it for too long in another biome and couldn’t get it to work. I will go try it again later after archipelago gets a little more polished.
so pretty much basically is that I can’t make a custom water color for a specific biome unless I make a condition statement to detect the biome and change its water color in the lua…?
how about the palettes line in for example temperate biome
\stonehearth\data\biome\temperate.json
No, cause the game never tries to get the water from there.
But, you can insert any thing in json files,and then mod the file that will read the json to “teach” it into reading your new line.
That’s what I did to change the water color (at least) in the world map. The water color for the map is hard coded, so I added one line there in the json with (e.g.) “water”:“#ff0000” and then override the .lua that had the hard coded water color to get the color from this new line instead. If it don’t find it in the json, (meaning you are not using that biome) I made it simple fallback and use the default color. This way it became compatible with multiple biomes.
I did a test with the terrain_colors mod and the soil colors pertain to the sides of the hills. So my guess would be that the dirt might be the colors from the spots without grass that appear in the terrain generation.
Not checked 100% but the dirt colors were noticeably brighter compared to the soil colors.