[REL] rFactor2 Weather Tool

@costamesa: Looks like that XML isn't valid. The </Location> tag should be at the end, not at the beginning. (Unless it's an excerpt from a bigger file of course)

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...
 
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:
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?
 
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:
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:
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.
 
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.
 
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.
 
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.DirectoryNotFoundException: Could not find a part of the path 'E:\games\RF2 data\UserData\player\Settings\Vlm_Sebring_12H\'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileSystemEnumerableIterator`1.CommonInit()
at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler)
at System.IO.Directory.EnumerateFiles(String path, String searchPattern)
at rFactor2WorldWeather.Form1.initWeatherPanel()
at rFactor2WorldWeather.Form1.cbCircuit_SelectedIndexChanged(Object sender, EventArgs e)
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
at System.Windows.Forms.ComboBox.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.296 (RTMGDR.030319-2900)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
rFactor2WorldWeather
Assembly Version: 1.0.4.0
Win32 Version: 1.0.4
CodeBase: file:///E:/games/RF2%20data/rFactor2WorldWeather.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1002 built by: RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1001 built by: RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1001 built by: RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.233 built by: RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

When track is not installed an error appears like this. Works fine so far otherwise :)
 
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.
 
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.

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

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).
 
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

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>
 
Back
Top