Resource icon

SimHub Headlight Flasher Plugin 2.0

Login or Register an account to download this content
This Plugin uses SimHub: https://www.simhubdash.com/

Important: v2.0 requires SimHub v7.4.7 and beyond. This is due to a change to the Keyboard emulator libary. Plugin v1.1 and prior are not compatible with SimHub v7.4.7.


This Plugin adds a Headlight Flasher. This allows you to simply press a button once to trigger a set of flashes (configurable in length and number) by toggling the Headlight button, useful for Sims without a Flasher (Rfactor 2, AMS1, etc.). It allways makes an on and off toggle, so when headlights are on at Night they will remain on afterwards.
The Headlight Flasher is available by mapping in SimHub in Controlls a Button to the Action "FlashHeadlights"

rFactor 2 new Auto Headlights are supported by turning rf2 Auto-Mode in the Setting on.
Calling your opponents names by flashing Morse code is now available too.

To install the Plugin:
1. Place the HeadlightFlashPlugin.dll into your SimHub install
2. Upon starting SimHub you will be asked to enable the Plugin

Configuration:
1. Open Additional Plugins (The Three dots in one row)
2. Select Headlight Flasher at the Top
3. Map your Headlight Key (this has to be a Keyboard key, you can use the "ToggleHeadlights" Action to toggle them via a gamepad), the default L should be good for most people
4. Set your Flash Length (Length of individual on/off periode, not total), Number of Flashes, or disable it
5. Press Apply
6. Go to Controls and Events (The Keyboard icon)
7. It opens on the Controls Tab, press New Mapping
8. Press the button that you want to map the Flasher to, and it should appear in the left column and be selected
(Controllers input plugin is required to be turned on to map to a controller, the plugin ships with SimHub, but make sure you have it turned on)
9. Select on the Right Side the "FlashHeadlights" Action
10. It is strongly recommended to change the Games selection, per default it is All.
I would recommend to deselect all and then select Rfactor 2, RF1, AMS, GTR, etc. This is so you can use this button in Sims that have Flashers such as iRacing and ACC.
11. Press OK
12. Go ingame and map the headlights to the key selected in step 3
13. (Optional) Repeat steps 7 to 11 for "TurnHeadlight" if you want to have this mapped to some button instead of just having a keyboard key

Actions added to SimHub:
-FlashHeadlights: Flashes the Headlights at a user defined frequency and number.
-TurnHeadlights: Included for turning the headlights on. Not necessary, you could as well use keyboard emulation to achieve the same, but keyboard emulation can not be configured to work only in certain games, and this can be setup this way.
-FlashMessage: This allows you to send a configured message in Morse Code via the Headlights. This is a meme feature


Source Code: https://gitlab.com/LukasLichten/headlight-flasher-simhubplugin

Latest updates

  1. v2.0 Compatibility with SimHub v7.4.7 and beyond

    v2.0 -Fixed Compatibility with SimHub v7.4.7 and beyond (for now). This is due to SimHub...
  2. v1.1: rf2 Autoheadlight Aid Support and Morse Messaging

    -Fixed Enabled checkbox not being changeable (you could not turn it off) -Added Tooltips...

Latest reviews

great addition
Finally someone solved a problem with endurance racing on rFactor2 with multiple classes. Thank you so much.
awesome for rf2
Thanks, in rF2 once mapped it works great
Good feature for use in rF2

Latest News

Author
TheLichten
Downloads
710
File size
17.6 KB
Views
17,815
First release
Last update
User rating
4.80 star(s) 5 ratings

More mods from TheLichten

Shifting method

  • I use whatever the car has in real life*

  • I always use paddleshift

  • I always use sequential

  • I always use H-shifter

  • Something else, please explain


Results are only viewable after voting.
Back
Top