Ludeon Forums

RimWorld => Mods => Help => Topic started by: Ulf1337 on August 19, 2021, 04:30:27 AM

Title: Modify temperature of a specific cell
Post by: Ulf1337 on August 19, 2021, 04:30:27 AM
Hello,

is there any way to modify the temperature of a single cell? And thus of all cells on the map individually?

So far I only found out how to manipulate temperatures of regions/rooms, but not each cell individually. Is it even possible?

Thank you for sharing your knowledge!
Title: Re: Modify temperature of a specific cell
Post by: Canute on August 19, 2021, 05:29:01 AM
I can't answer your quesition.
But you should think a bit further.
What would happen if you set the temperature of one tile to a different value then the remaining room/region ? The next tick the temperature mechanic would equalize the whole room/region until your mod would redo it and set the temperature again to the value.
So you basicly create a heater/cooler.

Not sure what you want to create, but maybe you should try to check out the RimFridge mod.
Which is basicly a container with an adjustable temperature value.
Title: Re: Modify temperature of a specific cell
Post by: Ulf1337 on August 19, 2021, 05:35:09 AM
Thanks, I will take a look at the mod.

My goal is to recalculate the temperature of every cell for myself. So I would need to disable the game calculation for the temperature.
Title: Re: Modify temperature of a specific cell
Post by: RawCode on August 21, 2021, 07:00:49 AM
it can be done with single code injection, real question "why?"

do you understand that game area can be 512*512 and this is 262 144 cells, for some absolutely useless feature you will process 2 megabytes of data time to time.

and game can have multiple maps, including multiple active maps.