RandomWeather Plugin 0.1

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

  1. LokiD

    LokiD Registered

    Joined:
    May 3, 2017
    Messages:
    1,262
    Likes Received:
    1,177
    so just tried this mod.. Set weather to sunny all slots at 0 C (just to see if plugin worked)
    In game I had a wet qualy and in race it went from dry (20c) to light rain stopped then light rain before drying our for the race finish!! whoa!!! what fun...


    Brings a whole different element to rf2 offline. This is a must for S397 to implement and as it seems can be done!!
     
    Last edited: May 4, 2019
    Corgan and mr.Sw1tchblade like this.
  2. LokiD

    LokiD Registered

    Joined:
    May 3, 2017
    Messages:
    1,262
    Likes Received:
    1,177
    The fact that the visual weather slots don't depict the random weather (just shows 5 slots of sunny at 0C) doesn't give anything away, so its unpredictable... how weather should be.

    For me this is the most important mod I this whole forum.!
     
  3. LokiD

    LokiD Registered

    Joined:
    May 3, 2017
    Messages:
    1,262
    Likes Received:
    1,177
    Has anyone had it go full clear skies to cloud or visversa? Basically have you seen the clouds fully disappear.

    @palm3r
     
  4. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    7,362
    Likes Received:
    3,066
    Other plugins have suggested setting the weather to cloudy (instead of sunny) to avoid some strange cloud switching. I could never get to the bottom of it when making a weather generator for league use but that might be worth a go.
     
  5. 1frey

    1frey Registered

    Joined:
    Aug 9, 2017
    Messages:
    8
    Likes Received:
    0
    Hi @palm3r,

    Thanks for your plugin.

    One question coz iam also an developer.
    Where can i find the plugin api documentation? where to you read about the interface?

    Thanks
     
  6. MaD_King

    MaD_King Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,825
    Likes Received:
    578
  7. 1frey

    1frey Registered

    Joined:
    Aug 9, 2017
    Messages:
    8
    Likes Received:
    0
  8. MaD_King

    MaD_King Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,825
    Likes Received:
    578
    The PDF above the source/example is not enough?
     
  9. 1frey

    1frey Registered

    Joined:
    Aug 9, 2017
    Messages:
    8
    Likes Received:
    0
    Its not saying much about available c_structs (the data structures provided by rF2 where game data is stored that you can read and write as an developer).
    So for example i have no idea how the data scrtuct is named where i can set the weather.
    An api reference would be a overview of all available functions and data.
    So i think i have to check out the code of those two example plugins.. and just learn.
    But thank you MaD_King.
     
  10. MaD_King

    MaD_King Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,825
    Likes Received:
    578
    Perhaps this can help a bit more?
    https://forum.studio-397.com/index.php?threads/tutorial-send-udp-trame-from-rf2-plugin.44285/
     
  11. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    7,362
    Likes Received:
    3,066
    @1frey the example code shows the available structures and functions that are called by the game. There are limitations, but what's there is quite self explanatory.
     
  12. M700N

    M700N Registered

    Joined:
    Dec 6, 2019
    Messages:
    9
    Likes Received:
    10
    Hi all,

    I am struggling with the RandomWeather.ini configuration. Please can someone advise me how to have it set so it is sunny for part of the session, cloudy for part and rains a tiny bit in-between? I have a 60 minute practice, 30 minute qualify and 15 minute race. This is my current config;

    [weather]
    event_duration = 105
    rain_chance = 10
    min_air_temp = 15
    max_air_temp = 25

    [cloud]
    zero = 0.25
    amplitude = 0.75
    period = 900
    octave = 2
    min = 0
    max = 1
    expression = cloud(T) + (wind_speed(T-30) / 2)

    [rain]
    zero = 0
    amplitude = 0.5
    period = 60
    octave = 4
    min = 0
    max = 1
    expression = rain(T) + (cloud(T-30) / 2)

    [wind_speed]
    zero = 0.25
    amplitude = 0.75
    period = 1200
    octave = 8
    min = 0
    max = 1
    expression = wind_speed(T)

    [air_temp]
    zero = 0
    amplitude = 1
    period = 43200
    octave = 1
    min = -1
    max = 1
    expression = air_temp(T) - (cloud(T) / 4) - (rain(T) / 4)

    Thanks in advance.
     
  13. atomed

    atomed Registered

    Joined:
    Jul 9, 2019
    Messages:
    206
    Likes Received:
    113
    Did the plugin stopped working? No matter what weather I choose it always rains.
     

Share This Page