RimWorld

RimWorld

Reworked Temperature Extreme Events [1.3]
85 Comments
Viliamm 17 Nov, 2023 @ 1:17pm 
I live at -92 degrees and it doesn't bothering me xd :winter2019coolyul:
Monkey Magic 25 Jul, 2023 @ 11:43pm 
I would like to see this adjusted if it gets updated. If the mod is going to nerf the set values as much as it does, it should also buff them to equal values. As it currently stands, this mod makes this event too easy, since the vanilla offers a set challenge, and the paltry buffs here do nothing to offset the substantial nerfs.

Rather than Heatwave +10/+20c it would be something like +12/22c (5 either side of vanilla) with an optional switch to +15/27c for a more challenging version. Subsequently, Cold Snap would be -15/25c (-10/30c for increaded challenge version)
StarlightSovereign 16 May, 2023 @ 5:07pm 
I would love to see this updated! Thanks! :starite:
Thetaprime 26 Oct, 2022 @ 10:26am 
I.4 update when you are able please.
Stoic Saltine  [author] 17 Apr, 2022 @ 8:47am 
Hi, I can't be certain how much the mod settings allow because I haven't been on in a while. But I do know that I added some mod settings that allowed you to increase the temperature offset. Check out the mod settings and let me know if what's already implemented works for you.
Andromalis 17 Apr, 2022 @ 8:20am 
Assuming equal distribution, you still had made the game easier by lowering heat wave average temperatures by 2 degrees Celsius and rising cold snap average temperatures by 2 degrees Celsius. Still, the mod is a good idea. Could we perhaps get the chance of editing the average temperature and offsets? That'd make the mod a lot more convenient for a lot of users.
Stoic Saltine  [author] 11 Aug, 2021 @ 8:53am 
@I AM AN ANT - <3
Mr.Ant 6 Aug, 2021 @ 10:07pm 
after experiencing -101 degree cold snaps i definitely now love this mod with the adjustable settings and will throw an award
Stoic Saltine  [author] 21 Jul, 2021 @ 3:11pm 
Updated for 1.3

Technically no changes were needed, but the update is there regardless :)
gazza_m_bolton 21 Jul, 2021 @ 4:05am 
Are you going to be able to update this to 1.3?
Mur Derer 19 Feb, 2021 @ 2:32am 
i disabled the mod when it started spamming errors. i'll enable it and see if errors pop up when cold snap starts
Stoic Saltine  [author] 18 Feb, 2021 @ 4:12pm 
Hey,

I couldn't replicate the bug, most likely because I don't actually have the bug report. If you'd like, you can paste the bug/error report in the comments here, or in a new discussion and then I can just delete them afterwards.
Stoic Saltine  [author] 18 Feb, 2021 @ 2:51am 
Okay, I'll check it out after work. You're the first person to bring up this error, so I'm wondering if there's a mod conflict or something.
Mur Derer 18 Feb, 2021 @ 12:22am 
1.2
Stoic Saltine  [author] 17 Feb, 2021 @ 3:21pm 
"Maintained" is subjective lol

I try to keep this mod bug free. What version of the game are you running?
Mur Derer 17 Feb, 2021 @ 5:54am 
is this mod still maintained? I'm having error about cold snap, can't post it cause it's too long
Mr.Ant 18 Aug, 2020 @ 3:26pm 
great job thank you, and let life take priority of course
Stoic Saltine  [author] 18 Aug, 2020 @ 2:59pm 
Sorry it took so long. My job has been taking a lot of energy out of me and finding time to mod is just not the highest priority for me anymore.
Stoic Saltine  [author] 18 Aug, 2020 @ 2:59pm 
Updated to Version 1.2 and added mod settings. Fiddle with them at your own risk :)
Stoic Saltine  [author] 23 Jul, 2020 @ 3:13pm 
Bit exhausted from work these days, haven't been keeping up with my mods, so sorry about that :(

I am reading the comments though, and will try to make time in the next week to add the mod settings. Mod settings aren't too hard, so it shouldn't take too much of my free time.
MercuryDoll 22 Jul, 2020 @ 11:01pm 
I agree, adding settings to configure minimum and maximum temperature offsets would be amazing
Mr.Ant 21 Jul, 2020 @ 8:43pm 
you should allow the temperature differences to be manually configurable in the mod settings because id like to set coldsnaps to like -70 degrees just to fuck with my planet
Felios 13 Jul, 2020 @ 9:04pm 
You say this doesn't inherently make the game easier but looking at the offset range, haven't you reduced the average temperature offset of a temperature event? Instead of always being +17C, a heat wave will on average be +15C. And on average, a cold snap is now -18C instead of always being -20C. Can you include an option in settings so that people like me and @Gilgamesh can have more variation in temperature events, without inherently making the game easier?
Mbos 28 May, 2020 @ 11:50am 
@leon there is a mod called permanent heat or cold that allows you to do that
CTH2004 31 Mar, 2020 @ 2:45pm 
This is neat. However, have you eve made a scenerio where one of these goes off once every 1/10 of a day? It gets into the hundreds! And I don't mean 100F I mean 100C
Stoic Saltine  [author] 18 Mar, 2020 @ 3:43am 
Sorry guys, been a bit preoccupied with work due to the COVID-19 stuff going on. I'll try to get around to fixing the bug asap though.
nhatanh0475 18 Mar, 2020 @ 3:04am 
@Leon Live in the North pole?
Pentasis 18 Mar, 2020 @ 2:51am 
Having the same issue as Red with an empty event card, I did notice the text does appear in the debug log.
Leon 15 Mar, 2020 @ 12:20pm 
How can i add permanent cold snap ?
Stoic Saltine  [author] 14 Mar, 2020 @ 5:30pm 
@Red - I will have to look into this. Thank you!
Squamata 14 Mar, 2020 @ 4:43pm 
Wanted to point out a bug I think is from this mod. When a heat wave or cold snap happens, the event card is usually blank. I had it once be a normal event card out of about 5, and I think it was because it rolled the normal temp.
Squamata 7 Mar, 2020 @ 1:21pm 
Awesome to see this updated, thank you so much for your time!
Stoic Saltine  [author] 7 Mar, 2020 @ 5:37am 
Updated to 1.1

Enjoy, and please let me know if you run into any issues
Two 5 Mar, 2020 @ 5:25am 
Thank you so much!
Stoic Saltine  [author] 5 Mar, 2020 @ 3:54am 
I have not been in the modding scene for a bit, as it was eating too much of my time. I will do what I can to update this asap :)
Squamata 1 Mar, 2020 @ 5:35pm 
I hope so Nyoj, but I wouldn't hold my breath. This hasn't been updated for a while.
Nyoj 26 Feb, 2020 @ 9:47am 
Ey, planing to update this to 1.1?
Stoic Saltine  [author] 14 Feb, 2020 @ 3:10am 
@Gilgamesh - It was always my personal opinion that the heat waves in the game were consistently too harsh, which is what inspired me to make the mod. I knew that if I only made the range 10-17, the vanilla experience of experiencing that +17C heatwave would be gone for most playthroughs. So I figured if I'm going to have a chance at experiencing less punishing temperature extremes, I should at least maintain the odds of the vanilla heat wave and even introduce a small probability of a heat wave being worse than vanilla.

Also, I don't remember EXACTLY why I picked 10-20, but I remember doing some light research into real world heat waves and looking at temperatures that made the pawns uncomfortable and at risk of dying. Given that temperature events only occur if the temperature is at a certain threshold, they are always still going to be punishing if the player does not have at least some sort of temperature regulation setup throughout the colony.
Gilgamesh 12 Feb, 2020 @ 4:35pm 
Why did you make the temperature offset favor the less extreme? Wouldn't it be better to make both directions off the default equal?

If the default is +17 for heat wave, I would think the Min and Max should be either +10 and +24 (+7/- 7) rather then +10 and +20 (-7/+3). As it is it's weighted to make the heat wave/ cold snap less severe then vanilla.
poisonousautumn 6 Dec, 2019 @ 10:07am 
Combined with the default (or modded) climate cycle this mod really adds some spice to a temperate map. I recently had snow during fall in the climate cycle's hottest year (avg 50F-114F).
☭ Renagade_1 ☭ 13 Apr, 2019 @ 2:07pm 
mattboesen 14 Mar @ 12:55pm
Request : Any chance you can make the temperate change user-selectable? Personally I find both Cold Snap and Heatwave to be total game hosers, and I'd love to just turn them off (or turn them back so they matter less).

You can disable them.

When starting new game

Click Scenario Editor,
Click Edit Mode,
Click Add Part,
Click Disable Incident,
Scroll to bottom ( on right hand side)
Click Tab next to Disable Incident,
Click Heat Wave,
Click Add Part and repeat for Cold Snap,
Save Scenario and play.
mabo404 14 Mar, 2019 @ 5:55am 
Request : Any chance you can make the temperate change user-selectable? Personally I find both Cold Snap and Heatwave to be total game hosers, and I'd love to just turn them off (or turn them back so they matter less).
GameBae 4 Feb, 2019 @ 6:42am 
Yup. I add my voice to the suggestions regarding more extreme temps with the possibility of having a special "extreme cold snap " event or maybe add an option to enter custom mid-max temp values. Thanks for the great mod.
Neptimus7 3 Feb, 2019 @ 11:45pm 
Is there a way to adjust the min/max values?
KAFKA🐰 14 Jan, 2019 @ 12:51am 
Thanks for one simple mod that makes the game feels more dynamic. Love it.
Llamageddon 6 Nov, 2018 @ 7:10am 
LOL. Logged on to suggest some more randomness or temp setting in options and it looks like I came late to the party. Thanks for this mod. It was a strange oversight in the main game.
MosaPudica 19 Oct, 2018 @ 5:01pm 
Indeed, played with a bit more today.

https://github.com/WuphonsReach/CauchyQuantile/blob/master/tests/CauchyQuantile.Tests/RimworldUnityExample.cs

That GetOffset() should be drop-in compatible.

Cold snap example:

this.MaxTempOffsetC = GetOffset(-60, -20, -10, 5.0);

Gives values in the range -60C to -10C for the offset, with a peak at -20. 36% of samples are within 2.5C of the peak, 62% are within 5.0C of the peak, 82% are within 10C of the peak. So most of the time you are getting something around -10 to -30 and usually -15 to -25. But anything between -10 and -60 is possible.

I did a 10-count loop because it's possible to get values outside the desired range. So it tries up to ten times with a fallback to the original linear approach. There are ways to adjust the "rho" value to stay within the min/max, but that math eludes me today.

Also works for heat waves:

this.MaxTempOffsetC = GetOffset(10, 20, 60, 5.0);
Stoic Saltine  [author] 18 Oct, 2018 @ 1:27am 
Updated to version 1.0!

@ScrapyardBob, thanks for all of the information! You can be sure it was helpful if I end up implementing it :)
MosaPudica 16 Oct, 2018 @ 2:56am 
Assuming that you have a random function that evenly outputs the range [0.05,0.80] (which is the input), and you want a range of -10 to -60 (width of 50), with a fat peak around -20:

= (-20 - -10) + 7.0 * (TAN(PI() * (input - 0.5))) + -10

Some rough numbers for that gamma (7.0) and random range of [0.05,0.80]:

- Min value is -66C, max value is -10C
- about 85% of the samples fall within the -30 to -10 range
- about 2.9% of the samples are below -50C

Note that as the gamma changes, the input range needs to change as well, unless you calculate multiple random values and only pick those that fall within your chosen range.

There's a link to the Google Sheet in the readme at GitHub under WuphonsReach/CauchyQuantile. The CouchyRandom sheet drives the RandomGraph tab.