Weather

<< BACK TO SCRIPTS

Weather

Current Version: 1.8.2

$10.00

Stand-Alone

This is my take on a dynamic weather manager. It will generate dynamic weather and tries to stick to realistic patterns. It uses a "rain bias" to let it rain only a certain percentage of the time (set in the config). That is to try to alleviate it raining too much. It generates temperatures based on the month and current weather. Once "snow" is turned on, all weather patterns follow snow until you change it from snow. Christmas and Halloween settings are also persistent until you change them. 

Now with Dynamic Clouds. Clouds are randomized based on weather type so the sky has variation to it, as well.

Any user can call up the forecast and see what the next several weather iterations will be. (There is an export for this data if a developer wanted to incorporate it into their script, like a phone or something). There are also commands to override and change the weather to whatever is desired and the dynamic patterns will go from where you set it. There is also a "pause" function to stop dynamic weather and just leave it on whatever you want to set it at. Forecast icons for day or night.

A menu has now been added so you can do all weather and time functions using /weather through the menu.

New NO NIGHT option... Basically let's you set a time to jump from and a time to jump to if you wanted to skip a time range always. i.e. If you wanted to make the night shorter you could have it jump from a time during the night to morning. If you don't want night at all, you could jump from 21:00 to 5:00.

NOTE: If you use vMenu, vSync (or any script that controls weather), you will need to either remove the conflicting script completely and/or go into your vMenu config and turn off dynamic weather settings since it will conflict with this script and cause the weather to flash and change uncontrollably.

If you want to use the Time Sync functionality, you will need to disable the time sync in vMenu.

DOCUMENTATION

$10.00

Change Log

10/15/2024 - v1.8.2

  • Moved to radial menu
  • Fixed Time Pause

7/3/2024 - 1.81 (includes a settings.ini update)

  • Added the much requested time cycle control to slow down the passage of time (NOTE: This has consequences. Anytime you force the time on the server and pass it to the client it makes the clouds, moon and sun stutter in the sky. You've been warned.) I tried to limit this as much as possible.

6/84/2024 - v1.8

  • Added /settime command for easier time setting
  • Tweaked SNOW weathers. So when set to snow, there might be periods of there not being snow on the ground.
  • Added exports to work with Night Natural Disaster script

3/26/2024 - v1.75

  • Moved FOGGY to the rain weather types so it would not be foggy as often
  • Added HOUR and MINUTE selector to the SET TIME function in the menu (by request)
  • Tweaked weather pattern generator slightly to add more realism

12/9/2023 - v1.74

  • Added config items to allow a No Night option.

11/9/2023 - v1.73

  • Removed spawn event dependency
  • Updated licensing engine
  • Added export for forecast - specifically for the NPWD Weather App

7/12/2023 - v1.72

  • Modified start up procedure to remove dependency on player spawn event

4/20/2023 - v1.71 - Separated the clouds and weather settings so if you set the clouds to anything, it will not change the weather. They are independant now. Also, added an export, BigDaddy-Weather:ExportForecast which returns a JSON string of the forecast. The weather type in the forecast matches the images in the NUI images folder of the weather resource. This is meant to allow for creating forecast apps for phone resources.

3/30/2023 - v1.7 - Added a menu. Added cloud control. Change clouds without changing base weather. Added a time sync function. The time sync is meant to replace vMenu time sync because it makes the clouds stutter in the sky. You will have to disable time syncing in vMenu to use it in this resource.

1/22/2023 - v1.6 - Removed NEUTRAL weather from the list of weather used since it seems to be some sort of weird settings that gives some crazy results. And fixed the forecast that sometimes showed a broken image and was missing part of the forecast list.

1/9/2023 - v1.5 - Added a config option to set a weather type for when the server restarts. So if you want snow or whatever when the server restarts it will start with that.

12/31/2022 - v1.3 - Fixed a bug in the forecast display. Updated licensing and resource startup to newer version which fixes a bug in the startup process.

12/5/2022 - v1.2 - Optimized the client side slightly and removed unnecessary process. Moved particle effect load to earlier in the "snow" process. Some were experiencing no snow in the air. Added dynamic clouds to the weather generation. Based on what weather is happening, clouds are generated dynamically so the sky should have some different looks no matter what the weather.

11/21/2022 - v1.1 - Minor tweak to the weather generator. Made sure blizzard would only last half a cycle (because it's loud) and if it is raining it can now go to clearing or overcast. ///