creatures caves welcome, guest
downloads   gallery   dev   community   creatchi   forum   mycaves
bookmarks | search | post new topic
Development Forum
old
Room temperature in C2   
dingus

dingus
Australia  


  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

dingus
Australia  


  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:
C = (T - 51) / 3

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

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. [nlaugh]

Grendels aren't so bad, but I love Ettins! They're adorable! The complexity of creatures is quite amazing.
 


downloads
cobs
adoptions
creaturelink
metarooms
breeds
 
gallery
art
wallpaper
screenshots
graphics
promos
sprites
dev
hack shack
script reservations
dev resources
active projects
dev forum
 
community
links
advice
chat
polls
resources
creatchi
 
forum
bookmarks
general
news
help
development
strangeo
survivor
mycaves
log in
register
lost pw
1 online
Snails
creatures caves is your #1 resource for the creatures artificial life game series: creatures, creatures 2, creatures 3, docking station, and the upcoming creatures family.

contact    help    privacy policy    terms & conditions    rules    donate    wiki