The Clash
of Civilizations

Climate & Ecology Model

Model Description

Map Generation is very interesting, and certainly a feature in many computer games. But an Ecosystem Generator? That's right, another revolutionary concept brought to you by the Clash Design Team! If you're fascinated by Climate and Ecology modeling, this page is for you!

      Climate/Ecology Model Team


Climate/Ecology
Model v3.0

1. Generation.

The map generator generates the height, terrain (flat, rolling, hills or mountains), mineral reserves and geological specials (including groundwater, if it is used). There will also be a number for each square noting the geological unstability (0-100).

Global variables will be used by the events and for global warming and give the possibility to customize maps:

GM Global Moisture
GGA Global Geological Activity
GT Global Temperature
GAP Global Atmospheric Pollution

1.1. Climate

Climate is assigned using the following percentages of the distance in squares from pole to equator

Arctic : 1,7% = 1 rows on a standard map (68)
Sub-Arctic : 7,1   5  
Cool Temperate : 13,3   10  
Warm Temperate : 16,8   11  
Sub-Tropical : 29,7   20  
Tropical : 31,4   21  

1.2. Temperature and moisture

Temperature:
= GT * (distance from the pole - (altitude/111)) / distance pole to equator
Moisture:
Each square between 1000 and 2000 m above sea level +1 M

A -5 WT  
SA +5 ST  
CT +5 T +10

1.3. Ocean, sea and ice cap

Every square less than 1000m below sea level is sea. (still on the continental flat)
Any other square below sea level is ocean.

Every land square adjacent to sea or ocean gets:

  Moisture   Temperature
A      
SA     +GT/10
CT +GM/10           +GT/10
WT +GM/10   -GT/10
ST     -GT/10
T +GM/3   -GT/10

Every square with a temperature less than 5 is ice cap.

1.4. Sea currents and wind currents

Ocean currents can have a very drastic and far-reaching effect, 0-5 standard would not be too few. On the other hand, they are an excellent tool for scenario designers. Wind currents are not so far-reaching, but ought to be generated in parallel groups.

Sea currents are vectors, 0 to 10 squares long (standard map). They run straight and only through sea or ocean squares. Their zone of effect is defined by the oval inscribed in the rectangle with the starting point of the vector as corner and the ending point as center. The difference in latitude (start minus end) defines the strength of the effect. Each square in that zone gets that number (can be negative) added to its moisture and temperature values.

Wind currents are vectors, 0 to 10 squares long (standard map). They run straight, through any squares. If the starting point is sea, all land squares in the course of the vector get the length of the vector added to their moisture values. If at a certain point the vector crosses a mountain square, the vector stops and a new vector starts from the next square in that direction that isn’t mountainous. If the starting point of a wind vector is land, the length of it is distracted from the moisture values.

1.5. Lakes, rivers and wetlands

Rivers add +GM/10 moisture to the adjacent squares.

Every square with moisture > 25 has Moisture( +10 if T<=5) % chance to become wetland. Also each flat square with height equal to sea level +/-1 next to ocean, sea or lake becomes wetland.

Every square with moisture > 30 has Moisture % chance to become a lake (except when adjacent to ocean or sea, then it becomes wetland instead).

Every 100 years the height of sea or lake squares at the river mouth increase with 1 m. If they reach sea level, they are converted to flat wetland. Every time the height of square adjacent to a river changes height, the river course is regenerated from that square downstream.

1.6. PBM

Potential biomass is the amount of life a give piece of land can support. It is recalculated each time Moisture, Temperature, Terrain, Water or adjacent rivers or wetlands change.

BM is the actual amount of a life square supports. Initially, BM = PBM. When BM changes, the square is flagged. Each turn the BM (re)gains/loses BM*0.05+PBM*0.05 towards the PBM value of the square. When they are equal, the square is unflagged.

0 : wasteland (nothing)
1-15 : desert (shattered plants)
16-30 : low cover (low vegetation, grass, herbs, a few bushes)
31-60 : high cover (bushes, occasional trees)
61-120 : light forest (groups of trees with open spots in between)
121-240 : dense forest (large trees)
241-480 : climax forest (dense and high vegetation)

Land :
Temperature <= 5: PBM = temperature * 4,8 * (1+(nr. of adjacent rivers and wetlands /10))
Temperature > 5: PBM = moisture * 15 * (1+(nr. of adj. rivers and wetlands /10))
Sea or lake : PBM = temperature * 2 * (1+(nr. of adj. land squares, rivers, wetland/10))
Ocean : PBM = temperature

Climate

Adjacent to sea

River

Minimum

Maximum

 

M

T

M

T

M

M

T

PBM

M

T

PBM

A

- 5

0-1

   

+GM/10

-5

0

0

0

1

0

SA

+5

1-5

 

+5

+GM/10

5

1

5

10

10

150

CT

+5

5-12

+GM/10

+5

+GM/10

5

5

75

15

17

225

WT

 

12-20

+GM/10

+5

+GM/10

0

12

0

10

25

150

ST

 

20-35

 

-5

+GM/10

0

15

0

5

35

75

T

+10

35-50

+ GM/3

-5

+GM/10

10

30

150

30

50

450

1.7. Food sites

Food sites define the agricultural and fishing productivity of a square. (See 2.1. Farming and the economy model for the production function)
They are recalculated each time BM changes.

number of food sites = terrain factor * 20 * e^(-((BM-60)^2))/(2*15^2) + (BM/60)
Terrain factor : Flat Rolling Hilly Mountainous
1 0.8 0.4 0.1

BM Type Sites
0 : wasteland 0
1-15 : desert 0
16-30 : low cover 1-3
31-60 : high cover 4-21
61-120 : light forest 21-2
121-240 : dense forest 2-4
241-480 : climax forest 4-8

1.8. Specials

There are several categories. Each category has a standard set of properties, so you can add just pictures (and names), and they will function just as the standard for that category. It’s also possible to modify temperature and moisture ranges, probability, size of benefit. For their function see economy model and merchant agents.

Staple food (rice, kelp, Martian wheat, …)
    + food
    Temperature =>10, land
Food luxuries (sugar, coffee, candy tree..)
    - health, +happiness +food
    Temperature =>30, land
Fruit (bananas, dates, giant peas..)
    + health, +food
    Temperature => 40, land

Industrial resources (rubber, peat, peanut oil..)
    + (sustainable) production
Textile fibres (cotton, silk, spider silk..)
    + production
Furs (sheep, bear, mammoth..)
    + production
    Temperature <20, land

Small war animal (horse, camel, giant lizard,..)
    enhanced possibilities for warfare, converted into infra with appropriate tech level
    BM<40, land

Large war animal (elephant, bizon, Bugblatter Beast of Traal..)
    enhanced possibilities for warfare, converted into infra with appropriate tech level
    100<BM, land

Pack animal (donkey, horse, walking basket,..)
    lifts limit for transport technology, converted into infra with appropriate tech level
    terrain = R, H, M ;land

2. Interaction

When human activity increases, their influence on the land increases, causing changes in the environment. Each time when population has increased by 1000, deforestation and erosion are triggered.

Large-scale construction also triggers deforestation and erosion (eg. roads, fortifications,..).


2.1. Farming

Farming essentially forces the ecosystem to turn part of its biomass into products usable by humans. A farmed square doesn’t regenerate if the population on it is higher than BM*1000. The highest possible number of food sites is available at a BM of 60 on flats.

When deforesting a square intentionally, its BM is reduced to 60 (on the edge of low cover and light forest).

Wetlands cover an entire square and therefore require a large-scale program to drain. Each wetland has a rating that says how much water infrastructure is needed to keep it from being a wetland. This infrastructure is not extra needed, but just a minimum to make the square inhabitable and is normally used for other purposes.

2.2. Hunting & fishing

Normally, farmers are supposed to supply their diet by doing a little hunting. However, when they have advanced farming methods and produce their own meat, they no longer have time for hunting. But the animals eat grass and the expanded settlements need space, so it’s the same for the BM.

Large-scale hunting can be done only once per square. 10% is deducted from the BM, 5% from the PBM. The yield is (10% of BM *x), x depending on what commodity is wanted, food, furs, .. May be limited to special. Special is depleted in that case.

Fishing works the same as farming, but the fishing tech is needed instead of the farming tech. Also, it needs port infrastructure to take the food yield to land, where it is consumed or traded. River fishing is already incalculated in the PBM.

2.3. Water supply

A square can support a population of Moisture*100000, beyond that limit extra water needs to be acquired. Industry should also have water requirements. If transportation networks for water exist, all connected squares (= the province) draw from the total pool.

Water is provided by the Moisture of the square and any Water type (Ocean, sea, etc.) but specific tech applications, infra and investment may be needed to use it. If groundwater is used, it’s amount globally is 3 times the amount in rivers, lakes and wetland.

2.4. Production and pollution

The wood supply adds to the production potential of a square:
add terrain factor*(BM-40)/80 production sites.
However, intensive production depletes the woods:
subtract production*0.0.. from BM each turn.

Pollution is environmental damage: a decrease of PBM. It also damages infrastructure, affects the health of the population and the cultural value natural affinity.

It is a function of production and population and is calculated every turn. Relevant to it are: (energy) production, environmentalism, recycling, transport, civil engineering techs; cultural values: individualism and natural affinity; trade routes. It is calculated every turn.

Pollution always has local effects. It’s also possible for pollution to follow a wind current, ocean current or river. Furthermore, a part of it is added to GAP (global atmospheric pollution) to keep track of climate disturbance.

2.5. Waste and recycling

Waste is recorded per square. Each turn a part of the infrastructure decay is added to it.

Each turn it decreases with an amount based on BM. After that, 5% is converted to pollution.

The number of resource sites used in the production function rises with a percentage based on the recycling tech. These extra sites don't contain resources, but resources are extracted from them as if they were there. Thus it reduces the amount of resource loss, while increasing production. (Recycling infra required).

An application of recycling is Waste Recuperation: the waste is converted and added to the production sites. (Recycling infra required).

Radioactive waste is stored as a special, causing disease.

2.6. Climate disturbance

At the start of the game, a random direction for climate change is generated (warmer or cooler). When GAP reaches a certain threshold (determined by the size of the map/planet and the total BM), add or subtract 1 from GT as appropriate. Add or subtract 1 to Temperature of all squares. Trigger Melting Icecap on all icecaps. Repeat each time threshold is passed.

When the difference between the previous GT and the actual GT is 5, recalculate all PBM using the new GT. Generate a new random climate change direction. Trigger Melting Icecap on all icecaps.

2.7. Environmental protection and restoration

Taxes/subsidies : probably the most common way to encourage or discourage any action in the game.
Plant trees : makes the BM increase.
Produce counterpollutants : reduces GAP, holding off climate disturbance
Reservate squares : reservates should have a range of effects on their adjacent squares and civ-wide by reducing erosion and deforestation risks, increasing happiness and health, countering GAP etc.
Tech advances : more efficiency, clean technology and social advances in environmentalism make your economy safer.

3. Disasters / Events

Each turn each disaster has a % chance to happen (delay it a number of turns to avoid load/save cheating). When it happens, a square with the appropriate prerequisites is randomly picked, and the effects are applied. Then check possible triggering of other disasters, and handle them. For each disaster a new severity level is generated.
When height is changed, temperature is recalculated, and the square might become sea.
If temperature or moisture is changed PBM, but not BM, is recalculated and the square is flagged for regeneration.

Event

% chance per turn

triggers in same square

triggers in adj. square

prereq.

chance t b  triggered

Deforestation

GAP/?

Erosion

Drought

Flood

/

/

100

Erosion

((GM+GT)/50)+2

Land slide

Flood

/

/

T+M-BM

Vermin

GM+GT

Deforestation

Vermin

/

100-BM

Fire (natural)

GT/50

/

Fire (both)

BM>40, land

T-M

Fire (urban)

GT/25

/

/

City, land

T-M-(water -housing)

Drought

GT-GM +1

Fire (both)

Drought

Dust storm

Drought

T>10

land

2T-BM

Dust storm

GT/50

/

Dust storm

BM<45, land

2T-BM

Storm

GM/10

Flood

Landslide

/

/

M

Landslide

((GM+GT)/50)

Tsunami

Landslide

Dust storm

Hill, Mountain

BM<45

100-BM

Severe winter

1/GT

Landslide

Storm

/

T<25

100-2T

Volcano

GGA

N/A

Earthquake

Landslide

Fire (both)

Ash Rain

/

GA

Earthquake

GGA*2

Landslide

Fire (urban)

Earthquake (nt)

Volcano

Tsunami

/

GA

Tsunami

N/A

/

/

sea, ocean

level*2

Meteor

2,5

Dust storm

Tsunami

/

/

/

Hurricane

((GM+GT)/100)+1

Flood

Flood

T>46

sea, ocean

/

Flood

GM/50

/

Flood

M>5;   terrain is not M,H or O,S,L

M

Smog

GAP/?

/

/

poll>?

Pop*(1/clean energy tech)

Tornado

GT/50

Dust storm

Dust storm

T>20

land, flat, rolling

T

Ash Rain

N/A

fire (both)

/

/

level*10

River course

change

GM/100

N/A

Flood

/

flat 100

mountn 10

Hole in the ozone layer

GAP/? –GT

 

/

climate A, SA

/

Ice cap melting

0

/

/

water=I, T>4

100

Huge meteor

1/40000

Many

Many

/

0

Event

% chance per turn

Triggers in same square

triggers in adj. square

prereq.

Chance t b  triggered

Landslide : poss. change height or terrain
Volcano : volcanoes are placed where the four corners of squares meet (since they are too small to occupy whole squares). They affect only the four adjacent squares. Their geological unstability is the average of the surrounding squares. Volcanoes add to GAP.
Earthquake : poss. change height or terrain
Tsunami : go level squares in each direction, when a coast is hit, effects are applied.
Hurricane : starts moving (level*3 squares) in northwest direction, each step 50% to go straight, 25% each chance to turn left or right (45°). When a coast is hit, damage is applied and there is a 150-M-T chance that it will disappear.
Tornado : starts moving (level squares) in random direction, each step 50% to go straight, 25% each chance to turn left or right (45°). Damage is applied each step and there is a 100-T chance that it will disappear.
Hole in the ozone layer : In a circular area with radius=level Temperature rises with 1, Melting icecap is triggered, disease increases.
Melting icecap : Each Ice cap square that melts makes sea level rise by 1 m.
Huge meteor : It would be a Huge surprise.. :D Causes climate disturbance, add to GAP triggers fire (both), dust storm, earthquake, volcano, landslide, reduces height and changes terrain of the target square to flat and the surrounding squares to hills.

Population and military loss are for level 1 disasters, multiply by level to find the correct percentage. BM and PBM effects are as described.

(I used TK’s old percentages here, assuming he has done some research, except where I have my own data. I don’t have anything new on infra loss yet.)

Event

Pop loss %

Mil loss %

BM

PBM

Deforestation

0

0

-2

/

Erosion

0

0

/

-1

Vermin

0

0

- level

/

Fire (natural)

10

10

= 30

+ 10%

Fire (urban)

1

1

/

/

Drought

0

0

- level *5 %

/

Dust storm

0

0

- level

- level /2

Storm

1/10

1/20

- level /2

- level /5

Landslide

5

3

= 20

- level /2

Severe winter

0

0

- level *2

- level /5

Volcano

2

1

- level

+ level/ 2

Earthquake

8

4

- level

- level /2

Tsunami

10

10

- level

- level /2

Meteor

1

0

- level /5

/

Hurricane

8

5

- level

- level /2

Flood

5

1

= 50

+ level

Smog

0.1

0.1

- level /5

/

Tornado

4

3

- level /5

/

Ash rain

0

0

- level /5

+ level /2

River course change

0

0

/

/

Hole in the ozone layer

1

0

- level

- level

Ice cap melting

0

0

/

/

Huge meteor

All

All

= 0

= 0

 
We Want Your Feedback! 
Contact us today or join in on the forum!
Project Lead: Mark Everson,
Web Master: Marc Luzietti
Copyright © 99-2001 The Clash of Civilizations Team