Custom Climate Cycle (Continued)
Original mod by dninemfive
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=1684902496]https://steamcommunity.com/sharedfiles/filedetails/?id=1684902496[/url]
MIT License
Even so, if the original author requests it, I will remove this update.
--
Original mod notes (1.2):
Adds a new climate cycle setting allowing customization of every aspect, from period to temperature offsets, plus the ability to set up a runaway scenario. Access it through the new "Custom Climate Cycle" scenario part.
Variables
Formula:
(Mathf.Sin((GenDate.YearsPassedFloat + (float)ticksOffset / (float)GenDate.TicksPerYear) / PeriodYears * tau) * tempOffsetFactor) + tempOffsetOffset + (xCoeff * GenDate.YearsPassedFloat)
- Period offset: how many years into the cycle the game will be when it starts. Default 0, and can be randomized.
- Period: how many years the cycle takes to go through. Default 4.
- Temperature offset factor: The magnitude of the sine wave. If the temperature offset is 0, this is the maximum variation from normal temperatures. Default 20.
- Temperature offset: Lets you modify the default yearly temperature. Negative values make the whole cycle colder, positive ones make it warmer. Default 0.
- X-coefficient: a modifier which lets you set runaway warming or cooling. Negative values make temperature trend colder over time, positive ones make it trend hotter. Default 0.
Custom climate calculator/visualizer:
[url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fwww.desmos.com%2Fcalculator%2Fsj9ycjx97n]https://www.desmos.com/calculator/sj9ycjx97n[/url]
Notes
- You need to use the new "Custom climate cycle" scenario part; simply adding a custom climate cycle as a standard game condition will work, but it'll be the same as a normal climate cycle.
- You should be able to layer multiple Custom Climate Cycles to get non-sine behavior if you want to go through the effort, and by zeroing out the temperature offset factor, temperature offset, and x-coefficient you can do things like balance the game's overall temperature (making a warmer or cooler planet) or simply make temperature increase/decrease over time without a cycle.
- No mod compatibility issues are expected; this doesn't modify any base game code.
Thanks to 22点下 for the Chinese (Simplified and Traditional) translations.