Jump to content

Weather: Difference between revisions

From MirkLurk Wiki
Publish reviewed reference release 56ea1712; preserve community edits
 
Publish reviewed reader encyclopedia (3484cee); preserve existing history
Line 1: Line 1:
This page gives original, traceable summaries of the researched weather logic. Steps describe the cited portion of the system, not every possible runtime interaction.
Weather changes over time, with rain history affecting later transitions.


Numeric parameters are linked to individually cited facts. A timer or threshold does not alone establish real-world duration, event frequency, or a probability distribution.
Conditional checks are not a single normalized probability distribution. Units, timing, and interactions not described here remain unknown.


Unverified units, update cadence, interactions, and conditions remain explicitly uncertain.
[[Game mechanics]] | [[Main Page]]


[[Game mechanics]] | [[Main Page]] | [[Evidence and spoilers]] | [[Source provenance]]
== Stats ==


== Curated mechanics facts ==
{| class="wikitable"
{| class="wikitable"
! Entity !! Property (units in label) !! Value !! Original explanation !! Evidence status !! Source / section / key !! Record ID
! Detail !! Value !! Applies to / notes
|-
|-
| <nowiki>Rain</nowiki> || <nowiki>Maximum active rain power</nowiki> || <nowiki>1</nowiki> || <nowiki>Normalized intensity ceiling used by the rain update.</nowiki> || Inferred; requires confirmation || [[Source provenance#game-data|game-data]] / <nowiki>gml_GlobalScript_scr_basic_useful</nowiki> / <nowiki>player_endturn.manager_day</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_GlobalScript_scr_smartones</nowiki> / <nowiki>chance/f_r</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_Object_manager_day_Create_0</nowiki> / <nowiki>localWeather/rainBalance</nowiki> || <span id="fact-rain-max-power"></span><nowiki>rain-max-power</nowiki>
| <span id="fact-rain-max-power"></span><nowiki>Maximum active rain power</nowiki> || <nowiki>1</nowiki> || <nowiki>Normalized intensity ceiling used by the rain update.</nowiki>
|-
|-
| <nowiki>Rain</nowiki> || <nowiki>Minimum active rain power</nowiki> || <nowiki>0.08</nowiki> || <nowiki>A new rain event samples from 0.08 to 1; continuing rain intensity is clamped to the same bounds.</nowiki> || Inferred; requires confirmation || [[Source provenance#game-data|game-data]] / <nowiki>gml_GlobalScript_scr_basic_useful</nowiki> / <nowiki>player_endturn.manager_day</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_GlobalScript_scr_smartones</nowiki> / <nowiki>chance/f_r</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_Object_manager_day_Create_0</nowiki> / <nowiki>localWeather/rainBalance</nowiki> || <span id="fact-rain-min-power"></span><nowiki>rain-min-power</nowiki>
| <span id="fact-rain-min-power"></span><nowiki>Minimum active rain power</nowiki> || <nowiki>0.08</nowiki> || <nowiki>A new rain event samples from 0.08 to 1; continuing rain intensity is clamped to the same bounds.</nowiki>
|-
|-
| <nowiki>Biting cold</nowiki> || <nowiki>Inclusive upper threshold</nowiki> || <nowiki>0.15</nowiki> || <nowiki>Temperature is a normalized game value, not Celsius or Fahrenheit. The first matching threshold determines the label.</nowiki> || Inferred; requires confirmation || [[Source provenance#game-data|game-data]] / <nowiki>gml_GlobalScript_scr_map_and_weather</nowiki> / <nowiki>temperature_get_label</nowiki><br />[[Source provenance#ui-en|ui-en]] / <nowiki>Weather</nowiki> / <nowiki>Temp0..Temp6</nowiki> || <span id="fact-temperature-label-0-ceiling"></span><nowiki>temperature-label-0-ceiling</nowiki>
| <span id="fact-temperature-label-0-ceiling"></span><nowiki>Inclusive upper threshold</nowiki> || <nowiki>0.15</nowiki> || <nowiki>Temperature is a normalized game value, not Celsius or Fahrenheit. The first matching threshold determines the label.</nowiki>
|-
|-
| <nowiki>Very cold</nowiki> || <nowiki>Inclusive upper threshold</nowiki> || <nowiki>0.3</nowiki> || <nowiki>Temperature is a normalized game value, not Celsius or Fahrenheit. The first matching threshold determines the label.</nowiki> || Inferred; requires confirmation || [[Source provenance#game-data|game-data]] / <nowiki>gml_GlobalScript_scr_map_and_weather</nowiki> / <nowiki>temperature_get_label</nowiki><br />[[Source provenance#ui-en|ui-en]] / <nowiki>Weather</nowiki> / <nowiki>Temp0..Temp6</nowiki> || <span id="fact-temperature-label-1-ceiling"></span><nowiki>temperature-label-1-ceiling</nowiki>
| <span id="fact-temperature-label-1-ceiling"></span><nowiki>Inclusive upper threshold</nowiki> || <nowiki>0.3</nowiki> || <nowiki>Temperature is a normalized game value, not Celsius or Fahrenheit. The first matching threshold determines the label.</nowiki>
|-
|-
| <nowiki>Cold</nowiki> || <nowiki>Inclusive upper threshold</nowiki> || <nowiki>0.4</nowiki> || <nowiki>Temperature is a normalized game value, not Celsius or Fahrenheit. The first matching threshold determines the label.</nowiki> || Inferred; requires confirmation || [[Source provenance#game-data|game-data]] / <nowiki>gml_GlobalScript_scr_map_and_weather</nowiki> / <nowiki>temperature_get_label</nowiki><br />[[Source provenance#ui-en|ui-en]] / <nowiki>Weather</nowiki> / <nowiki>Temp0..Temp6</nowiki> || <span id="fact-temperature-label-2-ceiling"></span><nowiki>temperature-label-2-ceiling</nowiki>
| <span id="fact-temperature-label-2-ceiling"></span><nowiki>Inclusive upper threshold</nowiki> || <nowiki>0.4</nowiki> || <nowiki>Temperature is a normalized game value, not Celsius or Fahrenheit. The first matching threshold determines the label.</nowiki>
|-
|-
| <nowiki>Comfortable</nowiki> || <nowiki>Inclusive upper threshold</nowiki> || <nowiki>0.6</nowiki> || <nowiki>Temperature is a normalized game value, not Celsius or Fahrenheit. The first matching threshold determines the label.</nowiki> || Inferred; requires confirmation || [[Source provenance#game-data|game-data]] / <nowiki>gml_GlobalScript_scr_map_and_weather</nowiki> / <nowiki>temperature_get_label</nowiki><br />[[Source provenance#ui-en|ui-en]] / <nowiki>Weather</nowiki> / <nowiki>Temp0..Temp6</nowiki> || <span id="fact-temperature-label-3-ceiling"></span><nowiki>temperature-label-3-ceiling</nowiki>
| <span id="fact-temperature-label-3-ceiling"></span><nowiki>Inclusive upper threshold</nowiki> || <nowiki>0.6</nowiki> || <nowiki>Temperature is a normalized game value, not Celsius or Fahrenheit. The first matching threshold determines the label.</nowiki>
|-
|-
| <nowiki>Warm</nowiki> || <nowiki>Inclusive upper threshold</nowiki> || <nowiki>0.7</nowiki> || <nowiki>Temperature is a normalized game value, not Celsius or Fahrenheit. The first matching threshold determines the label.</nowiki> || Inferred; requires confirmation || [[Source provenance#game-data|game-data]] / <nowiki>gml_GlobalScript_scr_map_and_weather</nowiki> / <nowiki>temperature_get_label</nowiki><br />[[Source provenance#ui-en|ui-en]] / <nowiki>Weather</nowiki> / <nowiki>Temp0..Temp6</nowiki> || <span id="fact-temperature-label-4-ceiling"></span><nowiki>temperature-label-4-ceiling</nowiki>
| <span id="fact-temperature-label-4-ceiling"></span><nowiki>Inclusive upper threshold</nowiki> || <nowiki>0.7</nowiki> || <nowiki>Temperature is a normalized game value, not Celsius or Fahrenheit. The first matching threshold determines the label.</nowiki>
|-
|-
| <nowiki>Very hot</nowiki> || <nowiki>Inclusive upper threshold</nowiki> || <nowiki>0.85</nowiki> || <nowiki>Temperature is a normalized game value, not Celsius or Fahrenheit. The first matching threshold determines the label.</nowiki> || Inferred; requires confirmation || [[Source provenance#game-data|game-data]] / <nowiki>gml_GlobalScript_scr_map_and_weather</nowiki> / <nowiki>temperature_get_label</nowiki><br />[[Source provenance#ui-en|ui-en]] / <nowiki>Weather</nowiki> / <nowiki>Temp0..Temp6</nowiki> || <span id="fact-temperature-label-5-ceiling"></span><nowiki>temperature-label-5-ceiling</nowiki>
| <span id="fact-temperature-label-5-ceiling"></span><nowiki>Inclusive upper threshold</nowiki> || <nowiki>0.85</nowiki> || <nowiki>Temperature is a normalized game value, not Celsius or Fahrenheit. The first matching threshold determines the label.</nowiki>
|-
|-
| <nowiki>Temperature</nowiki> || <nowiki>Interpolation fraction per turn</nowiki> || <nowiki>0.2</nowiki> || <nowiki>The current temperature moves one fifth of the way toward the next target each completed turn.</nowiki> || Inferred; requires confirmation || [[Source provenance#game-data|game-data]] / <nowiki>gml_GlobalScript_scr_basic_useful</nowiki> / <nowiki>player_endturn.manager_day</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_GlobalScript_scr_smartones</nowiki> / <nowiki>chance/f_r</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_Object_manager_day_Create_0</nowiki> / <nowiki>localWeather/rainBalance</nowiki> || <span id="fact-temperature-smoothing"></span><nowiki>temperature-smoothing</nowiki>
| <span id="fact-temperature-smoothing"></span><nowiki>Interpolation fraction per turn</nowiki> || <nowiki>0.2</nowiki> || <nowiki>The current temperature moves one fifth of the way toward the next target each completed turn.</nowiki>
|-
|-
| <nowiki>World clock</nowiki> || <nowiki>Minutes per completed turn</nowiki> || <nowiki>8</nowiki> || <nowiki>The end-turn path advances the clock by eight game minutes, not eight real-world minutes.</nowiki> || Inferred; requires confirmation || [[Source provenance#game-data|game-data]] / <nowiki>gml_GlobalScript_scr_basic_useful</nowiki> / <nowiki>player_endturn.manager_day</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_GlobalScript_scr_smartones</nowiki> / <nowiki>chance/f_r</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_Object_manager_day_Create_0</nowiki> / <nowiki>localWeather/rainBalance</nowiki> || <span id="fact-turn-minutes"></span><nowiki>turn-minutes</nowiki>
| <span id="fact-turn-minutes"></span><nowiki>Minutes per completed turn</nowiki> || <nowiki>8</nowiki> || <nowiki>The end-turn path advances the clock by eight game minutes, not eight real-world minutes.</nowiki>
|}
|}


== Documented entries ==
 
<span id="entry-temperature-labels"></span>
<span id="entry-temperature-labels"></span>
=== <nowiki>Temperature labels</nowiki> ===
== <nowiki>Temperature labels</nowiki> ==
<nowiki>The UI maps normalized temperature to seven named bands; values above 0.85 use Blazing hot.</nowiki>
<nowiki>The UI maps normalized temperature to seven named bands; values above 0.85 use Blazing hot.</nowiki>
'''Evidence status:''' Inferred; requires confirmation
'''Conditions:''' Not established
'''Source / section / key:''' [[Source provenance#game-data|game-data]] / <nowiki>gml_GlobalScript_scr_map_and_weather</nowiki> / <nowiki>temperature_get_label</nowiki><br />[[Source provenance#ui-en|ui-en]] / <nowiki>Weather</nowiki> / <nowiki>Temp0..Temp6</nowiki>
'''Record ID:''' <nowiki>temperature-labels</nowiki>
# <nowiki>Read thresholds in ascending order; each threshold includes equality.</nowiki>
# <nowiki>Read thresholds in ascending order; each threshold includes equality.</nowiki>
# <nowiki>Use the first matching label rather than rounding to a nearby band.</nowiki>
# <nowiki>Use the first matching label rather than rounding to a nearby band.</nowiki>
# <nowiki>These labels do not by themselves describe clothing, wetness, shade or warmth-loss modifiers.</nowiki>
# <nowiki>These labels do not by themselves describe clothing, wetness, shade or warmth-loss modifiers.</nowiki>
'''Related numeric facts:'''
* [[Weather#fact-temperature-label-0-ceiling|<nowiki>temperature-label-0-ceiling</nowiki>]] - <nowiki>Inclusive upper threshold</nowiki>
* [[Weather#fact-temperature-label-1-ceiling|<nowiki>temperature-label-1-ceiling</nowiki>]] - <nowiki>Inclusive upper threshold</nowiki>
* [[Weather#fact-temperature-label-2-ceiling|<nowiki>temperature-label-2-ceiling</nowiki>]] - <nowiki>Inclusive upper threshold</nowiki>
* [[Weather#fact-temperature-label-3-ceiling|<nowiki>temperature-label-3-ceiling</nowiki>]] - <nowiki>Inclusive upper threshold</nowiki>
* [[Weather#fact-temperature-label-4-ceiling|<nowiki>temperature-label-4-ceiling</nowiki>]] - <nowiki>Inclusive upper threshold</nowiki>
* [[Weather#fact-temperature-label-5-ceiling|<nowiki>temperature-label-5-ceiling</nowiki>]] - <nowiki>Inclusive upper threshold</nowiki>


<span id="entry-weather-state-machine"></span>
<span id="entry-weather-state-machine"></span>
=== <nowiki>Weather transitions and rain history</nowiki> ===
== <nowiki>Weather transitions and rain history</nowiki> ==
<nowiki>Weather changes are evaluated when a turn crosses an integer hour. The clear, cloudy and rainy states use ordered checks rather than a single normalized probability table.</nowiki>
<nowiki>Weather changes are evaluated when a turn crosses an integer hour. The clear, cloudy and rainy states use ordered checks rather than a single normalized probability table.</nowiki>


'''Evidence status:''' Inferred; requires confirmation
<nowiki>Code-derived thresholds are conditional checks; later checks are reached only if earlier checks fail.</nowiki>
'''Conditions:''' <nowiki>Code-derived thresholds are conditional checks; later checks are reached only if earlier checks fail.</nowiki>
'''Source / section / key:''' [[Source provenance#game-data|game-data]] / <nowiki>gml_GlobalScript_scr_basic_useful</nowiki> / <nowiki>player_endturn.manager_day</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_GlobalScript_scr_smartones</nowiki> / <nowiki>chance/f_r</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_Object_manager_day_Create_0</nowiki> / <nowiki>localWeather/rainBalance</nowiki>
'''Record ID:''' <nowiki>weather-state-machine</nowiki>
 
# <nowiki>Update the rain-history balance by adding 1/180 while rain power is positive or subtracting 1/360 otherwise, then clamp the balance between minus one and one.</nowiki>
# <nowiki>Update the rain-history balance by adding 1/180 while rain power is positive or subtracting 1/360 otherwise, then clamp the balance between minus one and one.</nowiki>
# <nowiki>Clear weather tests a cloud threshold of the larger of 0.02 and 0.12 times one minus the balance.</nowiki>
# <nowiki>Clear weather tests a cloud threshold of the larger of 0.02 and 0.12 times one minus the balance.</nowiki>
# <nowiki>Cloudy weather first tests clearing: the larger of 0.02 and 0.10 times one plus the balance. Only after failure does it test rain: the larger of 0.02 and 0.30 times one minus the balance.</nowiki>
# <nowiki>Cloudy weather first tests clearing: the larger of 0.02 and 0.10 times one plus the balance. Only after failure does it test rain: the larger of 0.02 and 0.30 times one minus the balance.</nowiki>
# <nowiki>Rain onset from cloudy weather is disabled while daysAlive is below two and the difficulty ID is at most two.</nowiki>
# <nowiki>Rain onset is disabled while the survival-day counter is below two on certain difficulty settings. The corresponding displayed difficulty names are not established here.</nowiki>
# <nowiki>Rainy weather first tests return to clouds using the larger of 0.01 and 0.25 times one plus the balance. Only after failure does it test direct clearing using the larger of 0.01 and 0.05 times one plus the balance.</nowiki>
# <nowiki>Rainy weather first tests return to clouds using the larger of 0.01 and 0.25 times one plus the balance. Only after failure does it test direct clearing using the larger of 0.01 and 0.05 times one plus the balance.</nowiki>
# <nowiki>If rain continues, intensity is perturbed by a random amount between minus 0.10 and plus 0.10 and clamped. Ending rain can fade over subsequent turns.</nowiki>
# <nowiki>If rain continues, intensity is perturbed by a random amount between minus 0.10 and plus 0.10 and clamped. Ending rain can fade over subsequent turns.</nowiki>
'''Related numeric facts:'''
* [[Weather#fact-rain-max-power|<nowiki>rain-max-power</nowiki>]] - <nowiki>Maximum active rain power</nowiki>
* [[Weather#fact-rain-min-power|<nowiki>rain-min-power</nowiki>]] - <nowiki>Minimum active rain power</nowiki>
* [[Weather#fact-temperature-smoothing|<nowiki>temperature-smoothing</nowiki>]] - <nowiki>Interpolation fraction per turn</nowiki>
* [[Weather#fact-turn-minutes|<nowiki>turn-minutes</nowiki>]] - <nowiki>Minutes per completed turn</nowiki>

Revision as of 21:49, 25 September 2026

Weather changes over time, with rain history affecting later transitions.

Conditional checks are not a single normalized probability distribution. Units, timing, and interactions not described here remain unknown.

Game mechanics | Main Page

Stats

Detail Value Applies to / notes
Maximum active rain power 1 Normalized intensity ceiling used by the rain update.
Minimum active rain power 0.08 A new rain event samples from 0.08 to 1; continuing rain intensity is clamped to the same bounds.
Inclusive upper threshold 0.15 Temperature is a normalized game value, not Celsius or Fahrenheit. The first matching threshold determines the label.
Inclusive upper threshold 0.3 Temperature is a normalized game value, not Celsius or Fahrenheit. The first matching threshold determines the label.
Inclusive upper threshold 0.4 Temperature is a normalized game value, not Celsius or Fahrenheit. The first matching threshold determines the label.
Inclusive upper threshold 0.6 Temperature is a normalized game value, not Celsius or Fahrenheit. The first matching threshold determines the label.
Inclusive upper threshold 0.7 Temperature is a normalized game value, not Celsius or Fahrenheit. The first matching threshold determines the label.
Inclusive upper threshold 0.85 Temperature is a normalized game value, not Celsius or Fahrenheit. The first matching threshold determines the label.
Interpolation fraction per turn 0.2 The current temperature moves one fifth of the way toward the next target each completed turn.
Minutes per completed turn 8 The end-turn path advances the clock by eight game minutes, not eight real-world minutes.


Temperature labels

The UI maps normalized temperature to seven named bands; values above 0.85 use Blazing hot.

  1. Read thresholds in ascending order; each threshold includes equality.
  2. Use the first matching label rather than rounding to a nearby band.
  3. These labels do not by themselves describe clothing, wetness, shade or warmth-loss modifiers.

Weather transitions and rain history

Weather changes are evaluated when a turn crosses an integer hour. The clear, cloudy and rainy states use ordered checks rather than a single normalized probability table.

Code-derived thresholds are conditional checks; later checks are reached only if earlier checks fail.

  1. Update the rain-history balance by adding 1/180 while rain power is positive or subtracting 1/360 otherwise, then clamp the balance between minus one and one.
  2. Clear weather tests a cloud threshold of the larger of 0.02 and 0.12 times one minus the balance.
  3. Cloudy weather first tests clearing: the larger of 0.02 and 0.10 times one plus the balance. Only after failure does it test rain: the larger of 0.02 and 0.30 times one minus the balance.
  4. Rain onset is disabled while the survival-day counter is below two on certain difficulty settings. The corresponding displayed difficulty names are not established here.
  5. Rainy weather first tests return to clouds using the larger of 0.01 and 0.25 times one plus the balance. Only after failure does it test direct clearing using the larger of 0.01 and 0.05 times one plus the balance.
  6. If rain continues, intensity is perturbed by a random amount between minus 0.10 and plus 0.10 and clamped. Ending rain can fade over subsequent turns.