[REL] rFactor2 Weather Tool

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

  1. JuanitoRPM

    JuanitoRPM Registered

    Joined:
    Nov 1, 2010
    Messages:
    127
    Likes Received:
    21
  2. costamesa

    costamesa Registered

    Joined:
    Jan 12, 2012
    Messages:
    108
    Likes Received:
    0
    But that tag exists at the begining of every track in XML.. It doesnt work when i add it to the end or even delete it either...
     
  3. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    Hello,
    Could you copy the whole XML file here or send me a message and i will tell you what's wrong in your XML

    Thank
     
  4. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    V1.0.3.0 available using the same download link

    As the game seems to allow more the 5 meteo segment, i have added a text field where you can define how many segment do you want.

    If you want to be able to edit the meteo later, using the ingame editor, please use only 5 segments.
     
    Last edited by a moderator: Mar 31, 2013
  5. Jorgen

    Jorgen Registered

    Joined:
    Oct 5, 2010
    Messages:
    558
    Likes Received:
    3
    Gerald, can you specify exactly what this utility requires in terms of files and folders from the rFactor2 installation? I'm trying to run it on a machine where I do not have the game installed but it keeps crashing, so I guess it's trying to read things from the rF2 installation?
     
  6. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    Hello,
    As described in the readme. You must specify the rFactor2 data path (rFactor2 user directory) in the game xml tag of the ConfigWeather.xml file.

    So if you want to launch the tool from a computer without the rFactor2 game installed, you need to create a disk alias to the computer having rFactor2.

    And in case your question is to create a fake installation, here the asked information:
    The game read the PLR file of the profile, and the .wet file of the selected ciruit (the first one at launch)
     
    Last edited by a moderator: Apr 1, 2013
  7. BrokkelPiloot

    BrokkelPiloot Registered

    Joined:
    May 19, 2012
    Messages:
    188
    Likes Received:
    1
    Great tool. Added Malaysia and LRP to the XML file. Can't seem to upload the XML file itself because the upload tool from the forum won't let me (invalid file error).
    View attachment 7025
     
    Last edited by a moderator: Apr 1, 2013
  8. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    Thank you, i include this 2 circuit in the xml provided with the tool, so it will be available in the next tool version.
     
  9. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    V1.0.4.0
    - Malaysia and LRP added (Thanks to BrokkelPiloot)
    - Fix a crash when saving meteo on a circuit where some directories does not exists.
     
  10. Nazirull Safry Paijo

    Nazirull Safry Paijo Registered

    Joined:
    May 28, 2011
    Messages:
    1,417
    Likes Received:
    35
    oh now nais is it if the track u race follows the wheather outside ur window!
     
  11. PRC Steve

    PRC Steve Registered

    Joined:
    Sep 27, 2012
    Messages:
    1,301
    Likes Received:
    11
    This is a cool app. If users create XML files for certain tracks it would be really good if they were shared on this thread or in a dedicated one. Rather like HDR profiles that are shared. Brilliant work and another reason rF2 is the leader of Simulated Racing.
     
  12. MerlinC

    MerlinC Registered

    Joined:
    Nov 3, 2012
    Messages:
    282
    Likes Received:
    3
    Tried to use the plugin as described in the readme - but when I try to start the rFactor2WorldWeather config out of the rFactor2 installation directory no application starts?!

    P.S.: In the processes tab of the windows task manager rFactor2WorldWeather shows up temporarily.

    Microsoft .NET Framework 4.5 including German language Pack is installed as well.

    Please advise as needed.
     
  13. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    Did you put the .exe and the .xml in the same folder?
     
  14. Woodee

    Woodee Registered

    Joined:
    Oct 4, 2010
    Messages:
    4,010
    Likes Received:
    1,071
    When track is not installed an error appears like this. Works fine so far otherwise :)
     
  15. Woodee

    Woodee Registered

    Joined:
    Oct 4, 2010
    Messages:
    4,010
    Likes Received:
    1,071
    What would be cool is if this app was included in the launcher and loaded on startup, populating 7 days worth of weather for the tracks installed. Optional otherwise it would take a while with 100 tracks installed ;) Maybe it being an option in the Race settings UI? ;)

    Getting back on topic. Could you make it so times for Practice, qualifying and race are all on the same page, as flicking through one to the other defaults back to 9 am.
     
  16. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    V1.0.5 Available

    Now the start and duration of each session is loaded from PLR file at startup, then the application memorize the current values of each session, so switching from a session to another and go back, will not reload time and duration from PLR file, but from memorized value.
     
    Last edited by a moderator: Apr 5, 2013
  17. MerlinC

    MerlinC Registered

    Joined:
    Nov 3, 2012
    Messages:
    282
    Likes Received:
    3
    Yes the EXE file and the xml file are in the same folder - aren't there supposed to be all in the rFactor directory?
     
  18. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    If you do not put them in the rfactor data directory, you must edit the xml file and change the dataPath attribut of the game tag.
     
  19. MerlinC

    MerlinC Registered

    Joined:
    Nov 3, 2012
    Messages:
    282
    Likes Received:
    3
    Well I copied all files to the rFactor data directory (same where the "Launch rFactor.EXE" is located). Still not working and meanwhile I figured out that the process seems to cause an exception.

    https://lh4.googleusercontent.com/-G44gMG6BQ4A/UV8ZgmmS0_I/AAAAAAAAAC0/yo3exkV0nwU/s800/Fehlermeldung_rFactor2WorldWeather%2520Tool.jpg

    P.S.: If I move the files to a different plugin there is at least a message saying that the xml file does not reference a rFactor2 data directory - thus the directory should be o.k.

    Is there some specific information that needs to be in the ./UserData/Config.ini file? Or do I have to have certain mods or components installed (currently majority is F1 mods).
     
  20. costamesa

    costamesa Registered

    Joined:
    Jan 12, 2012
    Messages:
    108
    Likes Received:
    0
    Sorry for late reply...Here it is..

    <?xml version="1.0" encoding="utf-8" ?>
    <WeatherConfig>
    <Game dataPath="."/>

    <!-- Proxy (optionnal), uncomment the TAG and set your credential if not needed
    <Proxy user=".." password=".." domain=".." />
    -->

    <Providers>
    <!-- Provider: TheWeatherChanel
    This provider need only one parameter:
    Location = Code used in the following URL (ex: UKXX0817 for Croft - Darlington, United Kingdom)
    http://uk.weather.com/weather/almanacHourly-<Location>:1:SP?day=<Delay>

    The Delay is computed by the application (number of day before today)
    -->
    <Provider id="1" class="TheWeatherChanel"/>


    <!-- Provider: 7Timer
    This provider need two parameter:
    Longitude = the longitude of the place (ex: -1.557478 for Croft circuit)
    Latitude = the latitude of the place (ex: 54.455486 for Croft circuit)
    http://www.7timer.com/v4/bin/api.pl?lon=<Longitude>&lat=<Latitude>&product=civil&unit=Metric&output=xml
    -->
    <Provider id="2" class="SevenTimer"/>


    </Providers>
    <Profiles>
    <Profile id="1" name="Player" path="player"/>
    </Profiles>
    <Locations>
    <!-- inProfiles: list of profile id where this circuit is available (ex: "1,2,3" for profile id 1, 2 and 3) -->
    <Location name="Croft" inProfiles="1">
    <Providers>
    <Provider id="1">
    <Parameters>
    <Parameter name="Location" value="UKXX0817"/>
    </Parameters>
    </Provider>
    <Provider id="2">
    <Parameters>
    <Parameter name="Longitude" value="-1.557478"/>
    <Parameter name="Latitude" value="54.455486"/>
    </Parameters>
    </Provider>
    </Providers>
    <Directories>
    <Directory path="Croft"/>
    </Directories>
    </Location>
    <Location name="Brianza" inProfiles="1">
    <Providers>
    <Provider id="1">
    <Parameters>
    <Parameter name="Location" value="ITXX0049"/>
    </Parameters>
    </Provider>
    </Providers>
    <Directories>
    <Directory path="Brianza10K"/>
    <Directory path="Brianza1966"/>
    </Directories>
    </Location>
    <Location name="Poznan" inProfiles="1">
    <Providers>
    <Provider id="1">
    <Parameters>
    <Parameter name="Location" value="PLXX0040"/>
    </Parameters>
    </Provider>
    <Provider id="2">
    <Parameters>
    <Parameter name="Longitude" value="16.805456"/>
    <Parameter name="Latitude" value="52.418126"/>
    </Parameters>
    </Provider>
    </Providers>
    <Directories>
    <Directory path="Poznan_Trackday"/>
    <Directory path="Poznan_Raceweekend"/>
    </Directories>
    </Location>
    <Location name="Sebring" inProfiles="1">
    <Providers>
    <Provider id="1">
    <Parameters>
    <Parameter name="Location" value="USFL0451"/>
    </Parameters>
    </Provider>
    <Provider id="2">
    <Parameters>
    <Parameter name="Longitude" value="-81.343117"/>
    <Parameter name="Latitude" value="27.455922"/>
    </Parameters>
    </Provider>
    </Providers>
    <Directories>
    <Directory path="Vlm_Sebring_12H"/>
    <Directory path="Vlm_Sebring_Clb"/>
    <Directory path="Vlm_Sebring_Mdf"/>
    </Directories>
    </Location>
    <Location name="Spa-Francorchamps" inProfiles="1">
    <Providers>
    <Provider id="1">
    <Parameters>
    <Parameter name="Location" value="BEXX0413"/>
    </Parameters>
    </Provider>
    </Providers>
    <Directories>
    <Directory path="Spa-Francorchamps"/>
    </Directories>
    </Location>
    <Location name="Malaysia" inProfiles="1">
    <Providers>
    <Provider id="1">
    <Parameters>
    <Parameter name="Location" value="MYXX0031"/>
    </Parameters>
    </Provider>
    <Provider id="2">
    <Parameters>
    <Parameter name="Longitude" value="101.73117"/>
    <Parameter name="Latitude" value="2.76131"/>
    </Parameters>
    </Provider>
    </Providers>
    <Directories>
    <Directory path="Malaysian_GP"/>
    <Directory path="Malaysia_NLoop"/>
    <Directory path="Malaysia_SLoop"/>
    </Directories>
    </Location>
    <Location name="Lime Rock Park" inProfiles="1">
    <Providers>
    <Provider id="1">
    <Parameters>
    <Parameter name="Location" value="USCT0105"/>
    </Parameters>
    </Provider>
    <Provider id="2">
    <Parameters>
    <Parameter name="Longitude" value="-73.42988"/>
    <Parameter name="Latitude" value="41.89958"/>
    </Parameters>
    </Provider>
    </Providers>
    <Directories>
    <Directory path="Lrpallchicanes"/>
    <Directory path="Lrpnochicanes"/>
    <Directory path="LRPUphillChicane"/>
    <Directory path="Lrpwestbendchicane"/>
    </Directories>
    </Location>
    <Location name="Canberra400" inProfiles="1">
    <Providers>
    <Provider id="1">
    <Parameters>
    <Parameter name="Location" value="ASXX0023"/>
    </Parameters>
    </Provider>
    </Providers>
    <Directories>
    <Directory path="Canberra400"/>
    </Directories>
    </Locations>
    </WeatherConfig>
     

Share This Page