khzmusik
Well-known member
on the seasonal weather, is actual new weather added or can it be added, i.e. thunder storms, blizzards, torrential down pours, possible rad storms, etc? Which bring to my mind the question of if the sky box can be changed with the varying weathers to something custom?
I'd like to add in multiple things along the above lines once I figure it all out.
Since you're in the A19 thread, I guess you're asking about how it worked in Alpha 19?
In A19, there was global weather, and a global temperature. That global temperature was modified by biome (so for example it would always be 20 degrees hotter in the desert biome). The weather in each biome had a complex calculation (number of days without rain, fog, etc.) but it was all dependent on the global temperature.
All my seasonal weather mod did, was set the global temperature according to the number of in-game days that had passed. It used a sine wave, where the upper peak was the summer, and the lower peak was the winter. A seasonal year was one cycle of that sine wave.
I didn't do much more than that. The biome calculations for fog, rain, snow, etc. basically took care of themselves.
All of this changed in A20. In that update the entire weather system was rewritten. There is no more global temperature, and each biome's weather is independent of other biomes. For that reason I can't update the seasonal weather modlet.
That's most of what I know. Once I knew that I couldn't update my modlet, I didn't look very closely at the new weather system to see how it could be modded.
If you want to research it yourself, the class is called WeatherManager in the game's C# code. You'll have to decompile assembly-csharp.dll to see it.