# Latest experimental too cold, freezing with warm clothes

**URL:** https://discourse.cataclysmdda.org/t/latest-experimental-too-cold-freezing-with-warm-clothes/15260
**Category:** The Garage
**Created:** [April 10, 2018, 10:51am UTC](https://discourse.cataclysmdda.org/t/latest-experimental-too-cold-freezing-with-warm-clothes/15260 "2018-04-10T10:51:37Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![dissociativity](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dissociativity/32/4967_2.png) [@dissociativity](https://discourse.cataclysmdda.org/u/dissociativity)
#### Post date: [April 10, 2018, 10:51am UTC](https://discourse.cataclysmdda.org/t/latest-experimental-too-cold-freezing-with-warm-clothes/15260/1 "2018-04-10T10:51:37Z")

</div>

Day 1, maybe day 2 I’m consistently finding my character excessively cold and literally getting injured by frostnip or even frostbite before I’m able to craft clothes to counter it.

Steps to reproduce:  
Create a new computer hacker class character with the default shelter start  
do your normal thing  
get frostnip and usually frostbite no matter how quickly you get that wooden needle making clothes  
It’s particularly bad on feet and head if you aren’t lucky enough to get an emergency jacket for the hood warmth.

This includes grabbing two sheets over yourself asap and any other readily craft able clothing

Previous experimentals did not exhibit this behavior I’m fairly sure 7296 windows x64 build was free from it.

---

<div class="post-metadata">

### Author: ![darktoes](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@darktoes](https://discourse.cataclysmdda.org/u/darktoes)
#### Post date: [April 10, 2018, 11:02am UTC](https://discourse.cataclysmdda.org/t/latest-experimental-too-cold-freezing-with-warm-clothes/15260/2 "2018-04-10T11:02:22Z")

</div>

That sounds like how it usually works. There might be a little RNG involved even. You just have to get lucky with some warm clothing or spend a lot of time indoors, but I had one run where I just froze to death trying to walk to the nearest town.

It helps if you cut the sheets to rags and make some hand wraps, a turban, etc.

---

<div class="post-metadata">

### Author: ![dissociativity](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dissociativity/32/4967_2.png) [@dissociativity](https://discourse.cataclysmdda.org/u/dissociativity)
#### Post date: [April 10, 2018, 11:25am UTC](https://discourse.cataclysmdda.org/t/latest-experimental-too-cold-freezing-with-warm-clothes/15260/3 "2018-04-10T11:25:35Z")

</div>

I’ve played this game for years, but it’s strange that I’m really cold with two pairs of socks, stockings and boots that fit, it’s not RNG because it’s happening every life, different worlds.

It’s consistently much colder than yesterday’s experimentals.

My feet shouldn’t be wanting to fall off in spring with all of this on.

---

<div class="post-metadata">

### Author: ![darktoes](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@darktoes](https://discourse.cataclysmdda.org/u/darktoes)
#### Post date: [April 10, 2018, 11:33am UTC](https://discourse.cataclysmdda.org/t/latest-experimental-too-cold-freezing-with-warm-clothes/15260/4 "2018-04-10T11:33:28Z")

</div>

Odd, I don’t remember seeing anything in the changelogs about changing temperatures. Anything’s possible of course. Maybe there’s something odd going on.

---

<div class="post-metadata">

### Author: ![BorkBorkGoesTheCode](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/borkborkgoesthecode/32/2343_2.png) [@BorkBorkGoesTheCode](https://discourse.cataclysmdda.org/u/BorkBorkGoesTheCode)
#### Post date: [April 10, 2018, 1:24pm UTC](https://discourse.cataclysmdda.org/t/latest-experimental-too-cold-freezing-with-warm-clothes/15260/5 "2018-04-10T13:24:16Z")

</div>

This one modified weather.h but I don’t know if it’s a cause:

[ci.narc.ro/job/Cataclysm-Matrix/7298/](http://ci.narc.ro/job/Cataclysm-Matrix/7298/)

---

<div class="post-metadata">

### Author: ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)
#### Post date: [April 10, 2018, 2:22pm UTC](https://discourse.cataclysmdda.org/t/latest-experimental-too-cold-freezing-with-warm-clothes/15260/6 "2018-04-10T14:22:47Z")

</div>

The winter has cometh.

---

<div class="post-metadata">

### Author: ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)
#### Post date: [April 10, 2018, 3:29pm UTC](https://discourse.cataclysmdda.org/t/latest-experimental-too-cold-freezing-with-warm-clothes/15260/7 "2018-04-10T15:29:40Z")

</div>

Looks like the change to line 45 of weather\_gen.cpp changed the formula it uses to calculate when “now” is.

> <https://github.com/CleverRaven/Cataclysm-DDA/pull/23327/files#diff-1fa6c6b85387fd1d23a67148c59108d7R45>

  
I suspect weather\_gen doesn’t actually want “now”, it seems to want some number indicating what season it’s in.

---

<div class="post-metadata">

### Author: ![Sirquote](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/sirquote/32/887_2.png) [@Sirquote](https://discourse.cataclysmdda.org/u/Sirquote)
#### Post date: [April 10, 2018, 7:09pm UTC](https://discourse.cataclysmdda.org/t/latest-experimental-too-cold-freezing-with-warm-clothes/15260/8 "2018-04-10T19:09:45Z")

</div>

Had this after updating the last month of changes. I just assumed I was getting a taste of last winter or that cold got buffed. I wanted to report it but didn’t want to sound like a massive wimp lol

Glad to know it wasn’t normal, 2 blankets, emergency blanket and trench is just too much.

---

<div class="post-metadata">

### Author: ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)
#### Post date: [April 11, 2018, 8:42pm UTC](https://discourse.cataclysmdda.org/t/latest-experimental-too-cold-freezing-with-warm-clothes/15260/9 "2018-04-11T20:42:09Z")

</div>

Previously that was `now() + season_length / 2`, but second part was omitted:

_then_:

```auto
    const double now( double( t.turn_of_year() + to_turns<int>( calendar::season_length() ) / 2 ) /
                      to_turns<int>( calendar::year_length() ) ); // [0,1)

```

_now:_

```auto
    const double now( time_past_new_year( t ) / calendar::year_length() ); // [0,1)

```

---

<div class="post-metadata">

### Author: ![dissociativity](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dissociativity/32/4967_2.png) [@dissociativity](https://discourse.cataclysmdda.org/u/dissociativity)
#### Post date: [April 12, 2018, 12:35am UTC](https://discourse.cataclysmdda.org/t/latest-experimental-too-cold-freezing-with-warm-clothes/15260/10 "2018-04-12T00:35:16Z")

</div>

so is anyone gonna commit this fix that we’ve known is easily there yet or?

---

<div class="post-metadata">

### Author: ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)
#### Post date: [April 12, 2018, 6:23am UTC](https://discourse.cataclysmdda.org/t/latest-experimental-too-cold-freezing-with-warm-clothes/15260/11 "2018-04-12T06:23:16Z")

</div>

Yes, eventually someone will.

---

<div class="post-metadata">

### Author: ![BorkBorkGoesTheCode](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/borkborkgoesthecode/32/2343_2.png) [@BorkBorkGoesTheCode](https://discourse.cataclysmdda.org/u/BorkBorkGoesTheCode)
#### Post date: [April 18, 2018, 2:23pm UTC](https://discourse.cataclysmdda.org/t/latest-experimental-too-cold-freezing-with-warm-clothes/15260/12 "2018-04-18T14:23:13Z")

</div>

It’s fixed now:

> <https://github.com/CleverRaven/Cataclysm-DDA/pull/23518>
