Succession train journeys and locomotive functions
Subsequent train journeys
Light is turned off
At the beginning of the train journey, locomotive functions such as sound and light start. These are switched off again at the end of the train journey and should start again at the beginning of the next journey.
Unfortunately, that only happens sometimes. Sometimes the light goes on during the second round of the train, sometimes the sound, sometimes nothing at all, sometimes everything...
Locomotive functions without stopping
Silvio Richter writes in the forum: During yesterday's meeting we developed several strategies on how to implement it without the train having to stop:
1) train journey sequence
the locomotive functions are entered into the sequence at the start and end the sequence only consists of this train journey, which has itself as the successor the switch is entered into the train journey as a condition if this switch is on, the sequence runs endlessly; switch off, the sequence comes to an end and the locomotive functions are switched off
2) conditional macro
the locomotive functions are entered into the train journey in the form of two macros the macro for switching off the locomotive functions receives the switch as a condition the train journey has itself as the successor and the switch as a condition
3) switch query in target operation
the current target operations are extended with a prerequisite and tokens Attachment:
- Fig: Macro target operation
4) Query whether the train is moving or standing
Similar to 3), you can use a variable to query whether the train is moving or standing at the end of the train journey. However, this has the disadvantage that if it is standing for operational reasons, even though the train journey is active, the train also carries out the operations.
Weblinks
- Source: Forum
- TC-wiki: Use train journey multiple times
- TC-wiki: Start locomotive functions when the train is moving
- -- Uslex (Diskussion) 21:39, 30. Dez. 2024 (CET)
- bearbeitet: DeepPurple 08:16, 9. Jan. 2025