Expand potential of TCS scripting
#121
Posted 13 October 2021 - 10:14 AM
I'm sorry about maybe stupid question. Unfortunately I don't know a lot about c# and programming.
Can a TCS script be written for one or little more controls only? For example, if I want to write a script only for cabSignal, based on non-NORMAL Signal Heads, does including of TCS files means that a speed limits of NORMAL Signal Heads doesn't appears for the player train in this case and they must be written into the script?
Regards
Oleg
#122
Posted 13 October 2021 - 11:23 AM
No, any TCS script is responsible for the behavior of several subsystems ordinarily controlled by Open Rails. So, your code must include instructions to control all of them. Off the top of my head, that includes the cab signal aspect, the signal speed limit, the overspeed alarm (if wanted), the vigilance alarm (if wanted), and the emergency brake.
#123
Posted 30 October 2021 - 11:03 PM
I have specified two additions of the SignalFeatures class:
- The current signal head type name (we currently only have the name of the main signal head)
- The current draw state name
They will be useful to determine which aspect is shown on the signal for signals not fitted with C# scripts.
https://blueprints.l.../tcs-extensions
If you have any other ideas to include, don't hesitate to propose them to me.
#124
Posted 04 September 2022 - 07:09 AM
These are useful for safety systems that cut the traction if doors are open.
#125
Posted 04 September 2022 - 10:10 AM
#126
Posted 04 September 2022 - 11:23 AM
- functions to forbid door opening on one side or both sides
- functions to command door opening and closing
For example, this can be used to:
- force door closing if the speed is above a defined speed.
- lock the doors on the track side
#127
Posted 05 September 2022 - 03:08 AM
Thanks for your feedback. I did a bit of refactoring on the door handling, and included TCS hooks to open and close doors, as well as for locking them.
#128
Posted 06 September 2022 - 06:46 AM
The signals are seen incorrectly by the system, red overlay non-existent (the railway stub is displayed on the Track Monitor), and if you leave the preset path (even in single player), only code 120 (yellow) is transmitted, even with green signals.
#129
Posted 21 September 2022 - 07:12 AM
Haran Banjo, on 06 September 2022 - 06:46 AM, said:
The signals are seen incorrectly by the system, red overlay non-existent (the railway stub is displayed on the Track Monitor), and if you leave the preset path (even in single player), only code 120 (yellow) is transmitted, even with green signals.
#130
Posted 22 September 2022 - 07:10 AM