[TC] Gaming Forums
TCLights v2.4 (Siren/Strobe Program) - Printable Version

+- [TC] Gaming Forums (https://forum.city-driving.co.uk)
+-- Forum: Community Area (/forumdisplay.php?fid=14)
+--- Forum: Live for Speed Area (/forumdisplay.php?fid=17)
+--- Thread: TCLights v2.4 (Siren/Strobe Program) (/showthread.php?tid=21932)

Pages: 1 2 3 4 5 6 7 8


TCLights v2.4 (Siren/Strobe Program) - Elmo - 2016-03-27 04:11

TCLights v2.4
tc-g.uk/TCLights


Note: If you need to use versions of LFS before 0.7E, please use TCLights v2.3.1 (see below)

TCLights v2.4 Contains Support for LFS 0.7E
This version is unfinished, but I've given it a full release to get the new lights functions widely available.
There will likely be more Beta versions of TCLights as I develop further: tc-g.uk/TCLightsBeta
More documentation for the new features will be added to this post over the coming days.

Changelog (Click to View)


Features
  • Multiplayer friendly flashing pattern using headlights
  • Uses LFS built-in slow (wail) and fast (yelp) sirens
  • Also supports Horn4 (bullhorn) & Horn5 (piercer)
  • All siren/horn functions can be operated by a single button. Optional dedicated bullhorn button.
  • Full controller support.
    Multiple keyboard/mouse/controller buttons/POVs can be bound to functions. (Currently limited to 10 per function).
    Use the command /o tcl config in-game to change/add to controls.
    Bindable functions:
    Flashing Lights
    Horn/Siren
    Bullhorn
    Headlights Cycle
    Hazards
    Left Indicator
    Right Indicator
    Sidelights
    Dipped Beam
    Full Beam
    Flash
    Front Fog
    Rear Fog
    Extra Light
  • Full Indicator Support.
    No need for indicator scripts anymore!
  • Multiple control modes for lights/sirens
  • Multiple Lights/Siren behaviours for different server roles
  • In-game Config UI
    Use the command /o tcl config in-game to load the menus.
  • Heads-Up Display
    Small, simple HUD showing current TC Lights activity:
    [Image: uJp02AU.gif]
    Click the TCLights logo to open config (saves typing the command)





Download & Installation

[Image: dl.png]Download TC Lights v2.4
Unzip TCLights.exe to your LFS folder

You may need to install/update the VC++ Runtime.

[Image: dl.png]Download TC Lights v2.3.1 for LFS 0.6N to 0.7D49



Updated Siren Pack

Optionally, but highly recommended:

[Image: dl.png]Download our siren pack, designed for TCLights v2 and our new siren rules

See the Downloads page for alternatives.





How to Use

Default controls:
Siren key: PageUp
Lights key: PageDown

Type /o tcl config in game to configure controls and other options.
You can also configure by clicking the [TC] Lights logo if the HUD is enabled.


- Lights -

Flashing lights are toggled on and off by pressing the Lights key.

Indicators and Hazard lights can be used at any time using their respective keys.
  • Press the key again to cancel.
  • If Use Hazards with Flashing Lights option is enabled, indicators will override the flashing hazards pattern untill cancelled.

Headlights are cycled by pressing the Headlights key.
  • If headlights were on when flashing lights are activated, they will remain on after flashing lights are deactivated, provided [TC] Lights was originally used to turn the headlights on.
  • Bind additional buttons to select specific headlights, fog lights and the extra light


- Sirens -

The different siren sounds are triggered by combinations of the following presses of the siren key:
  • Tap (short press): A normal press of the button.
  • Long press: Press the button for more than ~200ms.
  • Hold: Press and hold the button.
  • Double-tap: Two short presses of the key close together.
  • Double (tap then long press): A tap followed by a long press close together.

Siren Modes

There are multiple modes with different behaviours.

Auto: Automatically uses one of the below modes depending on your nickname.
Emergency: Full flashing lights & sirens.
TOW: No sirens, "Use Hazards in light pattern" is enforced.
Race/Civilian: No flashing lights/sirens. Standard lights only.


Siren Behaviour in Emergency Modes

In all Emergency modes:
  • Tap to turn siren on.
  • Double-tap to turn siren off.
  • When siren is on, tap to change to the next siren in the main cycle.
  • When siren is off, hold to sound the standard horn
  • When piercer is active:
    • Tap to switch back to a normal siren
    • The piercer will be automatically disabled after 5 seconds

Emergency modes:

Wail↔Yelp Cycle (1-key, Default): Hold for bullhorn. Double (short -> long) for piercer. (Same as TCLights v2.0)
Wail↔Yelp Cycle + BullHorn A (2-key): Dedicated bullhorn key, hold siren for piercer
Wail↔Yelp Cycle + BullHorn B (2-key): Dedicated bullhorn key, tap->long-press siren for piercer
Wail→Yelp→Piercer Cycle (1-key): Piercer in main cycle. Hold siren for bullhorn
Wail→Yelp→Piercer Cycle + Bullhorn (2-key): Piercer in main cycle. Dedicated bullhorn key


- Options -

Use Hazards with Flashing Lights:
If enabled, hazard lights will be used as part of the flashing lights pattern, synced with the headlights. Indicators will override hazards until you turn them off, so you can make others aware of your intentions.

Flash faster for Yelp siren:
If the Yelp (fast) siren is running, the lights will flash at double speed.

Turn on lights with siren:
Flashing lights will be enabled when you turn on the siren. Lights *will not* turn off when siren is turned off.

Flash Headlights with Horn:
If flashing lights and headlights are off, "Flash" (high beam) will be on whenever horn or bullhorn is pressed.

Bullhorn interrupts siren:
Bullhorn will turn off main siren when active (always has to override piercer, regardless of this setting)


Ignore controls when in text entry dialogs:
TCLights will ignore all controller input whenever LFS reports that a text entry dialog is open - mostly useful when using keyboard button binds.

Allow input when LFS window is inactive:
Allows TCLights to be used when LFS' similar option is enabled and LFS is not in focus.

Show HUD:
Small, simple HUD showing current TC Lights activity




Demo




Setting up TCLights v2.x (doesn't include menus/config)






Known Issues/Limitations:
  • When the config menus are open, buttons *will* conflict with other local InSim applications that also use buttons. This won't affect normal operation, as buttons are only used when the config is open - temporarily close other local InSim apps if this causes issues.
  • Some menus will probably do weird things if you bind too many controls.
  • It is possible to bind the same button to multiple functions/the same function several times.
  • If you have two or more of the same controller, functions will be bound to *all* instances of that controller model. There is no reliable way to distinguish between instances of the same controller across reboots/re-plugs. This will not be a problem if you have two TH8 shifters in different modes, as the buttons are different, however it will affect some others.
  • The mouse cursur will always display when the HUD is enabled due to the clickable button, which may annoy some mouse users. Future versions will hide the mouse cursur while moving, similar to the CityDriving buttons.


Bug Reporting

First, please check:
  • You're running at least LFS 0.7E (0.6N for TCLights v2.3.1)
  • TCLights.exe is in your LFS directory (or you're running from a shortcut with "start in" set to your LFS directory)
  • You start LFS before running TCLights
  • Ensure you do not run any of LFS or TCLights as administrator and you have permissions to modify the LFS directory. (Do not install LFS in C:\Program Files)

If you still have problems with TCLights, please give a clear, detailed description of exactly what's happening. A screenshot of the TCLights window is usually helpful.

If TCLights can't connect, please include the contents of your "lfs/data/script/autoexec.lfs" file (and any other scripts /run from autoexec.lfs).

Also include:
  • Type of PC (PC, Laptop etc)
  • Make/model of PC (if not custom built)
  • PC hardware specifications
  • Windows version, including 32/64bit
  • What controller you use
  • How you're turning on TCLights(keyboard/profiler setting etc)
  • What other programs, if any, you are using that communicates with LFS
  • What, if any, profilers/macro key software do you have installed. Include controller, keyboard & mouse profilers, also things like autohotkey.



RE: TCLights v2.0 (Siren/Strobe Program) - Ash - 2016-03-27 05:37

Good work, downloading now! Smile


Few problems, the Bullhorn/Piercer does not work for me. I hear the bullhorn for a millisecond then it returns to my main HORN1.

Administrator Message by: BP

Resolution: "Na, figured out what it was (which should probably be mentioned in the OP), your HORN in LFS must be bound to "B" and not PageUP (which mine was set to Tongue)."
Administrator Message by: Elmo

Correction: Your HORN in LFS must be bound to *anything* that isn't PageUp.



RE: TCLights v2.0 (Siren/Strobe Program) - Elmo - 2016-03-27 05:55

Is your crazy profiler still pressing your standard horn key? That'll override the commands TCLights sends to LFS.


RE: TCLights v2.0 (Siren/Strobe Program) - Ash - 2016-03-27 05:56

Na, figured out what it was (which should probably be mentioned in the OP), your HORN in LFS must be bound to "B" and not PageUP (which mine was set to Tongue).


RE: TCLights v2.0 (Siren/Strobe Program) - Elmo - 2016-03-27 06:35

Demo video:




RE: TCLights v2.0 (Siren/Strobe Program) - Pete - 2016-03-27 06:46

Setup guide:




RE: TCLights v2.0 (Siren/Strobe Program) - KooKoo - 2016-03-27 07:50

nice work, thanks!!


RE: TCLights v2.0 (Siren/Strobe Program) - Adorable - 2016-03-27 08:14

Question: In a chase, [TC] Lights

or flashlights / hazard lights? Must be used continuously?

Or both together? Meaning, In a chase, Siren + Headlights / hazard lights must be used continously or just [TC] Lights is enough?

Because when I press the page up, Flashlights / hazards aren't being automatically turned on.


RE: TCLights v2.0 (Siren/Strobe Program) - Ash - 2016-03-27 08:21

The rule changes have stated that you need FLASHING lights.

So, you can either use TC Lights which will FLASH your headlights

-- OR --

You can use Hazard Lights (9) with your headlights on constant (3).



See this link about manually scripting the sirens within LFS if you wish to not use TC Lights (for whatever reason) Smile :

http://forum.city-driving.co.uk/showthread.php?tid=21934&pid=208388#pid208388


RE: TCLights v2.0 (Siren/Strobe Program) - Thomas - 2016-03-27 08:21

Great job, nicely done.


RE: TCLights v2.0 (Siren/Strobe Program) - Adorable - 2016-03-27 08:45

Me & ganji keeps getting weird timeouts with a red message saying:

inSim timeout: TCLights

--

OS: Windows 10 Pro 64 Bits


RE: TCLights v2.0 (Siren/Strobe Program) - Dino - 2016-03-27 09:10

Page down used to activate hazard lights and flashed the lights, AFAIR.
Now it only flashes lights, is it possible to change that somehow? I don't want to manually do that :/


RE: TCLights v2.0 (Siren/Strobe Program) - Ash - 2016-03-27 09:11

Recent updates to the rules state you no longer need to use hazard lights if you have a flashing headlight setup.


RE: TCLights v2.0 (Siren/Strobe Program) - BP - 2016-03-27 09:29

Seems to work perfectly fine for me - Windows 10 Home 64bit.


RE: TCLights v2.0 (Siren/Strobe Program) - Adorable - 2016-03-27 09:30

This is the problem:

Screenshot (Click to View)



RE: TCLights v2.0 (Siren/Strobe Program) - BP - 2016-03-27 09:33

Just to make sure, you put the .exe in the LFS directory yes?


RE: TCLights v2.0 (Siren/Strobe Program) - Adorable - 2016-03-27 09:40

Yes it is in the directory.


RE: TCLights v2.0 (Siren/Strobe Program) - R.Fiets - 2016-03-27 09:40

(2016-03-27 09:30)Mr.AD Wrote:  This is the problem:

Screenshot (Click to View)

Kinda same problem, after some time of using, getting same data as AD.
Win 8.1


RE: TCLights v2.0 (Siren/Strobe Program) - Connor - 2016-03-27 10:08

Lol, I love the Disclaimer in the README .txt file. Tongue


RE: TCLights v2.0 (Siren/Strobe Program) - Ash - 2016-03-27 11:06

Small bug that people are encountering (including myself) is the /insim 29999 being added to the autoexec.lfs is not being placed on a new row.

So for me, in my autoexec.lfs I have a line with //alft 11 //sirenenabled, it got changed to //altf 11 //sirenenabled/insim 29999 rather than on a new row Smile