Wait on Train Stop/Start,<kuid:-25:1054>

okhiu

Active member
Hello,

Does anyone know why this rule isn't working as it should be?
I am using in a session, as a child rule of a Trigger Check Rule. After the trigger is activated, the AI needs to wait for the train to stop, then run other child rules. But when I place the Wait on Train Stop/Start <kuid:-25:1054> or the Wait on Train Stop/Start Rev.1,<kuid:400260:100638> , nothing happens. None of the rules run. If I delete the Wait on Train Stop/Start rule, all other rules run in the specified order.
I tried the Ordered List rule, no change.

Z4RYzIT.jpg


I am using TS12 build 61388

Thanks for help.

Edit: The train passes the trigger completely, should this be a problem?
 
I have not the Session and Rules Manual here, so I cannot be sure, but it is remotely possible that "Wait on Train Stop/Start" cannot be used as child rule.


With the arrangement shown in the screenshot all the child rules of the "Trigger Check" will run simultaneously. In my opinion, the "Wait on Train Stop/Start" checks if the train stops, but nothing happens as it has no child rules. Do the two messages appear on screen?


You should try this arrangement (every ">" indicates an indentation):


Trigger check
> Ordered list
>> Message popup
>> Wait on Train Stop/Start
>>> Ordered list
>>>> Wait
>>>> Play Sound
>>>> Message popup
 
I have not the Session and Rules Manual here, so I cannot be sure, but it is remotely possible that "Wait on Train Stop/Start" cannot be used as child rule.


With the arrangement shown in the screenshot all the child rules of the "Trigger Check" will run simultaneously. In my opinion, the "Wait on Train Stop/Start" checks if the train stops, but nothing happens as it has no child rules. Do the two messages appear on screen?


You should try this arrangement (every ">" indicates an indentation):


Trigger check
> Ordered list
>> Message popup
>> Wait on Train Stop/Start
>>> Ordered list
>>>> Wait
>>>> Play Sound
>>>> Message popup

Will try and let you know. I definetly placed the

>>>> Wait
>>>> Play Sound
>>>> Message popup

rules, as child rules of >> Wait on Train Stop/Start and nothing happend, but i havent used the Ordered List rule. I will make now a test as you recommended.

Also, the Wait on Train Stop/Start it would be useless if it doesnt work as a child of a Trigger Check rule.
 
It finally worked !

I don't know if its because of the Ordered List rule, or because I checked the "Wait for child rules to complete even if no trains are present in the rule triggers" option in the Trigger Check rule.

But it works !

This is how the setup looks now with the very important mention that the "Wait for child rules to complete even if no trains are present in the rule triggers" option in the Trigger Check rule needs to be checked.

5JU7VKb.jpg
 
Last edited:
Hello

May be should you proceed in a simpler way ? As shown bellow :



And here is the way as I use to configure the rule 'wait for train...' :



I've just tested this short example Under T:ANE.

Vincent
 
This really looks simpler, I tried to play a little with the "Navigation Display" rule but I don't really understand how that works.
I need to do this when I'm not so tired :D
 
Last edited:
Back
Top