RandomWeather Plugin 0.1

Discussion in 'Plugins' started by palm3r, Jul 26, 2015.

  1. palm3r

    palm3r Registered

    Joined:
    Jan 11, 2012
    Messages:
    37
    Likes Received:
    11
    Overview

    This plugin provides highly configurable realistic random weather to rFactor2.
    The amount of clouds and rain, wind speed, air temperature will continuously change throughout all sessions.



    Requirements

    Visual C++ Redistributable for Visual Studio 2015

    Download

    Latest version: RandomWeather_v0.1.zip

    Install

    Extract zip contents into rFactor2 folder like follows.
    • rFactor2\Bin32\Plugins\RandomWeather.dll
    • rFactor2\Bin64\Plugins\RandomWeather.dll
    • rFactor2\Plugins\RandomWeather\RandomWeather.ini
    IMPORTANT!
    YOU HAVE TO SELECT "OVERCAST" OR "RAINING" IN "SIMPLE WEATHER" SETTING IN SESSION SETTINGS.
    IF YOU SELECT OTHER SETTING, PLUGIN MAY NOT WORK PROPERLY.


    Configuration (RandomWeather.ini)

    event_duration (default = 60, minutes)
    Set rough duration of race events in your server or client.

    rain_chance (default = 30, percentage)
    Set probability of rain in percentage you want.

    min_air_temp (default = 20)
    max_air_temp (default = 30)
    Set air temperature range in degrees Celsius.
     
    Last edited by a moderator: Oct 9, 2015
    Alwin-R09, yashiman, atomed and 3 others like this.
  2. Euskotracks

    Euskotracks Registered

    Joined:
    Nov 29, 2013
    Messages:
    1,092
    Likes Received:
    191
    Interesting and necessary plugin.
    Thanks for your work. I'll download it and try it when I have some time.

    I wonder how can it be fine tuned to modify the likelihood that it rains, etc Random can be interpreted differently. For example it wouldn't be the same random weather for laguna seca or spa.

    Maybe it is explained within some reade.txt since as said I haven't downloaded it yet. If not it would be an interesting option so that race admins can adjust it according to their criteria.

    Enviado desde mi GT-I9505 mediante Tapatalk
     
  3. palm3r

    palm3r Registered

    Joined:
    Jan 11, 2012
    Messages:
    37
    Likes Received:
    11
    Hi Euskotracks.

    This plugin supports only one configuration at this moment.
    For example if you want to switch configuration between Spa and Laguna seca, you need to prepare RandomWeather-Spa.ini and RandomWeather-Lagunaseca.ini, and copy one of them to RandomWeather.ini.
    These all must be done manually.

    I will consider to load track-specific file automatically.
    Thanks.
     
  4. Ferny76

    Ferny76 Registered

    Joined:
    Sep 16, 2015
    Messages:
    32
    Likes Received:
    68
    Great job palm3r

    I tried it offline and in principle seems to work well.
    The only thing is that we can not climb the Server Publico, this is a great idea that could be implemented in any ISI next Build.
     
  5. ricardoferreira

    ricardoferreira Registered

    Joined:
    Nov 17, 2014
    Messages:
    33
    Likes Received:
    5
    Is possible to create the water density ? that is very important.
     
  6. Gupster

    Gupster Registered

    Joined:
    May 19, 2013
    Messages:
    410
    Likes Received:
    27
    Thank you palm3r! I've been wishing for this for years. I noticed you need to have the weather in single player on scripted for it to work.
    :cool:
     
  7. Marc Collins

    Marc Collins Registered

    Joined:
    Jan 11, 2012
    Messages:
    3,159
    Likes Received:
    162
    Yes, this is desperately needed. I hope it will progress to include the corresponding and appropriate humidity and be configurable by track since the weather at various tracks varies dramatically from one to another as does the range of weather at a particular track (some full four seasons and others much more consistent).

    A very simple UI would suffice since this should be a set-once and forget exercise for each track based on whatever the user prefers (total realism or not). It would be nice if the date of the track was easily known, too. Can that be pulled out of rF2 by a plug-in, or do we need to pester ISI to add it to the UI somewhere?
     
  8. AceLain

    AceLain Registered

    Joined:
    Jan 13, 2012
    Messages:
    551
    Likes Received:
    43
    Does it work for a dedi server too ?
     
  9. palm3r

    palm3r Registered

    Joined:
    Jan 11, 2012
    Messages:
    37
    Likes Received:
    11
    Sorry I'm not good at English.
    What do you mean by "water density"?
    Could you explain more easily?
    I have wrote this reply using google translate. lol
     
  10. palm3r

    palm3r Registered

    Joined:
    Jan 11, 2012
    Messages:
    37
    Likes Received:
    11
    Yes :)
     
  11. palm3r

    palm3r Registered

    Joined:
    Jan 11, 2012
    Messages:
    37
    Likes Received:
    11
    Thank you, Gupster.

    I checked how weather changes depends weather script settings.
    It seems clouds are not appear when SKY is set to Clear, but it appears suddenly when rainfall starts.
    I don't understand yet about what rain and cloud amount are how much limited by choice of SKY setting.

    So I recommend you to choose "Overcast" or "Raining" to SIMPLE WEATHER setting.
    (or choose settings other than Clear on Scripted)
     
  12. palm3r

    palm3r Registered

    Joined:
    Jan 11, 2012
    Messages:
    37
    Likes Received:
    11
    Hi Marc.

    Unfortunately, Humidity changing is not support in rF2 plugin now.
    And I hope to add track specific settings, but plugin can't know exact track (folder) name now.
    However someday, I think these problems will fixed by ISI. (http://isiforums.net/f/showthread.php/24812-Track-name-from-plugin?p=376513&viewfull=1#post376513)

    There is already simple settings UI for plugin in rF2 options.
    But it is only possible to enable or disable plugins.

    I have made already some prototype of UI plugin.
    (It displays similar widgets that Assetto Corsa has)
    I'm going to make to be able to change weather settings from UI that displayed by that plugin, but I don't have much time to do it now.

    I think ISI will add some UI for plugin settings in future build.
     
  13. Gupster

    Gupster Registered

    Joined:
    May 19, 2013
    Messages:
    410
    Likes Received:
    27
    To make it work on a dedicated server do I simply install on the server and script the weather? I'm really enjoying the random weather in single player and want to use this in some fun races.
    Thanks again!

    Edit: You should post this in the addons section in Plugins/Other so users who don't check the modding threads know about this great plugin.
     
  14. palm3r

    palm3r Registered

    Joined:
    Jan 11, 2012
    Messages:
    37
    Likes Received:
    11
    Sorry for late reply.
    Just simply install when you use this on dedicated server.
    And I'll post to "Download/Other" forum when publish next release.
     
  15. Spinelli

    Spinelli Banned

    Joined:
    Jan 28, 2012
    Messages:
    5,290
    Likes Received:
    32
    Question...
    Is each session still based on the same 5 pre-selected weather settings like normal and therefore this plugin (as-well as any other weather plugins) simply change those 5 pre-sets for each session instead of us doing it ourselves? Or do these plugins truly bypass the "vanilla" system?
     
    Last edited by a moderator: Nov 15, 2015
  16. palm3r

    palm3r Registered

    Joined:
    Jan 11, 2012
    Messages:
    37
    Likes Received:
    11
    Bypass vanilla system.
    This plugin doesn't use in-game weather settings.
    Clouds amount will completely change randomly in setting range.
    Air temperature and wind speed also change randomly, and it affect clouds amount.
    Rain amount will also change randomly, but max amount is limited by clouds amount.
     
  17. Spinelli

    Spinelli Banned

    Joined:
    Jan 28, 2012
    Messages:
    5,290
    Likes Received:
    32
    That's awesome! Thanks!
     
  18. Gupster

    Gupster Registered

    Joined:
    May 19, 2013
    Messages:
    410
    Likes Received:
    27
    FYI for anyone following this plugin, it works with the dx11 beta.
    Changeable weather is high on my list of sim coolness heh!
     
    LokiD likes this.
  19. LokiD

    LokiD Registered

    Joined:
    May 3, 2017
    Messages:
    1,282
    Likes Received:
    1,216
    excellent so this works on all s397 tracks. ?
     
  20. Gupster

    Gupster Registered

    Joined:
    May 19, 2013
    Messages:
    410
    Likes Received:
    27
    Yes, it works on all tracks if you set the weather to scripted.
     

Share This Page