Sir_Real Posted February 6 Report Posted February 6 (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 February 6 by Sir_Real Added game version
Spoonail Posted February 8 Report Posted February 8 (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 February 8 by Spoonail 1
Argakyan Posted August 15 Report Posted August 15 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.
Recommended Posts