defaults.xml terrain and temperature values?

Post Reply
Fishbreath
Posts: 55
Joined: Thu Feb 02, 2012 12:53 pm

defaults.xml terrain and temperature values?

Post by Fishbreath »

I haven't come across a description of what the values for terrain and temperature mean. Is there a key available?
User avatar
Veitikka
Posts: 1508
Joined: Sun Jun 24, 2007 10:11 pm
Location: Finland
Contact:

RE: defaults.xml terrain and temperature values?

Post by Veitikka »

The values are:

Terrain:
1 Summer
2 Winter
3 Jungle
4 Desert
5 Autumn (late)
6 Barren
7 Spring
8 Autumn (early)

Temperature:
0 Extreme cold
1 Cold
2 Cool
3 Warm
4 Hot
5 Extreme hot
Know thyself!
Fishbreath
Posts: 55
Joined: Thu Feb 02, 2012 12:53 pm

RE: defaults.xml terrain and temperature values?

Post by Fishbreath »

Thanks!

Are the day length values assumed to be for the 1st, or for some other point during the month? Does it matter?
User avatar
Veitikka
Posts: 1508
Joined: Sun Jun 24, 2007 10:11 pm
Location: Finland
Contact:

RE: defaults.xml terrain and temperature values?

Post by Veitikka »

This is how I've calculated them.

1. Go to https://suncalc.org and find your location. For each month, select the 21st day.

2. Copy the 'Dawn', 'Sunrise', and 'Sunset' values. Round them up or down to the closest full minute. Calculate the number of seconds (hours*3600+minutes*60). For example:

Dawn 5:31:24 -> 5:31 -> 19860
Sunrise 6:13:33 -> 6:14 -> 22440
Sunset 18:30:59 -> 18:31 -> 66660

3. Calculate the defaults.xml 'twilightLength', 'dayLength', and 'sunriseTime' values. For example:

twilightLength = Sunrise - Dawn = 2580
dayLength = Sunset - Sunrise = 44220
sunriseTime = Dawn = 19860
Know thyself!
Post Reply

Return to “MODS and Scenarios”