[REL] Headlight controls

Discussion in 'Other' started by Seven Smiles, Aug 20, 2019.

  1. vancstar

    vancstar Registered

    Joined:
    Oct 5, 2010
    Messages:
    127
    Likes Received:
    16
    HeadlightsRequired = true // whether headlights are required at night

    Surely this could be a selectable option in the server multiplayer.ini file so that it was easier to control and some people don't always know what button is Headlights as a lot of leagues don't do night races.

    But back to the utility, I have it working but it will only flash atm but I will have another crack at getting it working later great to see these sort of options appear from the community.
     
    Last edited: Aug 23, 2019
  2. davehenrie

    davehenrie Registered

    Joined:
    Jul 6, 2016
    Messages:
    2,102
    Likes Received:
    1,283
    yes Immersion, but I have to flash cars that pass, me...otherwise I never get to use it!!!!!
     
    Lazza likes this.
  3. Goanna

    Goanna Registered

    Joined:
    Jan 19, 2012
    Messages:
    626
    Likes Received:
    409
    I'm getting an avg alert on the exe, anyone else have the same? I'm guessing not or there would be posts here.
    upload_2019-8-25_22-55-30.png
     
  4. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    636
    Likes Received:
    678
    Goanna likes this.
  5. Fábio Martins

    Fábio Martins Registered

    Joined:
    Oct 14, 2018
    Messages:
    30
    Likes Received:
    26
    Hi!
    This would be great, but don`t work for me.
    I have everything upgraded, including the rFactor2SharedMemoryMapPlugin64.dll in bin64 folder.
    I have H mapped to headlights... and the car is flashing headlights in the pits, but I can`t change any options. Basically the buttons on the plugin are dead.
    Any way to solve this?

    ps - Also I think the headlights flash to fast. In the real life, the flashes are 2-3x slower.
    Thank you!
     
  6. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    636
    Likes Received:
    678
    Are you clicking on the Select ... buttons to set up your buttons? And there are slider to set how fast the headlights flash - one for overtaking and one for the pits.
     
  7. Fábio Martins

    Fábio Martins Registered

    Joined:
    Oct 14, 2018
    Messages:
    30
    Likes Received:
    26
    Ohhh It´s working. I was expecting to have a message after pressing select, like "click on any key" .

    Thank you
     
    davehenrie and Seven Smiles like this.
  8. JimmyT

    JimmyT Registered

    Joined:
    Jan 16, 2012
    Messages:
    558
    Likes Received:
    309
    Seven Smiles likes this.
  9. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    636
    Likes Received:
    678
    AVG.jpg
     
  10. RoWo

    RoWo Registered

    Joined:
    Jul 16, 2014
    Messages:
    264
    Likes Received:
    289
    I wanna test your tool, but I get this failure very often (not always), when I start the EXE.

    headlights_exe.JPG
     
  11. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    636
    Likes Received:
    678
    No idea what that might be. It does unzip the contents of the .exe/archive into a temporary folder (%TEMP%\_MEI******) and run it from there, maybe there's a permission or disc space problem?
     
  12. buzz hornet

    buzz hornet Registered

    Joined:
    Oct 5, 2010
    Messages:
    40
    Likes Received:
    17
    A great idea and works really well - thanks for creating it. Any chance this logic can be applied to the AI cars?

    PS) I just ran as administrator and it worked - had the same error as RoWo prior FYI
     
  13. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    636
    Likes Received:
    678
    It can’t be applied to AI cars, it’s just faking the "Headlights" key press and doesn’t even work when the AI is driving your car.

    I run Windows with an account with administrator rights so that may be @RoWo's problem but it’s odd that it sometimes works.
     
    buzz hornet likes this.
  14. RoWo

    RoWo Registered

    Joined:
    Jul 16, 2014
    Messages:
    264
    Likes Received:
    289
    Yes, and I tried with and without administrator rights.
     
  15. Rui Santos

    Rui Santos Registered

    Joined:
    Jan 8, 2012
    Messages:
    621
    Likes Received:
    630
    That's why this option (flash) needs to be integrated into the simulator...
     
    Seven Smiles likes this.
  16. buzz hornet

    buzz hornet Registered

    Joined:
    Oct 5, 2010
    Messages:
    40
    Likes Received:
    17
    Thanks Seven Smiles
     
    Seven Smiles likes this.
  17. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    636
    Likes Received:
    678
    The "good" news is that I'm now getting "Failed to execute..." every time so at least I can debug it. The bad news is that I don't know what caused it!
     
    Lazza likes this.
  18. RoWo

    RoWo Registered

    Joined:
    Jul 16, 2014
    Messages:
    264
    Likes Received:
    289
    :) :(
     
  19. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    636
    Likes Received:
    678
    Much time wasted and I'm no clearer what the problem is that I have! But I have added two files to https://github.com/TonyWhitley/rF2headlights/releases/tag/V0.4.40
    that may help get to the bottom of your and @buzz hornet 's problem:

    1) rf2headlightsDEBUG.exe is the same program but with installer debug turned on. Open up a command window and run it like this
    Code:
    rf2headlightsDEBUG.exe >rpt.txt 2>&1
    If rf2headlights doesn't run then post the file rpt.txt here.

    2) rf2headlights.zip takes it one stage further by not packing into a single file, instead unzip it into a folder and then run
    Code:
    rf2headlights.exe >rpt.txt 2>&1
    Thanks for your help (assuming you haven't given up!)
     
    Last edited: Aug 29, 2019
  20. DaVeX

    DaVeX Registered

    Joined:
    Feb 7, 2015
    Messages:
    550
    Likes Received:
    557
    After upgrading to Windows 1903 it stopped working, also the checks on the right column disappear even clicking on them several times.
     

Share This Page