[TC] Gaming Forums
[RDSR] Lights v.1.4.6.9 [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: [RDSR] Lights v.1.4.6.9 [Siren/Strobe Program] (/showthread.php?tid=34588)

Pages: 1 2 3


[RDSR] Lights v.1.4.6.9 [Siren/Strobe Program] - Wilczek - 2022-04-26 23:25

[Image: LCFUJNW.jpeg]

Hello everyone,

Introducing: [RDSR] Lights
A little, simple alternative (not exactly) to [TC] Lights, with more strobe patterns.

Commands and keybinds are located in the console window when you open the app.

[[[ STROBES AND SIRENS ONLY WORK WITH [COP] [RES] [MED] [TOW] [VCU] [HwA] TAGS ]]]

Any suggestions/weird stuff/bugs go here or in my Discord DMs: that guy#3328

The file *might* be flagged as a virus - in that case you can add an exception to Windows Defender: https://support.microsoft.com/en-us/windows/add-an-exclusion-to-windows-security-811816c0-4dfd-af4a-47e4-c301afe13b26

Download [RDSR] Lights v.1.4.6.9 from here


RE: [RDSR] Lights v.1.0[Siren/Strobe Program] - 7mar - 2022-04-27 09:42

niceeeee


RE: [RDSR] Lights v.1.0[Siren/Strobe Program] - Wilczek - 2022-04-27 19:42

[RDSR] Lights v.1.1

- now the app will notify when a new version is out

- changed default settings:
delay 60 -> 80
messages on -> off

- 3 new strobe patterns -> /o strobes 3, /o strobes 4, /o strobes 5

- /o msgoff & /o msgon is now one command:
/o messages

- will throw an error if it didn't successfully connect
- settings save now
- delay can be any number between 75 and 200
- strobes should turn off automatically after changing name back to civ


RE: [RDSR] Lights v.1.1.5 [Siren/Strobe Program] - Wilczek - 2022-04-28 20:05

[RDSR] Lights v.1.1.5

- cpu usage is always at 0% now
- power usage very high -> very low

- special characters in name shouldn't affect how the app sees it


RE: [RDSR] Lights v.1.1.5 [Siren/Strobe Program] - Wilczek - 2022-04-30 09:32

[RDSR] Lights v.1.1.6

- fixed strobes/sirens not working but it asks for your username now
- minimum delay is now 80


RE: [RDSR] Lights v.1.1.6 [Siren/Strobe Program] - Wilczek - 2022-04-30 09:57

[RDSR] Lights v.1.1.7

- the app wont delete spaces from your username


RE: [RDSR] Lights v.1.1.6 [Siren/Strobe Program] - Kyle - 2022-04-30 09:58

Just had a play around with the program. It's not bad Smile

A couple bits of feedback though:
- the strobes probably won't show up that well to other players at 200ms. Maybe you could set a maximum delay of 1000ms (1Hz)
- I'm not sure why the program asks for your username - you can find this out via InSim packets (unless there's another reason for this)


RE: [RDSR] Lights v.1.1.7 [Siren/Strobe Program] - Wilczek - 2022-04-30 10:02

hello kyle,

in Insim.NET (C#) there seems to be no other way to get the user's player name other than doing that.

it uses packets, but that's just what LFS sends back:

before it only worked for male driver models which had the PType 0 - if someone had any other driver model, the PType was either 1 or 2. resulting in strobes/sirens not working beacuse it can't find your player name to check if you have one of the tags: cop res med vcu tow


RE: [RDSR] Lights v.1.1.7 [Siren/Strobe Program] - Kyle - 2022-04-30 10:13

You can do something like this (which I assume you are already doing) to get all connected players:
Code:
insim.Send(new IS_TINY { ReqI = 255, SubT = TinyType.TINY_NCN });

Wherever you handle your packet, you can then add a check to see if the connection is remote or not - of course, if it isn't remote then that must be the local player
Code:
if (!ncn.Remote)
{
    Program.myUsername = ncn.UName;
}

Of course this is just simplified.


RE: [RDSR] Lights v.1.1.7 [Siren/Strobe Program] - Wilczek - 2022-04-30 10:14

^^^^^ i tried something like that, 3 other players were being counted as remotes, i should be the only remote (which most likely is a insim.net bug)


RE: [RDSR] Lights v.1.1.7 [Siren/Strobe Program] - Kyle - 2022-04-30 10:19

Yeah that's correct. A remote connection is an external player (e.g. not the local player).


RE: [RDSR] Lights v.1.1.7 [Siren/Strobe Program] - Wilczek - 2022-04-30 10:22

did an error explaining there, sorry
i meant, every other player SHOULD be a remote but not all of them were

elmo suggested doing:

if (npl.PType != PlayerTypes.PLT_REMOTE && npl.PType != PlayerTypes.PLT_AI)
checks if the player isn't a remote and isn't an ai

which technically should get only me, but it returned 4 players instead of one

i'd like to point out that same thing happened with trying NCN


RE: [RDSR] Lights v.1.1.7 [Siren/Strobe Program] - Kyle - 2022-04-30 10:51

I've just tried the code Elmo suggested locally and it worked fine for me (AI weren't detected on my test server. Went on TC2 and other players weren't detected either). Are you sure you got your checks right?


RE: [RDSR] Lights v.1.1.7 [Siren/Strobe Program] - Wilczek - 2022-04-30 10:53

yeah, i was testing it on TC One.
i'm gonna try something different though and see if it works


RE: [RDSR] Lights v.1.1.7 [Siren/Strobe Program] - Wilczek - 2022-04-30 11:15

alright i got it now, no need for usernames anymore - update soon


RE: [RDSR] Lights v.1.2[Siren/Strobe Program] - Wilczek - 2022-04-30 11:55

[RDSR] Lights v.1.2

- username not needed anymore, should detect automatically (thanks kyle)

- you can change keybinds now using commands:
/o sirenkey
/o strobekey
/o sirenoffkey

Download [RDSR] Lights v.1.2 from [RDSR] Forum


RE: [RDSR] Lights v.1.2[Siren/Strobe Program] - Wilczek - 2022-04-30 13:03

I would like to point out that I can't do anything about the virus detection beacuse of the following reasons:

- I would have to buy an certificate which are expensive
- Updates are often at the moment and for the app to gain reputation in security systems it would require a lot of downloads.


RE: [RDSR] Lights v.1.2[Siren/Strobe Program] - R e a l X - 2022-05-14 18:13

Hello. Any idea why not work RDSR lights for me?
[Image: 52073638655_056e5f4364_z.jpg]


RE: [RDSR] Lights v.1.2[Siren/Strobe Program] - Wilczek - 2022-05-16 10:12

(2022-05-14 18:13)Harii Wrote:  Hello. Any idea why not work RDSR lights for me?
[Image: 52073638655_056e5f4364_z.jpg]

Hello, try installing latest .NET Framework that you can find here:
https://dotnet.microsoft.com/en-us/download/dotnet-framework


RE: [RDSR] Lights v.1.2.5 [Siren/Strobe Program] - Wilczek - 2022-06-26 13:07

Changes:
- Revamped strobes code, will allow me to make some more strobe-related stuff in the future
- If the app won't connect, it shouldn't say "Connected" anymore, instead show how to fix it.
- Should be able to bind stuff to controller buttons (let me know if it doesn't work)


New:
- Added 2 strobe patterns (6,7)
- Button stuff:
[Image: I4Lno6L.png]
Will appear only when you have a tag. (COP,MED,RES,TOW,VCU)

1.2.6

- added /o buttons so you can change button visiblity