[REL] WeatherPlugin

Discussion in 'Other' started by Stefan_L_01, Dec 14, 2017.

  1. Davvid

    Davvid Registered

    Joined:
    Feb 11, 2012
    Messages:
    163
    Likes Received:
    31
    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
    [​IMG]
    [​IMG]
     
  2. Bozak

    Bozak Registered

    Joined:
    Nov 22, 2016
    Messages:
    70
    Likes Received:
    56
    2. Scripted if you use Weather Plugin
     
    Davvid likes this.
  3. evernever

    evernever Registered

    Joined:
    May 31, 2018
    Messages:
    9
    Likes Received:
    3
    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?
     
  4. lagg

    lagg Registered

    Joined:
    Oct 1, 2012
    Messages:
    3,043
    Likes Received:
    1,958
    We have two servers working and updated without any problem. Both are with DarkSky
     
    Davvid and Corti like this.
  5. evernever

    evernever Registered

    Joined:
    May 31, 2018
    Messages:
    9
    Likes Received:
    3
    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.
     
    lagg and Corti like this.
  6. Corti

    Corti Registered

    Joined:
    Sep 29, 2014
    Messages:
    1,354
    Likes Received:
    2,495
    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 :rolleyes:
    regards, Corti. ;)
     
    lagg likes this.
  7. Stefan_L_01

    Stefan_L_01 Registered

    Joined:
    Nov 18, 2012
    Messages:
    595
    Likes Received:
    386
    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
     
    Corti and lagg like this.
  8. Stefan_L_01

    Stefan_L_01 Registered

    Joined:
    Nov 18, 2012
    Messages:
    595
    Likes Received:
    386
    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
     
    lagg likes this.
  9. Davvid

    Davvid Registered

    Joined:
    Feb 11, 2012
    Messages:
    163
    Likes Received:
    31
    Thanks for answer. Definitely redesign then :)
     
  10. Corti

    Corti Registered

    Joined:
    Sep 29, 2014
    Messages:
    1,354
    Likes Received:
    2,495
    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.
     
  11. ChalkyWIS

    ChalkyWIS Registered

    Joined:
    Sep 14, 2016
    Messages:
    32
    Likes Received:
    6
    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.
     
  12. ChalkyWIS

    ChalkyWIS Registered

    Joined:
    Sep 14, 2016
    Messages:
    32
    Likes Received:
    6
    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?
     
  13. LokiD

    LokiD Registered

    Joined:
    May 3, 2017
    Messages:
    1,282
    Likes Received:
    1,216
    Does this work on rf2 latest build?
     
  14. ChalkyWIS

    ChalkyWIS Registered

    Joined:
    Sep 14, 2016
    Messages:
    32
    Likes Received:
    6
    upload_2019-4-12_14-14-0.png
    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
     

    Attached Files:

  15. Acestumacher

    Acestumacher Registered

    Joined:
    Nov 7, 2011
    Messages:
    173
    Likes Received:
    20
    Perhaps you need to write "localhost" in the Server box window at the top beside UID.
     
  16. lagg

    lagg Registered

    Joined:
    Oct 1, 2012
    Messages:
    3,043
    Likes Received:
    1,958
    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
     
  17. Stefan_L_01

    Stefan_L_01 Registered

    Joined:
    Nov 18, 2012
    Messages:
    595
    Likes Received:
    386
    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?
     
    wrxxy and lagg like this.
  18. ChalkyWIS

    ChalkyWIS Registered

    Joined:
    Sep 14, 2016
    Messages:
    32
    Likes Received:
    6
    upload_2019-4-12_23-54-40.png
    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.
     

    Attached Files:

  19. LokiD

    LokiD Registered

    Joined:
    May 3, 2017
    Messages:
    1,282
    Likes Received:
    1,216
    will this do a random weather scenario or just real time?
     
  20. Stefan_L_01

    Stefan_L_01 Registered

    Joined:
    Nov 18, 2012
    Messages:
    595
    Likes Received:
    386
    @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..
     

Share This Page