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
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: