TCLights v2.4 (Siren/Strobe Program)
|
2016-03-30, 07:22
Post: #55
|
|||||||
|
|||||||
RE: TCLights v2.0 (Siren/Strobe Program)
(2016-03-29 14:16)Barney Wrote: With autoit(guess autohotkey aswell) it was not possible(for me) to disable horn and lights with TCLights is designed to be reliably used by a human. Therefore it takes into account the guarantees provided - or, more accurately, explicitly not provided - by the Windows API. It also takes one or two assumptions based on a humans' ability to press keys. 1) Instantaneous key-presses are NOT guaranteed to to be detectable (and haven't been for over 20 years), as it's possible for other programs to check, and therefore reset, the "has this key been pressed?" status before you do. I suspect this was the cause for a few of the problems some people were having with TCLights 0.6. 2) The various sleep functions are NOT guaranteed to wake up exactly when requested. For example, the simple Sleep command (which I'm not using btw) usually has a minimum sleep of something like 13.6ms (I forget exactly, but it's around there). Even with more high-precision sleep functions, blocking hardware IO can very easily cause sleeps to last a few ms longer than requested and so can a busy CPU (we are playing a CPU intensive game after all). TCLights runs on a 10ms loop. There are two main reasons for this - minimal CPU usage (again, CPU intensive game) and in my experience that's plenty long enough to detect a physical key-press (a very quick tap on my keyboard lasts 50~70ms, I know some kinds switches can be as long as 100 or so). (2016-03-29 14:16)Barney Wrote: -Are there paramters for the break inbetween a "Double-tap" and a "Double (tap then long press)"? I suppose the minimum is >10ms, though a couple of ticks worth is probably safe. Max is currently 180ms IIRC, but that's subject to change a little. (2016-03-29 14:16)Barney Wrote: -Is it intended that when u are on slow(wail) and hit a double(short -> long) that the first tap switches to fast(yelp), and the long press adds horn5(piercer)? It changes siren immediately after the first press ends, because it has no way of knowing if you'll be pressing the key again until you do. A couple of things to note with the piercer: The *maximum* amount of time it can be on for is 5s, however in the vast majority of cases it should be less than that. If you turn it off manually (which you usually should), the siren will revert to whatever it was on before. Also, again in the vast majority of cases, you should probably already be in yelp(fast) mode before you decide to use the piercer as there'll already be plenty of traffic around or you're approaching a junction etc - in that situation, the siren would change to wail(slow) just before the piercer is activated. (2016-03-29 14:16)Barney Wrote: A little OT: the new LFS-patch is now casesensitive.: I vaguely remember something about that being mentioned in the test patch thread - probably something to do with the new virtual/on-screen keyboard. |
|||||||
|
|||||||
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread: | Author | Replies: | Views: | Last Post | |
[RDSR] Lights v.1.4.6.9 [Siren/Strobe Program] | Wilczek | 46 | 9,338 |
2024-04-19 03:15 Last Post: Felipe Jardim |
|
Your Siren Demos | Ash | 151 | 171,451 |
2022-09-12 18:27 Last Post: Ras |
|
American COP Siren FX | Demis | 1 | 783 |
2022-06-16 20:51 Last Post: Demis |
|
RSG MCS 32 Siren - Common UK Siren Download | Quattro10V | 2 | 4,525 |
2019-07-05 18:42 Last Post: Quattro10V |
|
Alternate Scripts for LFS Strobe | THE WIZARD DK | 1 | 2,277 |
2018-11-24 11:13 Last Post: THE WIZARD DK |
|
New siren - Whelen Alpha High Pitched | Ras | 8 | 9,003 |
2018-08-25 19:51 Last Post: Grizz |
|
New siren - British old school | Ras | 2 | 3,418 |
2018-04-19 15:10 Last Post: Josh |
|
Blue Light Run Driver Training - Showing new siren | Ras | 14 | 9,352 |
2018-04-19 13:26 Last Post: Josh |
|
Whelen Alpha Siren (remade) | Ras | 2 | 4,439 |
2017-01-04 19:38 Last Post: Quattro10V |
|
Whelen 295HFSA5 Siren | Ras | 0 | 2,938 |
2017-01-04 19:19 Last Post: Ras |
User(s) browsing this thread: 2 Guest(s)
Powered By MyBB, © 2002-2024 MyBB Group