Development Forum |
|
|
dingus
|
9/26/2021 | |
Does anyone know or have a link to a reference that defines how the engine maps room temperatures (which seem to be an unsigned 8-bit integer (0-255)) to real world values as displayed on the status bar?
Any idea of the position within the viewport that the displayed temperature is sampled?
The status bar of my game shows temperature in Celsius. I assume the display unit is effected by the locale. If you know the answer to my first question, let us know which unit scale you are using for mapped temperatures.
dingus |
dingus
|
10/7/2021 | |
I've answered two of my own questions and put those answers below for anyone comes searching in the future. I'm still curious as to whether the status bar unit of temperature changes with locale or is fixed to Celsius.
The status bar displays the temperature of the room that the selected Creature is in. If no Creature is selected, the room at the centre of the viewport is used.
A not-quite-perfect conversion of raw to Celsius temperatures can be achieved with this simple integer arithmetic:
I've built a tool (that's packaged as a COB) that will dynamically display the raw and Celsius temperatures of the room its placed in. DM me if you'd like a copy.
Why this interest in temperature? I've been progressively tweaking some of the plants so they cannot grow in implausible places. I'm using temperature, soil type and nutrients as control factors.
dingus |
Mandymom
|
10/7/2021 | |
Oh, that’s a great idea! I’m surprised the game doesn’t do that already, actually. Another sign of C2 being rushed I suppose.
Grendels aren't so bad, but I love Ettins! They're adorable! The complexity of creatures is quite amazing. |
|