Jump to content

WeatherPlugin


andre

Recommended Posts

WeatherPlugin by Stefan_L_01

- works on x64 only
- works on dx9 dx11, dedicated and offline applications (as far as i could test)
- supports real weather, read the readme for more info
- You may need vs2015 redistributable (vc140 redist). .Net version is 4.5.2

Q&A:
Q: Can the plugin set the current time of the track?
A: No, the game internal Interface does not allow to set set time
Q: can the Plugin set the track temperature?
A: No, the game internal Interface does not allow to set track temperature, and currently it it said to have no meaning anyway
Q: what weather provider are supported?
A: Darksky, OpenWeatherMap and for legacy reasons wunderground where free weather data access is not possible anymore
Q: what do I need to do with the download???
A: read the readme in the zip, and get an free API key (which offers usually least but sufficient access to weather data) from Darksky or OpenWeatherMap

BR
Stefan

current: V1.11a

 

Guide from Corti

First. Install plugin & configure the server

- Copy rf2WeatherPlugin.dll to ...\rFactor 2\Bin64\Plugins\
- Copy rF2GeoData.xml to c:\Users\User\AppData(hidden folder)\Roaming\rF2WeatherPlugin\
- Copy rf2WeatherClient.exe and Ionic.Zlib.dll ...\rFactor 2\Weather client\ (in my case) for example
- launch dedicated server...close
- open "player" folder (dedicated server)
- open "CustomPluginVariable.JSON" file, lines should appear:
"rf2WeatherPlugin.dll":{
" Enabled":1,
"UID":0
},

If the section does not exist, you are missing the runtimes of the rf2WeatherPlugin.dll,
which if I am not mistaken are the vc 140 redistributable - Visual C ++ Redistributable for Visual Studio 2015
If Enabled = 0 appears, change it to 1
The UID is the identifier of the rF2 server. Each server must have a different number,
so that the program knows to which rF2 server it should send the data.
To the first server you put UID = 0, to the second UID = 1 ...

Second. now set up the program
1. Select "Store settings to XML"
2. Server: It is the IP of the pc where you have the rF2 server.
If it is on the same pc as the exe you leave the point.
3. UID: the same as in the "CustomPluginVariables.JSON"
4. Connect button for manual method
5. Select "Auto-connect" (recommended)
6. Select "live"
7. API: OpenWeatherMap
8. Log: disabled (optional)
9. API KEY: put your personal & untransferable API KEY
10. Store: to save the KEY API in the xml file and you don't have to write every time the program starts
11. Lat & Lon: Latitude and longitude (Better the position of the station closest to the circuit)
12. AutoSet: Disabled
13. Rain mod: 100% (?)
14. Rain Limit: 30% (To limit the amount of rain)
15. Toff: 0% (?)
16. dTime: 3 (better)

1.jpg.d7e58c48a050a63d437e0301bedcd990.jpg

 

 

Example to find out the coordinates of Canadian Tire Motorsport:
- We look for the location of the circuit: Bowmanville

2.thumb.jpg.f14cd2e178c30cac53a78ed8f54839a2.jpg

 

- We get the location of the stations

3.thumb.jpg.ac4f1b856958d0d74154f3c01b3d9b10.jpg

 

- We copy the coordinates and search them on google maps
- we locate the circuit, in this case we see that it is north of the selected station.

4.thumb.jpg.13c1f311623f8ec4c793339aee17c526.jpg

 

If we want to obtain more precise data, we look for a station that is closer. In the example Manvers and Tyrone are closer.

5.thumb.jpg.9e493708afbb0e4ed7df40605d88e075.jpg

 

Select one of them, Tyrone and those are the coordinates that I will use

6.jpg.9d90168e3cfb74fa4100331125f46348.jpg

 

We have everything ready, now we start the server and everything should work

7.jpg.abd9126945b87837e0c5bb37356126b0.jpg  8.jpg.58b4b4508cb07c03d6cc6de5e8a73b34.jpg

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Forum Statistics

    939
    Total Topics
    15.2k
    Total Posts

Living Legends

mad_dog, the fastest sim driver in the world

PC Games for free

UNREAL.jpg.06a44fa7bc9a0e74a2fd28f90ad76a27.jpg

Top 5 PC games

×
×
  • Create New...