[REL] rFactor2 Weather Tool

Discussion in 'Other' started by Gerald Jacobson, Mar 30, 2013.

  1. TheLeadWolf

    TheLeadWolf Registered

    Joined:
    Apr 13, 2016
    Messages:
    100
    Likes Received:
    6
    Ah sorry, for delay I thought I am subscribed to this thread.

    Ok, so for single player game case there are 2 components: rF2 plugin (for 64bit rF2 WeatherControlPlugin_x64.dll) and realtime server (program that gets data from Web) WeatherServer.exe.

    * From plugin readme:
    Copy the WeatherControlPlugin.dll (32bits) in the <rF2 Core>\Bin32\Plugins and WeatherControlPlugin_x64.dll (64bits) in the <rF2 Core>\Bin64\Plugins directory
    Copy WeatherControlPlugin.ini in the <rF2 Data>\UserData\<profile> directory (i.e. "C:\Users\Amphiprion\rFactor2Srv\Data\UserData\player")
    You do not need to change anything in .ini, for SP it is good as is.

    * For WeatherServer.exe, in .ini:
    // Weather Server ini file
    [RFACTOR2]
    // The directory containing the "core" directory
    CorePath=C:\Program Files (x86)\rFactor2
    // The directory where GDB/AIW will be extracted
    GDBExtractPath=C:\Program Files (x86)\rFactor2\Plugins\TrackMap\Tracks

    Point directories to your locations. Usually somewhere under Steam\steamApps\common etc.

    * start weatherserver.exe and put dev key in. Allow Server through firewall if you get prompts.

    That's it. Now, keep server running. (Note: you don't need to click "Start Webserver" for SP).
    To verify it works:

    * In rF2 options, check if you see WeatherControlPuglin listed in Options/plugins.

    * Start a session, start race. If you have default settings you shall see plugin listed as started.

    * Pause game, alt+tab to check server program UI, you should see location loaded and real weather displayed.

    Hope this helps.

    Note, I am not at rF2 computer atm. So, there might be inaccuracies in my wording, but basic flow is that before running rF2, you need to launch (one more:)) external tool. I might check details this weekend if you are still stuck. This was quite confusing tool to figure out, notably that one doesn't need Static_HMI to get weather as is now (per my understanding). This is a real game changer tool for rF2 (Gerald, you Rock). Too bad it's no longer developed, but it mostly works.

    BTW, does anyone care to explain what "Collect Radar Image" does, does it build cloud map for game, or?
     
    Last edited by a moderator: Sep 29, 2016
  2. Karei

    Karei Registered

    Joined:
    Jun 10, 2016
    Messages:
    93
    Likes Received:
    73
    It's working now! I find out that the culprit was... my surname. In fact my last name ends with "è", which is not recognized by the plugin.
    Thank you very much for the explanation, it really really helped.
    I don't know if it's new information, but I've also found out that if you set "scripted" weather on the menu, the plugin only adjust the temperature. But if you set it on standard, the sky (and rain) will change.
     
    Last edited by a moderator: Sep 30, 2016
  3. TheLeadWolf

    TheLeadWolf Registered

    Joined:
    Apr 13, 2016
    Messages:
    100
    Likes Received:
    6
    Yeah, it's too bad, I can't use č in my surname in rF2 either :) Small annoyances. Glad you got it working.
     
  4. javirulo007

    javirulo007 Registered

    Joined:
    Aug 24, 2013
    Messages:
    74
    Likes Received:
    0
    I can not start the weatherserver.exe
    I tried to run with admin privilegs. It is located directly in a folder at c:\
    When I click it seems the weatherserver to start, the clock start to spin, but in 2 seconds stops and appears again the white arrow of the mouse.
    Any idea? I am quite sure that it should be a nosense error

    EDIT
    I don't know how, but now it is working
     
    Last edited by a moderator: Oct 12, 2016
  5. Carlos Carvalho

    Carlos Carvalho Registered

    Joined:
    Oct 19, 2015
    Messages:
    23
    Likes Received:
    2
    I noticed that when using this tool and realweather from weatherunderground the track temperature is frozen at 29degrees. Is there a way to correct this besides setting a manual track temperature?

    Thanks in advance
     
  6. Matti1291

    Matti1291 Registered

    Joined:
    Mar 3, 2013
    Messages:
    110
    Likes Received:
    2
    You can, set the air temperature in the session settings when opening the server. The air temperature will be updated because of weather tool, but track temperature will be the same you set for the air.
     
  7. WiZPER

    WiZPER Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,517
    Likes Received:
    186
    That's a current limitation of RF2, not the plugin.
     
  8. TOCA2FREAK

    TOCA2FREAK Registered

    Joined:
    Apr 6, 2011
    Messages:
    936
    Likes Received:
    125
    Weather tool is giving me this message today.

    Code:
    Information: This provider works for earlier date and forecast.
    Lon=-23.6998  Lat=-46.697
    
    Collect 10 days forecast hourly
    Cannot retrieve data from : http://api.wunderground.com/api/12cd1965da5700c6/hourly10day/q/-46.697,-23.6998.json
    Api Key used: XXXXXXXXXXX
    
    Information: This provider works for earlier date and forecast.
    Lon=-23.6998  Lat=-46.697
    
    Collect 10 days forecast hourly
    Cannot retrieve data from : http://api.wunderground.com/api/12cd1965da5700c6/hourly10day/q/-46.697,-23.6998.json
    Api Key used: XXXXXXXXXXX
    
    Information: This provider works for earlier date and forecast.
    Lon=-23.6998  Lat=-46.697
    
    Collect 10 days forecast hourly
    Cannot retrieve data from : http://api.wunderground.com/api/12cd1965da5700c6/hourly10day/q/-46.697,-23.6998.json
    Api Key used: XXXXXXXXXXX
    Anyone else having this problem?
     
  9. jefcam

    jefcam Registered

    Joined:
    Feb 10, 2011
    Messages:
    261
    Likes Received:
    108
  10. Euskotracks

    Euskotracks Registered

    Joined:
    Nov 29, 2013
    Messages:
    1,092
    Likes Received:
    191
    I would go to line 40 of the the xml file and look for the 41st character. And see where is the typo.

    Just a wild guess...

    Enviado desde mi ONE A2001 mediante Tapatalk
     
  11. Wishmaster

    Wishmaster Registered

    Joined:
    Nov 30, 2012
    Messages:
    315
    Likes Received:
    32
    I have problems reciving wrong weather data. Tried different API keys. In other servers with different tracks the weather is correct. Also the location is correct only the transmitted data is wrong. Its always raining even if it should be dry and temp is also a bit off.

    Has anyone an idea?

    https://www.dropbox.com/s/q5axy4wfls0ydff/WrongWeatherData.png?dl=0
     
  12. The Iron Wolf

    The Iron Wolf Registered

    Joined:
    Feb 20, 2016
    Messages:
    984
    Likes Received:
    984
    I've been racing at Spielberg, Austria, and WeatherServer fetches "MostlyCloudyAndRain", but it is not raining when I check weather online (weather.com). Location coordinates seem to be correct, not sure if altitude can mess anything up. It appears like weather is stuck for this location - it has been raining for a week.

    Does anyone know what might be going on? Thanks.
     
  13. Yurich77

    Yurich77 Registered

    Joined:
    Jul 5, 2015
    Messages:
    14
    Likes Received:
    1
    Me too.I don't know how to fix it.
     
  14. TOCA2FREAK

    TOCA2FREAK Registered

    Joined:
    Apr 6, 2011
    Messages:
    936
    Likes Received:
    125
  15. The Iron Wolf

    The Iron Wolf Registered

    Joined:
    Feb 20, 2016
    Messages:
    984
    Likes Received:
    984
    It will not be helpful for you, but I just tested and it works on my computer. I am using weather underground provider only. Did it ever worked on your computer, or something has changed? Does it happen for all tracks (you could try changing coordinates in the .xml). I could send you my WeatherConfig.xml without my API key for you to try if you like.
     
  16. Wishmaster

    Wishmaster Registered

    Joined:
    Nov 30, 2012
    Messages:
    315
    Likes Received:
    32
    I have now i similar issue. Location is correct but when running realtime its 3hours delayed.
     
  17. The Iron Wolf

    The Iron Wolf Registered

    Joined:
    Feb 20, 2016
    Messages:
    984
    Likes Received:
    984
    Which timezone are you in? I suspect there's a bug where with certain timezone/location mix tool reports incorrect weather. I noticed that Spa weather is detected ok, so I hope to use Spa's coordinates for all locations.

    Still, I am curious if anyone else noticed any pattern or workaround. Essential rFactor 2 tool this server is.
     
  18. Wishmaster

    Wishmaster Registered

    Joined:
    Nov 30, 2012
    Messages:
    315
    Likes Received:
    32
    Server is GMT+1 and track is Interlagos which should be GMT-2.
    Ok found my 3hours. But dont know why :D or how to fix this. :(
     
  19. The Iron Wolf

    The Iron Wolf Registered

    Joined:
    Feb 20, 2016
    Messages:
    984
    Likes Received:
    984
    basically, try coordinates of location that works. Really wish Gerald open source this.
     
  20. Wishmaster

    Wishmaster Registered

    Joined:
    Nov 30, 2012
    Messages:
    315
    Likes Received:
    32
    Coordinates are correct. Only Weatherdate has an offset.

    weather.png
     

Share This Page