Jump to content

Recommended Posts

Posted (edited)

Hello, I am trying to create a simple mod that would allow me to change the temperature in which auroras can be seen. From what I've gathered Auroras are temperature dependent, not lattitude, but I have not been able to find the file which contains this data. Any help would be appreciated.

Game version is 1.21.6

Edited by Sir_Real
Added game version
Posted (edited)

`AuroraRenderer` seems to contain the logic for the temperature condition:
https://github.com/anegostudios/vsessentialsmod/blob/51253adb3f200c46fe59993c7ada2e9e7f32c0ed/Systems/Weather/AuroraRenderer.cs#L77

The formula is a bit tricky, but the `tempfac` reaches its max (1.0) at -20C and reaches its min (0.0) at -5C
Also note that this is not the current temperature: it's annual average (a.k.a "base" temperature,) since the mode argument to `ClimateAt` is `EnumGetClimateMode.WorldGenValues`

To change the condition, you'll need to Harmony-patch the method because no parameters of the condition are exposed via external files such as json.
 

Edited by Spoonail
  • Like 1
  • 6 months later...
Posted

Hey, I was just looking for a mod doing exactly this, changing the aurora temperature. I noticed just how far north VS allows aurora due to that temperature dependency, when the aurora ingame use varying aurora light colours suggesting variable solar activity, which compared to irl would suggest aurora should happen in warmer climates too (compare to irl NASA definitions on aurora range, the mean annual temperature in say Sweden is like 3.5°C, adjusted for pre-industrial would still be above 0°C). 

So the question I want to pose is if this mod changing aurora temperature is still in development? I checked the mod repository and I haven't seen another mod doing this yet. I could do it myself, but if somebody else is already working on it there'd be no reason for me to start a project.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.