Elvas Tower: New Token "ORTSBlinkFrequency()" - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

New Token "ORTSBlinkFrequency()" Rate Topic: -----

#1 User is offline   Alessio 

  • Apprentice
  • Group: Status: Switchman
  • Posts: 9
  • Joined: 09-March 21
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 09 March 2024 - 06:47 AM

Hi everyone!

I was thinking if anyone would be interested in helping me add a new token, called "ORTSBlinkFrequency()", that allows a "MultiStateDisplay" command flashing at a custom frequency in cab when added to the State() block of the MultiStateDisplay, in the .cvf file.


Something similar to the already existing "ORTSCycleTime" token, which controls the total time of the animation.


I've seen this topic, but the problem with using the Blink function is that the code has to be run every frame to keep updating the blinking status, so for my purpose it cannot be used.
Furthermore, it's a helper class so it must rely on a C# script, therefore it's not always usable.


I would be very happy if someone would like to help me implement this new feature which could be very useful to many others!

#2 User is offline   Weter 

  • Member, Board of Directors
  • PipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 6,932
  • Joined: 01-June 20
  • Gender:Not Telling
  • Simulator:ORTS
  • Country:

Posted 09 March 2024 - 08:11 AM

Hello.
MSTS *.cvf-files syntax had such parameter, which still works with ORTS.
There is an example.
See there and above that post.
https://www.elvastow...post__p__299133

#3 User is offline   Alessio 

  • Apprentice
  • Group: Status: Switchman
  • Posts: 9
  • Joined: 09-March 21
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 09 March 2024 - 08:25 AM

Hi!
Thanks for the help, but I still can't comprend which one i need to use to make an indicator light blink...

#4 User is offline   Weter 

  • Member, Board of Directors
  • PipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 6,932
  • Joined: 01-June 20
  • Gender:Not Telling
  • Simulator:ORTS
  • Country:

Posted 09 March 2024 - 08:35 AM

There's a cab with flashing alerter lights, where that parameter was seen.
http://www.trainsim....ad/get/?id=2290 (5,4 MB)

#5 User is offline   Alessio 

  • Apprentice
  • Group: Status: Switchman
  • Posts: 9
  • Joined: 09-March 21
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 10 March 2024 - 02:35 AM

It's already possible to make a control blinking in cab, but the frequency cannot be changed... which is what I'm suggesting to add.

A token which can be added in the .cvf file, similar to ORTSCycleTime (), which allows you to change the frequency of the blinking by modifying only the section of a warning light in the .cvf, for example

#6 User is offline   Weter 

  • Member, Board of Directors
  • PipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 6,932
  • Joined: 01-June 20
  • Gender:Not Telling
  • Simulator:ORTS
  • Country:

Posted 10 March 2024 - 04:55 AM

I don't remember about adjustability of blinking frequency, so, sorry for false hope, in case it actually I adjustable now.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users