Blockland Forums > Suggestions & Requests
Random Weather Patterns (for the the Day/Night Cycle)
<< < (2/4) > >>
Swat 3:
Would be neat.
shyGriff:
i'd make this if i wasn't too stupid to
Racerboy:

--- Quote from: shyGriff on September 18, 2012, 08:07:40 PM ---i'd make this if i wasn't too stupid to

--- End quote ---
It's the thought that counts :')
M:
Totally possible, if you set up a heap of different day cycles and such

If someone wanted to take the idea, since I'm too lazy to make/tune day cycles:
At midnight, determine the weather for the day and swap to that day cycle/skybox.

Weather would be defined as current weather, new weather and a transition point. Such as clear to rainy in the morning, which would fade into rainy day cycle settings around the 0.3 mark of the day cycle, or rain to overcast in the afternoon which would be raining up until the 0.6-0.7 mark and then stop the rain, leaving the overcast skybox.

You'd do this so that instead of just SUDDENLY RAIN you could tune the environment settings to slowly make it more overcast, then at the 0.3 mark it swaps to the full rain skybox and starts the precipitation, etc.

The actual code is easy, mostly it's a case of making a heap of environment settings and setting them all up correctly. ie, a lot of monotonous busywork that can't really be made much easier by coding cleverness.

You can use Lugnut's (I think it was Lugnut's?) day cycle events as a code reference for firing something off at midnight, or any other time for enabling/disabling precipitation.
Treynolds416:
I was thinking something very similar to what M said. I don't really know what the parameters are for precipitation and various other weather effects, but I was thinking that someone could put together a basic framework mod. It could read a file similar to a daycycle file and use the data there and some random seeding to generate basic weather

The file could look something like this:

--- Code: ---#PRECIPITATION#

Title = lightRain
StageCount = 2
Time[0] = 1000, 10000
Precipitate[0] = 0, 10
Time[1] = 100000, 200000
Precipitate[1] = 15, 25

Title = rain0
Etc.

#CLOUDS#

Title = lightClouds
Etc.

--- End code ---
The numbers separated by commas are min, max values, time is in ms and precipitate is the relative percent rain density

OBVIOUSLY this would take a fair amount of work though
Navigation
Message Index
Next page
Previous page

Go to full version