[REL] WeatherPlugin

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

  1. Stefan_L_01

    Stefan_L_01 Registered

    Joined:
    Nov 18, 2012
    Messages:
    345
    Likes Received:
    161
    Hi
    I wrote a lightweight Weather Plugin and Client. I know there is a powerful tool outside but after some experiences I decided to write my own
    - 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).
    https://www.microsoft.com/de-de/download/details.aspx?id=48145

    .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
     

    Attached Files:

    Last edited: Nov 21, 2019 at 6:33 PM
  2. lagg

    lagg Registered

    Joined:
    Oct 1, 2012
    Messages:
    1,126
    Likes Received:
    778
    Thank you very much @Stefan_L_01 .
    I've a question.
    How do we configure the program to be used with several dedicated servers?
    localhost : port? Is it implemented?
    Note: I've put two spaces because otherwise the forum shows a smiley
     
    Last edited: Dec 14, 2017
    krusti likes this.
  3. Stefan_L_01

    Stefan_L_01 Registered

    Joined:
    Nov 18, 2012
    Messages:
    345
    Likes Received:
    161
    this is not forseen currently
    You run more than one dedicated on one system?
    I have an idea to realize this, next version
     
  4. Acestumacher

    Acestumacher Registered

    Joined:
    Nov 7, 2011
    Messages:
    166
    Likes Received:
    16
    Stefan can you post a video on how you set this up please?
     
  5. The Iron Wolf

    The Iron Wolf Member

    Joined:
    Feb 20, 2016
    Messages:
    896
    Likes Received:
    792
    This is great news, rF2 really needs such plugin especially since Gerald's .dll no longer works in DX11.
    Is there a source code available to have a look?
     
  6. Stefan_L_01

    Stefan_L_01 Registered

    Joined:
    Nov 18, 2012
    Messages:
    345
    Likes Received:
    161
    I uploaded V1.1 (maybe should have called it 0.x, you know)
    I found a way using multi-server instances by usage of a custom variable, UID. See readme for details
    also i thought myself a calculation of WU rain rate by accumulated data may have some advantages, so you have 2 options

    @Ironwolf: source code is available ( :) ), but I´m not working with open source, so no github or similar.
     
    Corti likes this.
  7. Stefan_L_01

    Stefan_L_01 Registered

    Joined:
    Nov 18, 2012
    Messages:
    345
    Likes Received:
    161
    V1.2 up
    I´ve thrown out the stupid snow simulation and replaced it with a radar image poll. Detail in the readme.
    Note: for WU radar you need at least their developer cumulus plan, in case you signed for strato pls update your plan. I have not tested what happens if you don´t have access to radar...
     
    Last edited: Dec 19, 2017
    Corti likes this.
  8. Stefan_L_01

    Stefan_L_01 Registered

    Joined:
    Nov 18, 2012
    Messages:
    345
    Likes Received:
    161
    V1.3 up
     
    Corti likes this.
  9. lagg

    lagg Registered

    Joined:
    Oct 1, 2012
    Messages:
    1,126
    Likes Received:
    778
    Hi @Stefan_L_01
    I can't run the program in our server.
    I think that the dll isn't recognised by our dedicated because it doesn't appear in the CustomPluginVariables.JSON
    I think that we don't have installed the runtime libraries. What do we have to install (C++ libraries, .Net Framework...)?
     
  10. Stefan_L_01

    Stefan_L_01 Registered

    Joined:
    Nov 18, 2012
    Messages:
    345
    Likes Received:
    161
    you need the vc140 redistributable in case
    .net is 4.5.2
     
    Felipe Granado likes this.
  11. lagg

    lagg Registered

    Joined:
    Oct 1, 2012
    Messages:
    1,126
    Likes Received:
    778
  12. LokiD

    LokiD Registered

    Joined:
    May 3, 2017
    Messages:
    1,136
    Likes Received:
    1,044
    can this plugin do random weather Stefan? can tis be used ofline aswell?
     
  13. Stefan_L_01

    Stefan_L_01 Registered

    Joined:
    Nov 18, 2012
    Messages:
    345
    Likes Received:
    161
    no random mode. Use the other plugin for random mode :)rolleyes:). Offline works as well.
     
  14. lagg

    lagg Registered

    Joined:
    Oct 1, 2012
    Messages:
    1,126
    Likes Received:
    778
    Hi Stefan.
    I can't execute the program (rf2WeatherClient.exe). It crashes before open.
    I get this error:
    *********************************************
    Firma con problemas:
    Nombre del evento de problema: CLR20r3
    Firma del problema 01: rf2WeatherClient.exe
    Firma del problema 02: 1.3.0.0
    Firma del problema 03: 5a4660f0
    Firma del problema 04: mscorlib
    Firma del problema 05: 4.7.2117.0
    Firma del problema 06: 59cf513d
    Firma del problema 07: 165d
    Firma del problema 08: 12f
    Firma del problema 09: System.UnauthorizedAccess
    Versión del sistema operativo: 6.1.7601.2.1.0.272.7
    Id. de configuración regional: 2057
    Información adicional 1: e566
    Información adicional 2: e566400830c302b0e2aedfc8031785f5
    Información adicional 3: 95ae
    Información adicional 4: 95aec3e3cfeb2687edd53c328f691171

    Lea nuestra declaración de privacidad en línea:
    http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0c0a

    Si la declaración de privacidad en línea no está disponible, lea la declaración de privacidad sin conexión:
    C:\Windows\system32\es-ES\erofflps.txt
    *********************************************
    The .Net 4.52 was already installed. I've compiled two applications vb and C# to be sure, and both run well.
    Is it mandatory to put the program in any folder?
    There are dependencies?
     
    Last edited: Jan 22, 2018
  15. lagg

    lagg Registered

    Joined:
    Oct 1, 2012
    Messages:
    1,126
    Likes Received:
    778
    I've rewritten the previous post because it wasn't clear.
    I think that now is ok.
     
  16. Stefan_L_01

    Stefan_L_01 Registered

    Joined:
    Nov 18, 2012
    Messages:
    345
    Likes Received:
    161
    What operating system are you using?
     
  17. DaVeX

    DaVeX Registered

    Joined:
    Feb 7, 2015
    Messages:
    550
    Likes Received:
    557
    Sorry guys, what is this plugin for?
    How it works?
     
  18. krusti

    krusti Registered

    Joined:
    Apr 20, 2016
    Messages:
    573
    Likes Received:
    491
    Provides real time weather based on weather stations placed around the world. For example, choose the station nearest Silverstone and you will have real weather in your session at Silverstone. :)
     
    zi99y and DaVeX like this.
  19. lagg

    lagg Registered

    Joined:
    Oct 1, 2012
    Messages:
    1,126
    Likes Received:
    778
    Windows Server 2008 R2 Stardard SP1
     
  20. Stefan_L_01

    Stefan_L_01 Registered

    Joined:
    Nov 18, 2012
    Messages:
    345
    Likes Received:
    161
    I installed a 2008 R2 SP1, without latest cumulative Fix Pack, and it does not crash.
    Hmmmm. Maybe due to spanish locale? Can you try english system ?

    Note: i tried also as guest Account with lowest access rights, no Crash. I' m sry I can not help for the Moment
     
    Last edited: Jan 24, 2018
    lagg likes this.

Share This Page