RandomWeather Plugin 0.1

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

  1. argo0

    argo0 Registered

    Joined:
    Jan 22, 2012
    Messages:
    624
    Likes Received:
    8
    Instructions say simple weather has to be set to overcast or raining. Gupster says it has to be set to scripted. Which is it? If it must be set to overcast or raining, that means you can't set the real road. Is that correct? Sorry, but interested in using this some time.
     
  2. Gupster

    Gupster Registered

    Joined:
    May 19, 2013
    Messages:
    402
    Likes Received:
    21
    Before the latest updates it would work if you scripted the weather and set the first window to cloudy, now it seems to work even if the sky is set to clear skies. The best way to tell if it's working is to check the ambient and track temps, they will be different then what the script says.
    Keep in mind it won't rain every session but the temps will vary everytime.
     
  3. palm3r

    palm3r Registered

    Joined:
    Jan 11, 2012
    Messages:
    36
    Likes Received:
    5
    Random weather plugin changed weather, temperature, etc. before DX 11 update, but somehow it did not work due to weather setting of rF2. As far as I have confirmed, setting the weather to Clear means that it will not rain regardless of the plugin's output. In other settings I think it will probably rain.

    Also, the default setting of the plugin sets the rain chance to 30%, but it seems to be too high. Since there is opinion that around 5 to 7 is appropriate, please adjust each until the next update.
    After plugin header for DX11 is released, I will update this plugin after a long time.
     
    taylajee, The Iron Wolf and Gupster like this.
  4. argo0

    argo0 Registered

    Joined:
    Jan 22, 2012
    Messages:
    624
    Likes Received:
    8
    Thanks for these responses, I'll give it a try. Sorry for the delayed reply.
     
  5. AUSTmike

    AUSTmike Registered

    Joined:
    Oct 26, 2015
    Messages:
    10
    Likes Received:
    0
    I cannot get this weather plugin to work i have installed all the .dll files in there proper folders but i dont see the "randomweather .dll" file in the options of the game to turn "On" i also have the microsoft visual 2015 installed!
     
  6. palm3r

    palm3r Registered

    Joined:
    Jan 11, 2012
    Messages:
    36
    Likes Received:
    5
    @AUSTmike
    Do you use plugin on client or server?
    And you have to choose weather as overcast or raining in session settings.
     
  7. LokiD

    LokiD Registered

    Joined:
    May 3, 2017
    Messages:
    513
    Likes Received:
    323
    i really appreciate this plugin.. but i really wish @Marcel Offermans s397 will add a random option somehow.. I dont even care if it brings up silly outcomes its better than nothing.
     
    Schpidie likes this.
  8. Aceking

    Aceking Registered

    Joined:
    Feb 21, 2013
    Messages:
    17
    Likes Received:
    2
    Hi palm......i'am a friend and what AUSTmike is stating is that the RandomWeather.dll does not show up in the game options under the tab "Plugins/Difficulty" so that he is able to activate the RandomWeather to "On". This plugin is used as the "Client".

    Note: He is using Win7 64bit and DX9. His Track Map and Spotter plugins work great and are visible in the Plugins/Difficulty section.
     
    Last edited: Jun 14, 2017
  9. palm3r

    palm3r Registered

    Joined:
    Jan 11, 2012
    Messages:
    36
    Likes Received:
    5
    @LokiD
    Thanks m8, I agree with you. This plugin is very simple, just using 1D perlin noise to simulate pseudo weather (and some tweaks to produce realism). I think S397 devs can easily implement into rF2. but sadly it seems low priority to them.

    @Aceking
    This plugin works with both DX9 and DX11. When plugin doesn't show on options, it means rF2 couldn't find plugin or load failed. Make sure following files exists.
    • rFactor 2\Bin32\Plugins\RandomWeather.dll (required only for 32bit)
    • rFactor 2\Bin64\Plugins\RandomWeather.dll (required only for 64bit)
    • rFactor 2\Plugins\RandomWeather\RandomWeather.ini
    And you can set "-trace=3" (without double quotation) to rFactor 2 Launcher > Settings > Command Line Interface Parameters. It will be helpful as log files are created in "rFactor 2\UserData\Log".
     
  10. AUSTmike

    AUSTmike Registered

    Joined:
    Oct 26, 2015
    Messages:
    10
    Likes Received:
    0
    Palm3r!...I used the "-trace=3" option and created a log file!...where do i look to find the error?...my problem is that the "randomweather.dll file is not showing up in the options of the game!...
     
    Last edited: Jun 16, 2017
  11. palm3r

    palm3r Registered

    Joined:
    Jan 11, 2012
    Messages:
    36
    Likes Received:
    5
    @AUSTmike
    Is there following lines in log file? or different messages?
    9.57s PluginManage 336: Analyzing plugin "RandomWeather.dll"
    9.57s PluginManage 375: Successfully loaded plugin "RandomWeather.dll"​

    If there's no lines about "RandomWeather.dll", you may put dll to wrong place or dll is corrupted.
     
  12. AUSTmike

    AUSTmike Registered

    Joined:
    Oct 26, 2015
    Messages:
    10
    Likes Received:
    0
    Palm3r!...this is the error i found in my log file!

    24.43s PluginManage 81: Could not load plugin Bin64\Plugins\RandomWeather.dll with LoadLibrary(); GetLastError()=126

    i'm guessing the library of some sort is not loading the randomweather.dll file?
     
  13. palm3r

    palm3r Registered

    Joined:
    Jan 11, 2012
    Messages:
    36
    Likes Received:
    5
  14. Gupster

    Gupster Registered

    Joined:
    May 19, 2013
    Messages:
    402
    Likes Received:
    21
    I've lower my rain chance to 23, seems to have slowed the weather cycle :)

    [weather]
    event_duration = 60
    rain_chance = 23
    min_air_temp = 05
    max_air_temp = 40

    Thanks again for this handy plugin.
     
  15. palm3r

    palm3r Registered

    Joined:
    Jan 11, 2012
    Messages:
    36
    Likes Received:
    5
    Thank you too!
     
  16. KyuKyu83

    KyuKyu83 Registered

    Joined:
    Jan 26, 2018
    Messages:
    2
    Likes Received:
    0
    Hi,

    thanks for your plugin. I have tested it on a race at Rouen. In principle it works great because it changes the weather really dynamically and brings a new dimension to racing.
    The only problem i have had is that at times the track got wetter as if it were raining, but the sky was clear or almost clear. I also had raindrops on the windscreen but no actual rain. I set the weather to "cloudy" in the race settings. Any ideas what the problem could be?
     

Share This Page