DynamicWeather
By ApparentlyRohan
This mod gives GTA its own realistic weather system! Weathers transition (maybe?) as the day continues in game giving more variety in the sky. Read below to see what this mod has to offer:
Features:
Weather Sync to a real life location(Requires API key: API is free but setup required..DO NOT SHARE YOUR API KEY)
*The forecast UI will not popup if weather sync is enabled*\
Time Sync the in-game clock to a real-world location’s local time (works separately from weather sync; use one, both, or neither)
Custom Realistic Forecast
Temperature and weather condition included
Predicted (in-game) time when the weather will occur
Varied weather durations with a configurable chance of extended conditions
Configurable thunderstorm / blizzard chance
Choose a weather cycle — normal seasons (
Standard) or winter (Snow) — or make your own inWeathers.xmlOption to switch weather instantly or use gradual transitions
Configurable transition length
Civilian umbrellas
Nearby peds can pull out umbrellas in the rain (toggle / chance in the INI)
On screen UI
Forecast
Current Weather
For real life weather sync and forecast
Ability to customize the position and scale of UI
APIs:
bool IsRealLifeWeatherSyncRunning();
void PauseWeatherSystem();
void ResumeWeatherSystem();
List<Weather> GetCurrentForecast(out int currentWeatherIndex) # returns an empty list if real life weather sync is running
Events:
OnWeatherChanged
Installation:
Drag and drop Plugins folder into main game directory. Install OIV by dragging and dropping into OpenIV. The OIV file is mandatory.
A conversion from in game time to real life time was kindly made by Krazy Manuel and is provided down below. This will be helpful when reading the INI.
IMPORTANT THINGS TO NOTE:
The Severe Weather Event from ImmersiveAmbientEvents by @Echooo is not compatible yet with DynamicWeather. Please disable that event if you want to use DynamicWeather.
When using forecast generated by DynamicWeather, you cannot have freeze time OR force weather enabled in any trainer. Otherwise, DynamicWeather will not transition between weather. In IRL weather mode, you can have freeze time on but not force weather.
Some graphic mods consider weather differently. Thus, the graphic shown for different weather settings in GTA may not represent the weather accurately. You are welcome to edit the image names yourself to fit your graphic mods.
I do not log the location from the ini in the RagePluginHook.log. However, if you have trouble with the api working, I will need to know what the location is so please choose something more generic so any identifying information is not revealed while I am trying to debug.
Some graphics mods have bugs with how the sky looks when the weather is transitioning. It makes the sky green which is not exactly the most realistic. Due to these issues and no real fix, the weather switches instantly by default. You can change this in the ini. If you have the green sky, the fix is to turn off the transitions.
Customization:
All textures can be customized. Just make sure the weather textures is optimized for 96x96 and the notification texture is optimized for 64x64.
Console Commands:
PauseForecast
ResumeForecast
RegenerateForecast
RefreshWeather - Fetches from API again to get updated real life weather
SwitchToIRLWeather
SwitchToForecast
ReloadDynamicWeatherINISettings - Reloads INI settings without needing to load and unload plugin numerous times
SwitchWeatherSystem [name] — Switches the weather cycle from
Weathers.xml(e.g.SwitchWeatherSystem Snow); keeps the current weather as the first forecast card when possibleQueueWeather [weather] — Sets the next forecast weather (e.g.
QueueWeather Rain) without interrupting a transition already in progress
Credits:
@Haze Studio for the notification texture
@Scorpionfam for the thumbnail
@HeyPalu for the on screen textures
@Lepoisson for the photos & beta testing
@dstickman for beta testing
Some guy on the discord that doesn't have an lspdfr account but helped beta test and gave me moral support...you know who you are :)
Krazy Manuel for the conversion chart
@BlueLine Vibes for making a showcase video of the new update and providing the discord as a platform to help beta test(Thank you all the beta testers in the discord!).
@khorio for the coding help with time and API integration
@Echooo for weather transition code
Officer 034 for the Weathers.xml idea

Edited by ApparentlyRohan
What's New in Version 1.4.0
Released
# DynamicWeather Changelog (1.4.0)
### New
- Civilians nearby can pull out umbrellas when it’s raining (including thunder and clearing). You can turn this off or change how often it happens in the INI.
- Pick between weather systems or make your own in the revamped`Weathers.xml`. Each stage in the cycle has its own temperature ranges and custom cloud coverages.
- Snow mode is no longer a simple on/off switch. Choose a weather cycle with `ActiveWeatherSystem`, or swap mid-game with `SwitchWeatherSystem` (e.g. `SwitchWeatherSystem Snow`).
- Queue the next weather with the `QueueWeather` console command (e.g. `QueueWeather Rain`) without cutting off a transition that’s already in progress.
- Slow down or speed up the day/night cycle. Default matches normal GTA; raise the value for longer days (up to roughly real-time).
- Sync the in-game clock to a real-world location’s local time. This works separately from real-life weather sync.
### Interface
- Easier scaling for the always-on weather display with one setting (`AlwaysOnUIScale`).
- Always-on position settings are back if you customize where the card sits on screen.
### Forecast
- Clouds blend more smoothly when weather changes gradually.
### Real-Life Sync
- Real-life weather and real-life time can be turned on independently.
### Bug fixes
- Stopping or unloading the plugin cleans up weather and the clock properly, so trainers like Menyoo behave better afterward.
- Rain should be less likely to get “stuck” visually after weather changes or unload.
- Fixed a few crashes related to the forecast key when loading game on startup.
### Updating from 1.3
- Replace `SnowMode=true/false` with `ActiveWeatherSystem=Snow` or `ActiveWeatherSystem=Standard`.
- Replace your old `Weathers.xml` with the new format (copy from the files included in this update; a Celsius sample is included too).
- If you customized always-on size, use `AlwaysOnUIScale` instead of the old texture/font size options.
- Please make sure to look at the new ini to make sure you did not miss something else!
### New settings (defaults)
```ini
[General]
; 2 = normal GTA day length. Higher = longer days (60 ≈ real-time).
RealLifeMinutesPerGameHour=2
[Forecast]
; Standard or Snow (or a custom name from Weathers.xml)
ActiveWeatherSystem=Standard
[WeatherSync]
; Sync game clock to your real-life location (needs API key + location)
RealLifeTimeSyncEnabled=false
[AlwaysOnUI]
AlwaysOnUIX=1720
AlwaysOnUIY=216
AlwaysOnUIScale=1
[Umbrellas]
EnableUmbrellas=true
UmbrellaChance=50
```
### Requirements
- RAGENativeUI 1.9.3 or newer
- The `dw_weather.ytd` texture pack must be installed so weather icons can show
Short Description
AI disclosure
The author has disclosed that AI tools were used in creating the following aspects of this file:
- Mod and Mod Content (Moderate)
Used to bug fix things and strengthen the UI to make it look like an actual forecast rather than a baby pooping on your screen
@Scorpionfam for the thumbnail
@HeyPalu for the on screen textures
Krazy Manuel for the conversion chart
@lepoisson for the photos and beta testing
@dstickman for helping with beta testing
@BlueLine Vibes for making a showcase video and providing the discord as a platform to help beta test (Thank you all the beta testers in the discord!).
@khorio for the coding help with time and API integration
@Echooo for weather transition code
Officer 034 for the Weathers.xml idea
Recommended Comments
Create an account or sign in to comment