Thanks Stefan_L_01 for excellent plugin. Now WU API gone, it's a godsend I have 2 questions though: 1. Would it be possible to have all files created by rf2WeatherClient.exe in same directory as exe? Now files are all over the system: config xml with exe, logs in Users\All Users (which I don't even have access), and Track Coordinates in Users\"user"\Roaming. Very chaotic and not admin friendly. 2. What is a correct way to set weather in rF2 Dedicated? http://prntscr.com/n0hjn0
Since yesterday the plugin does not work, the message TIMEOUT OPERATION appears continuously. Both with darksky and with openweathermap. Is this a problem with the new rF2 update?
Thanks, I solved. With the update, rfactor2 changed ui ID in weather plugin from 5 to 0. I changed this value on weather client GUI, and now it work.
Plugin working in the IsR, 2 servers using the weather plugin and everything ok. Thanks to Lagg for his help and his time . And of course many thanks to Stefan for his great work. Some queries soon regards, Corti.
This app was unforrtunality not designed from scratch as a multi-doc software, yo currently those file distribution is required. Maybe next winter redesign, in case s397 does not deliver its announced internal weather engine meanwhile...So yeah most likely redesign lol
I ll have look sooner or later. Did you run client exe on same pc as the rf2 Installation? Auto geo lookup based on track coords can not work if Client connects by lan as it must access and read files from rf2, and I did not implement file sharing or file/ stream transfer yet. Heck and I dont want to do so, the Environment data of Plugin has 7 strings left, 3 used, s397 give me the coords in csv in 4 th string, saves me hundred lines of code, unpacking of mas files and so much other BS to get 2 f*** values
It also happened here. I think that as the file "rF2GeoData.xml" is common, if you have several servers with the weather application running, only the application you want to use to write to the file can be open.
The server is running rF2 dedicated and I put the rf2WeatherClient.exe in the 64bit plugin folder (C:\Steam\rfactor2-dedicated\Bin64) We only run the one server.
Are the Store and Log directories hardcoded? In Windows Datacenter 2016, by default, we don't have an "All Users". When I hover over Log and Store they are showing "/Users/All Users/rF2WeatherPlugin". This folder will not exist. Is it possible to set these to the path of the rF2WeatherClient.exe?
Well I built a new server today, as the old one broke. Thing is I can't work out why the weather plugin won't connect? UID is 0 in the plugins file
It's not necessary With the dot is OK. Check the "Store settings to XML" and the settings will ve stired in the rF2Client.exe folder. @LokiD , it works with the last build
It´s not connected (connected check missing). Is the plugin set ON in the dedicated server plugin config (json)? In the profile folder that is loaded for the dedi? What ID is set there in the plugin config json for the weather plugin? Is no other instance of rf2 (game or dedi) running at same time with same ID to connect?
Only 1 instance of the dedicated server running. I added the plugin text to the CustomPluginVariables.json file in the dedicated server player directory. Just seems odd as I had this working before.
@Loki: Realtime. Also No look ahead or "replay" of past scenarios. @Chalki: exit dedi, set in the json a 9 to the UID and restart the dedi. Set a 9 in the client. Does it Connect? If not: Download https://docs.microsoft.com/en-us/sysinternals/downloads/pipelist And check whether you can find a named pipe with name rf2weather...9, something like this. Access to named pipes must be allowed on your system, but I could not tell you at the Moment how to forbid/allow them..