RimWorld

RimWorld

70 ratings
Custom Climate Cycle
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.0, 1.1, 1.2
File Size
Posted
Updated
30.010 KB
Mar 16, 2019 @ 1:03pm
Nov 21, 2020 @ 8:23pm
7 Change Notes ( view )

Subscribe to download
Custom Climate Cycle

Description
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.

Non-Steam download available here.[github.com]

Why?

This is the more modular spiritual successor to my old Cold Climate Cycle mod from B18. For B19 I used Mehni's Climate Cycle++, which is a good mod but didn't let me have the exact climate cycle I wanted, one with a standard sine wave and overall cooler temperatures but not runaway in either direction.

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.

Having trouble visualizing your cycle? Try this![www.desmos.com]

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.

Credits
- Chinese (Simplified and Traditional) translation provided by 22点下.
125 Comments
Pirate of AE Dec 17, 2022 @ 4:21pm 
still works in 1.4 btw
interactivesuccess Jul 27, 2022 @ 3:26am 
hey yall dose this mod still work? thanks
dninemfive  [author] Jan 20, 2022 @ 5:29pm 
i'm glad!
Aziz Jan 20, 2022 @ 5:21pm 
This is what I wanted thank you so much
dninemfive  [author] Jan 19, 2022 @ 10:46am 
@Aziz With the current version the temperature only applies on local maps, not the world map, so practically speaking it only applies to your colony. There isn't a specific option for this, however.
Aziz Jan 19, 2022 @ 8:26am 
Can I customize the climate cycle for only my colony, the area my colony in? Or it is only applying for all the planet?
Birds Aren't Real Jul 31, 2021 @ 3:28pm 
Hello, when I try adding it in the scenario editor, I do not see an option. I see 2 different "climate cycle" options, but neither of them let me configure anything. Neither of them are called "custom climate cycle."

In what part of the mod list am I supposed to put this in? Willl changing the order fix this?

Birds Aren't Real Jul 31, 2021 @ 2:45pm 
Wait, so this might work for 1.3? I did not know this... I hope it does, that would be fantastic.
Birds Aren't Real Jul 31, 2021 @ 2:44pm 
I am SUPER glad to find out this mod exists. You are a smart person for thinking of this idea! I hope that it gets updated in the not so distant future. :)