#4954 closed enhancement (fixed)
Map-specific biomes
Reported by: | elexis | Owned by: | elexis |
---|---|---|---|
Priority: | Nice to Have | Milestone: | Alpha 23 |
Component: | Maps | Keywords: | |
Cc: | Patch: |
Description (last modified by )
Some random maps hardcode multiple custom biomes and pick one of the variants at random:
- alpine_lakes
- alpine_valley
- gulf_of_bothnia
- persian highlands
The data is structured almost exactly like the JSON files already. Having that data in the JSON file means the gamesetup can parse it and the player can select the biome.
Abstracting further, the other maps that don't already use the random bioem system define exactly one biome that they always use (guadalquivir river, volcanic lands).
So every map could have its templatenames, terraintextures and environment settings moved to JSON files.
The random-biome system would become a biome-system that eventually one might think about supporting it in skirmish/scenario maps too. (However biome definitions can include JS, so either these would have to be dropped for skirmish/scenario maps, or we need scripted map generation code on scenario and skirmish maps after loading the PMP file.)
Change History (17)
comment:1 by , 6 years ago
Description: | modified (diff) |
---|
comment:2 by , 6 years ago
comment:4 by , 6 years ago
Milestone: | Backlog → Alpha 23 |
---|---|
Owner: | set to |
Summary: | Move map-specific biomes to biome files → Map-specific biomes |
comment:6 by , 6 years ago
Possible descriptions:
Gulf of Bothnia
- A late spring breeze ripples through the conifer forests of the Gulf of Bothnia. Herds of deer dot the landscape and playful rabbits frolick in the undergrowth.
- Winter has set in, carpeting the land with its first snow. The still unfrozen gulf offers great fishing opportunities.
- Solidifying it's grip, the harsh cold has succeeded in freezing up the gulf. The thick ice formed is capable of withstanding any weight.
Persian Highlands
- Spring in the highlands, yet the heat has already begun making itself felt. The short-lived green grasses are on the retreat, paving the way for scorching summer.
- An arid, hostile land. The blistering heat has baked the ground to a sickly brown and the remaining trees struggle for survival.
Alpine Lakes
- A chill gray atmosphere dominates, the majestic pines stand in silence, adding to the gloom. Although already late spring, summer seems farther away than ever.
- Snow-covered high Alpine mountains surrounding deep valleys strung with mountain streams and finger-like lakes.
(last one is rewrite of current)
comment:7 by , 6 years ago
Small question, can a trigger script change terrain texture using biomes ? (Would work for stuff like winder for example). Frozen lakes would need terrain change so that cannot work, but I think we could just change textures.
comment:8 by , 6 years ago
At least the pathfinder supports ingame terrain changes since Extinct Volcano. But we don't have ways to change both terrain elevation nor textures currently. It would be exciting however (earthquake, exploding volcanoes,...).
comment:9 by , 6 years ago
I thought terrain was not serialized ?
comment:10 by , 6 years ago
Both terrain textures and elevation are in graphics/Terrain.cpp
, so by design not simulation data, hence not changeable by design by the simulation.
But on the other hand we have CCmpTerrain.cpp
which just forwards the graphics Terrain data.
So it could be done in theory, but simulation data ought to be stored in the simulation.
So things should likely be moved over. (All of that has zero relation to biomes however which is just one simulation setting that can be read by rmgen and possibly simulation. On the other hand I think you made me curious.)
In 20889: