Track temperature changes when AccessWeather returns true

Discussion in 'Plugins' started by tafkams, Jan 13, 2015.

  1. tafkams

    tafkams Registered

    Joined:
    Jan 13, 2015
    Messages:
    44
    Likes Received:
    8
    Hello,

    i had some strange behaviour when calling InternalsPligin AccessWeather method as i tried to create a weather plugin which should prevent the track from getting too wet.

    Whenever i return true in AccessWeather (even when i change nothing in the WeatherControlInfoV01 parameter) the track temperature changes to 20 degree. I've tried many things but i always get this strange behaviour. At the moment the only thing i do is changing the return value at a specific point from false to true and return it. One second later the track temperature changes as mentioned.

    Can someone help? Is the problem on my side?

    Here is some sample output:

    Game runtime: 52 seconds
    UpdateScoring called
    SessionTime: 44 seconds
    Ambient Temperature: 29
    Track Temperature: 29


    Game runtime: 52 seconds
    AccessWeather called and returned: 0
    SessionTime: 44 seconds
    Temperature: 29


    Game runtime: 53 seconds
    UpdateScoring called
    SessionTime: 45 seconds
    Ambient Temperature: 29
    Track Temperature: 29


    #######################################################################################


    Game runtime: 53 seconds
    AccessWeather called and returned: 1
    SessionTime: 45 seconds
    Temperature: 29
    Change weather:
    Changed return value to true but change no values:
    #######################################################################################


    Game runtime: 54 seconds
    UpdateScoring called
    SessionTime: 46 seconds
    Ambient Temperature: 29
    Track Temperature: 20


    Game runtime: 54 seconds
    AccessWeather called and returned: 0
    SessionTime: 46 seconds
    Temperature: 29

    Greetings
    Alex
     
    Last edited by a moderator: Jan 23, 2015
  2. palm3r

    palm3r Registered

    Joined:
    Jan 11, 2012
    Messages:
    37
    Likes Received:
    10
    My weather plugin (RandomWeather) will get same result.
    I think it's a bug or behaviour of rFactor2 at the moment.
    Plugin can't change track temperature, so I don't know how prevent it.
     

Share This Page