# Temperature insanity

**URL:** <https://discourse.cataclysmdda.org/t/temperature-insanity/6865>\
**Category:** The Garage\
**Created:** [July 22, 2014, 11:38pm UTC](https://discourse.cataclysmdda.org/t/temperature-insanity/6865 "2014-07-22T23:38:07Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![Efimero](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/efimero/32/330_2.png) [@Efimero](https://discourse.cataclysmdda.org/u/Efimero)\
**Post date:** [August 9, 2014, 4:28am UTC](https://discourse.cataclysmdda.org/t/temperature-insanity/6865/41 "2014-08-09T04:28:29Z")

</div>

I can’t see how it would be fixed, since nobody touched the temperature code after me.  
I guess next I’ll make the debug menus so you can double check the weather stuff on your own.  
I’ve noticed it shows “Sunny” at night, which is not supposed to ever happen, so there’s room for depuration, for sure.

---

<div class="post-metadata">

**Author:** ![KA101](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@KA101](https://discourse.cataclysmdda.org/u/KA101)\
**Post date:** [August 9, 2014, 4:53am UTC](https://discourse.cataclysmdda.org/t/temperature-insanity/6865/42 "2014-08-09T04:53:55Z")

</div>

[quote=“Efimero, post:41, topic:6865”]I can’t see how it would be fixed, since nobody touched the temperature code after me.  
I guess next I’ll make the debug menus so you can double check the weather stuff on your own.  
I’ve noticed it shows “Sunny” at night, which is not supposed to ever happen, so there’s room for depuration, for sure.[/quote]

That’s been happening since Whales. Agreed that it doesn’t make much sense as written (though would be a good spot to stick the moon-phase indication!), but yeah.

---

<div class="post-metadata">

**Author:** ![qurvax](https://avatars.discourse-cdn.com/v4/letter/q/ecc23a/32.png) [@qurvax](https://discourse.cataclysmdda.org/u/qurvax)\
**Post date:** [August 9, 2014, 6:07am UTC](https://discourse.cataclysmdda.org/t/temperature-insanity/6865/43 "2014-08-09T06:07:54Z")

</div>

Here is the new link: [http://we.tl/nycsfjZ6sQ](http://we.tl/nycsfjZ6sQ)

“Steps” i did was: set season length to 30d, units to metric and start in spring. I understand this can be hard to reproduce, since no one want to play 30d season just to get to the summer.

---

<div class="post-metadata">

**Author:** ![KA101](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@KA101](https://discourse.cataclysmdda.org/u/KA101)\
**Post date:** [August 9, 2014, 5:27pm UTC](https://discourse.cataclysmdda.org/t/temperature-insanity/6865/44 "2014-08-09T17:27:09Z")

</div>

[quote=“qurvax, post:43, topic:6865”]Here is the new link: [http://we.tl/nycsfjZ6sQ](http://we.tl/nycsfjZ6sQ)

“Steps” i did was: set season length to 30d, units to metric and start in spring. I understand this can be hard to reproduce, since no one want to play 30d season just to get to the summer.[/quote]

Ah, that might be it: does the weather data account for season-length? If not, then you might be getting the labels and the weather offset. (Does the back half of spring get really warm, qurvax?)

---

<div class="post-metadata">

**Author:** ![Efimero](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/efimero/32/330_2.png) [@Efimero](https://discourse.cataclysmdda.org/u/Efimero)\
**Post date:** [August 9, 2014, 6:39pm UTC](https://discourse.cataclysmdda.org/t/temperature-insanity/6865/45 "2014-08-09T18:39:45Z")

</div>

I’m pretty sure the weather stuff accounts properly for the season length and accommodates to whatever setting you use.  
I’m gonna double check, but when I made it I was having that in mind. It may have slipped through the cracks and I’m not realizing it, though. Still, it’s so weird. =P

---

<div class="post-metadata">

**Author:** ![Daidalon](https://avatars.discourse-cdn.com/v4/letter/d/77aa72/32.png) [@Daidalon](https://discourse.cataclysmdda.org/u/Daidalon)\
**Post date:** [August 9, 2014, 8:30pm UTC](https://discourse.cataclysmdda.org/t/temperature-insanity/6865/46 "2014-08-09T20:30:07Z")

</div>

Actually, scratch the “summer is hot”, bit.

 ![](http://i60.tinypic.com/4io6lz.png)

---

<div class="post-metadata">

**Author:** ![Arek\_PL](https://avatars.discourse-cdn.com/v4/letter/a/b77776/32.png) [@Arek\_PL](https://discourse.cataclysmdda.org/u/Arek_PL)\
**Post date:** [August 9, 2014, 9:16pm UTC](https://discourse.cataclysmdda.org/t/temperature-insanity/6865/47 "2014-08-09T21:16:44Z")

</div>

well in latest experimental is still cold but not -50C during summer its now 2C or -2C sometimes -20C if dews will not fix it we can add this to lore that world warming caused ice age like in The Day After Tomorrow

---

<div class="post-metadata">

**Author:** ![Daidalon](https://avatars.discourse-cdn.com/v4/letter/d/77aa72/32.png) [@Daidalon](https://discourse.cataclysmdda.org/u/Daidalon)\
**Post date:** [August 9, 2014, 9:24pm UTC](https://discourse.cataclysmdda.org/t/temperature-insanity/6865/48 "2014-08-09T21:24:20Z")

</div>

It’d be fairly easy to set a maximum and minimum temperature for each season (Still can’t do it).

---

<div class="post-metadata">

**Author:** ![Efimero](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/efimero/32/330_2.png) [@Efimero](https://discourse.cataclysmdda.org/u/Efimero)\
**Post date:** [August 10, 2014, 12:32am UTC](https://discourse.cataclysmdda.org/t/temperature-insanity/6865/49 "2014-08-10T00:32:23Z")

</div>

This is the last time I’m going to say that I am in the process of fixing it. I understand you frustration, but it’s a more elusive bug than just “clamp the temperatures depending on season”. It shouldn’t generate such values in the first place.

---

<div class="post-metadata">

**Author:** ![Daidalon](https://avatars.discourse-cdn.com/v4/letter/d/77aa72/32.png) [@Daidalon](https://discourse.cataclysmdda.org/u/Daidalon)\
**Post date:** [August 10, 2014, 12:52am UTC](https://discourse.cataclysmdda.org/t/temperature-insanity/6865/50 "2014-08-10T00:52:27Z")

</div>

We were really just idly chatting about a potential short term fix while we wait for the long term solution.

---

<div class="post-metadata">

**Author:** ![Efimero](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/efimero/32/330_2.png) [@Efimero](https://discourse.cataclysmdda.org/u/Efimero)\
**Post date:** [August 10, 2014, 4:21am UTC](https://discourse.cataclysmdda.org/t/temperature-insanity/6865/51 "2014-08-10T04:21:03Z")

</div>

[![](http://www.threadbombing.com/data/media/58/you_get_a_cookie.jpg) ](http://www.threadbombing.com/data/media/58/you_get_a_cookie.jpg)

You found a bug that turned out to be some missing parens, so you get a cookie.  
I’m not even joking. I’d give you a cookie if you were around here. Good job.

---

<div class="post-metadata">

**Author:** ![Daidalon](https://avatars.discourse-cdn.com/v4/letter/d/77aa72/32.png) [@Daidalon](https://discourse.cataclysmdda.org/u/Daidalon)\
**Post date:** [August 10, 2014, 4:25am UTC](https://discourse.cataclysmdda.org/t/temperature-insanity/6865/52 "2014-08-10T04:25:56Z")

</div>

[quote=“Efimero, post:51, topic:6865”][http://www.threadbombing.com/data/media/58/you\_get\_a\_cookie.jpg](http://www.threadbombing.com/data/media/58/you_get_a_cookie.jpg)

You found a bug that turned out to be some missing parens, so you get a cookie.  
I’m not even joking. I’d give you a cookie if you were around here. Good job.[/quote]

the 3 most annoying coding bugs:  
-you forgot/misplaced parenthesis  
-you put a ; instead of {  
-The object you are looking for does not currently exist, so it vomits nonsense from your harddrive.

---

<div class="post-metadata">

**Author:** ![KA101](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@KA101](https://discourse.cataclysmdda.org/u/KA101)\
**Post date:** [August 10, 2014, 5:14am UTC](https://discourse.cataclysmdda.org/t/temperature-insanity/6865/53 "2014-08-10T05:14:50Z")

</div>

Fix merged.

---

<div class="post-metadata">

**Author:** ![qurvax](https://avatars.discourse-cdn.com/v4/letter/q/ecc23a/32.png) [@qurvax](https://discourse.cataclysmdda.org/u/qurvax)\
**Post date:** [August 10, 2014, 8:38am UTC](https://discourse.cataclysmdda.org/t/temperature-insanity/6865/54 "2014-08-10T08:38:57Z")

</div>

> [@KA101](#):
>
> Ah, that might be it: does the weather data account for season-length? If not, then you might be getting the labels and the weather offset. (Does the back half of spring get really warm, qurvax?)

AFAIK it’s not. All the spring-summer was cold, with -5 at sunny some times.

Now it’s winter here, first days of it and i got like +16 some times (short periods tho). And around -10 at night, which feels just about right.

> [@KA101](#):
>
> Fix merged.

Hurray! Gonna test.

EDIT: Now it’s day 7 of winter. Drizzle, +23C. Maybe game needs some time to settle weather down?  
EDIT: Day 8, +24C…

---

<div class="post-metadata">

**Author:** ![Zireael](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zireael/32/956_2.png) [@Zireael](https://discourse.cataclysmdda.org/u/Zireael)\
**Post date:** [August 10, 2014, 1:01pm UTC](https://discourse.cataclysmdda.org/t/temperature-insanity/6865/55 "2014-08-10T13:01:50Z")

</div>

qurvax, are you using default season lengths?

---

<div class="post-metadata">

**Author:** ![qurvax](https://avatars.discourse-cdn.com/v4/letter/q/ecc23a/32.png) [@qurvax](https://discourse.cataclysmdda.org/u/qurvax)\
**Post date:** [August 10, 2014, 1:06pm UTC](https://discourse.cataclysmdda.org/t/temperature-insanity/6865/56 "2014-08-10T13:06:43Z")

</div>

Nope. 30.

---

<div class="post-metadata">

**Author:** ![Efimero](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/efimero/32/330_2.png) [@Efimero](https://discourse.cataclysmdda.org/u/Efimero)\
**Post date:** [August 10, 2014, 1:31pm UTC](https://discourse.cataclysmdda.org/t/temperature-insanity/6865/57 "2014-08-10T13:31:21Z")

</div>

[quote=“Daidalon, post:52, topic:6865”][quote=“Efimero, post:51, topic:6865”][http://www.threadbombing.com/data/media/58/you\_get\_a\_cookie.jpg](http://www.threadbombing.com/data/media/58/you_get_a_cookie.jpg)

You found a bug that turned out to be some missing parens, so you get a cookie.  
I’m not even joking. I’d give you a cookie if you were around here. Good job.[/quote]

the 3 most annoying coding bugs:  
-you forgot/misplaced parenthesis  
-you put a ; instead of {  
-The object you are looking for does not currently exist, so it vomits nonsense from your harddrive.[/quote]  
Even more annoying, forgetting the [img] tags.

> [@qurvax](#):
>
> [quote=“KA101, post:44, topic:6865”]Ah, that might be it: does the weather data account for season-length? If not, then you might be getting the labels and the weather offset. (Does the back half of spring get really warm, qurvax?)

AFAIK it’s not. All the spring-summer was cold, with -5 at sunny some times.

Now it’s winter here, first days of it and i got like +16 some times (short periods tho). And around -10 at night, which feels just about right.

> [@KA101](#):
>
> Fix merged.

Hurray! Gonna test.

EDIT: Now it’s day 7 of winter. Drizzle, +23C. Maybe game needs some time to settle weather down?  
EDIT: Day 8, +24C…[/quote]

No savefile, no fix. I need to have your save to reproduce it. It’s more complicated than it seems to find where a bug like this starts. It could even be the game reporting the wrong season or some other crazy stuff.  
Like, I just found out setting the world to start in winter actually starts you in autumn, somehow. That’s not even code I touched! This game is full of magic. XD

[hr]  
Aaaand, let me add, I fixed the season thing and now it properly starts on winter. Looks like it was just reading the wrong world generation option or something. Still, I can’t reproduce hot winters either on 14 or 30 days per season. Are you sure that was ºC and not ºF?

---

<div class="post-metadata">

**Author:** ![Zireael](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zireael/32/956_2.png) [@Zireael](https://discourse.cataclysmdda.org/u/Zireael)\
**Post date:** [August 10, 2014, 2:16pm UTC](https://discourse.cataclysmdda.org/t/temperature-insanity/6865/58 "2014-08-10T14:16:28Z")

</div>

> [@qurvax](#):
>
> Nope. 30.

That’s quite possibly the reason why you’re getting summer temps in winter. If my Math isn’t off, you’d be in summer under default season length.

---

<div class="post-metadata">

**Author:** ![Efimero](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/efimero/32/330_2.png) [@Efimero](https://discourse.cataclysmdda.org/u/Efimero)\
**Post date:** [August 10, 2014, 2:19pm UTC](https://discourse.cataclysmdda.org/t/temperature-insanity/6865/59 "2014-08-10T14:19:20Z")

</div>

> [@Zireael](#):
>
> [quote=“qurvax, post:56, topic:6865”]Nope. 30.

That’s quite possibly the reason why you’re getting summer temps in winter. If my Math isn’t off, you’d be in summer under default season length.[/quote]

If your math is so correct, look at the code and tell me where did I fail to account for the season length, please. XD

---

<div class="post-metadata">

**Author:** ![Zireael](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zireael/32/956_2.png) [@Zireael](https://discourse.cataclysmdda.org/u/Zireael)\
**Post date:** [August 10, 2014, 2:20pm UTC](https://discourse.cataclysmdda.org/t/temperature-insanity/6865/60 "2014-08-10T14:20:38Z")

</div>

I’m just trying to guess, and btw my Maths tend to suck 😛

And I can’t into C, while I can into Lua.

[Previous page](https://discourse.cataclysmdda.org/t/temperature-insanity/6865.md?page=2)

[Next page](https://discourse.cataclysmdda.org/t/temperature-insanity/6865.md?page=4)
