[REL] Headlight controls

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

  1. Goanna

    Goanna Registered

    Joined:
    Jan 19, 2012
    Messages:
    1,405
    Likes Received:
    953
    @Seven Smiles Downloaded the newer stuff and ran rf2headlights.exe >rpt.txt 2>&1 first, all worked fine...ran it a second time and nada...no errors messages......ran rf2headlightsDEBUG.exe >rpt.txt 2>&1 and once again nada, no error messages popped up. Reports attached... debug one is the one that did not work....headlights one is from first run where it worked.
    I'm on Win 10 Pro Build 1809 (OS Build 17763.379)
     

    Attached Files:

  2. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,099
    Likes Received:
    1,152
    Thanks! That shows an error in my code
    Code:
    Traceback (most recent call last):
      File "rf2headlights.py", line 276, in <module>
      File "rf2headlights.py", line 54, in main
      File "gui.py", line 747, in run
      File "gui.py", line 693, in __init__
    AttributeError: 'NoneType' object has no attribute 'bind'
    That’ll be a lot easier to fix than chasing a lot of other things that could have been the cause!
     
    Goanna likes this.
  3. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,099
    Likes Received:
    1,152
    The checkboxes on the right just show the status of the Shared Memory plug-in so yes, if you click them they’ll switch back. If they’re not turning on themselves there’s a problem with the plug-in.
     
  4. RoWo

    RoWo Member

    Joined:
    Jul 16, 2014
    Messages:
    570
    Likes Received:
    625
    So there is hope for a quick fix, @Seven Smiles ? :)
     
  5. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,099
    Likes Received:
    1,152
    Yes :) New version in first post.
    • 1 minute to find the problem
    • 5 minutes to check why it hadn't shown up before (only if a key used to operate the lights, not if a button)
    • 1 hour experimenting with ways to stop the rF2 status checkboxes being fiddled with!
    • 1 hour :mad: trying to find why I can't build a debug version today.
    Now I wait to find that this wasn't the problem you had :(
     
    Corti likes this.
  6. RoWo

    RoWo Member

    Joined:
    Jul 16, 2014
    Messages:
    570
    Likes Received:
    625
    Thanks. I'll try later this day.
     
    Seven Smiles likes this.
  7. davehenrie

    davehenrie Registered

    Joined:
    Jul 6, 2016
    Messages:
    7,453
    Likes Received:
    4,369
    I was waiting for the Ring, Last I knew my lights were flashing perfectly, Now I'll grab the new version, just to be safe. Thanks Mr Smiles!!!!
     
    Seven Smiles likes this.
  8. buzz hornet

    buzz hornet Registered

    Joined:
    Oct 5, 2010
    Messages:
    338
    Likes Received:
    249
    All good here now - thanks great tool.
     
    Seven Smiles likes this.
  9. RoWo

    RoWo Member

    Joined:
    Jul 16, 2014
    Messages:
    570
    Likes Received:
    625
    Yes, looks good so far.
     
    Seven Smiles likes this.
  10. Liuke44

    Liuke44 Registered

    Joined:
    Oct 5, 2012
    Messages:
    167
    Likes Received:
    2
    Hay guys, is normal this application consumption 30% of the power of processor, i have i54670K@4.2
     
    Seven Smiles likes this.
  11. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,099
    Likes Received:
    1,152
    Ah, no. I've broken something when I smashed the two programs (one to configure, one to run) into one. It should be spending all it's time idle, waiting for a button/key press.
     
  12. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,099
    Likes Received:
    1,152
    Update: I’ve fixed that, processor usage is less than 0.2% on my PC, but there are some other small issues to check before the 0.5 release.

    Edit: I've uploaded V0.5.50 with the fix in case anyone wants it NOW! There are two minor bugs in it that I'm aware of that I'll clean up in the next couple of days.
     
    Last edited: Sep 2, 2019
    MaD_King and davehenrie like this.
  13. felirrari

    felirrari Registered

    Joined:
    Oct 10, 2014
    Messages:
    133
    Likes Received:
    80
    Man this should be officially on rFactor2, what a great tool! Thanks for this.
     
    Seven Smiles likes this.
  14. DaVeX

    DaVeX Registered

    Joined:
    Feb 7, 2015
    Messages:
    637
    Likes Received:
    701
    This should be added in-game and settable from main menu...
    S397 should look at this with attention...
     
  15. Steve Grumpelt

    Steve Grumpelt Registered

    Joined:
    Mar 21, 2017
    Messages:
    13
    Likes Received:
    8
    @Seven Smiles thank you for sharing this little awesome programm! I've tried it and it works very well. I love the fact, that the pit limitier flash is only working when the ignition is on! Nice one!
    And I like the simple and clear UI you've created.

    By the way I programmed a little macro via Voice Attack, which do the same. But honestly the cons compared to your nice work are:
    - can't consider wether ignition is on or not.
    - I have to toggle pit limiter first after I click on "race" and before toggle ignition to start the script right. Or I have to set the ignition to auto-on. Which is not what I'd like to.
    But what is very cool on my script, is the fact that I can set various patterns to the flash effects. Which is very cool and it's not only "on-off-on-off" in the same timing. Maybe somthing like "on(0,1s)-pause(0,5s)-on(0,1s) ..."
    So I was able to reproduce a flashing light like in real life.

    So...are you able to implement this function?

    But again: Your programm is superb! And I'd recommend it to all users of rafctor 2!
     
    Last edited: Sep 3, 2019
    Seven Smiles likes this.
  16. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,099
    Likes Received:
    1,152
    Thanks, I did think of setting the on and off times separately but settled for the simple 50:50. It's certainly possible but I'd have to change the program and the UI (neither seem too difficult - but I know better than to think anything is easy!)

    I also played with voice recognition but decided that a driver really needs a button that flashes the headlights NOW rather than hearing "Sorry, I didn't understand that" :mad:
     
    The Iron Wolf likes this.
  17. Steve Grumpelt

    Steve Grumpelt Registered

    Joined:
    Mar 21, 2017
    Messages:
    13
    Likes Received:
    8
    Well in rfactor 2 and other simulations the only time I use voice recognition is to initiate a call to CrewChief. Otherwise I use Voice Attack only for key bindings and macros because there are planty options to use this! I love it! every command macro is set by a button on my wheel or button box.
    For example I wrote a little macro to use the wipers in an interval. Or another macro to wipe only once. Useful if no rain but wet track and you won't a continously wiping, because that's annoying.

    But I don't want to get off topic!


    I comprehend that part with the UI changes! So no worries :D:cool:
     
  18. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,099
    Likes Received:
    1,152
    Oh noooo.... rF2Headlights&Wipers.exe :oops:
     
    Steve Grumpelt likes this.
  19. davehenrie

    davehenrie Registered

    Joined:
    Jul 6, 2016
    Messages:
    7,453
    Likes Received:
    4,369
    I use voice attack, but mainly for hud changes and the like. I'd be interested in seeing your macros.
     
    Steve Grumpelt likes this.
  20. Steve Grumpelt

    Steve Grumpelt Registered

    Joined:
    Mar 21, 2017
    Messages:
    13
    Likes Received:
    8
    I'll make a different thread for this okay?

    So I don't want collect this thread for my Voice Attack macros.
     
    davehenrie likes this.

Share This Page