PDA

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



okhiu
August 13th, 2016, 04:49 PM
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.

http://i.imgur.com/Z4RYzIT.jpg

I am using TS12 build 61388

Thanks for help.

Edit: The train passes the trigger completely, should this be a problem?

Pendolino
August 13th, 2016, 06:48 PM
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

okhiu
August 15th, 2016, 02:32 AM
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.

okhiu
August 15th, 2016, 04:16 AM
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.

http://i.imgur.com/5JU7VKb.jpg

vincentrh
August 15th, 2016, 09:17 AM
Hello

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

http://i35.servimg.com/u/f35/15/44/90/87/410.jpg (http://www.servimg.com/view/15449087/747)

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

http://i35.servimg.com/u/f35/15/44/90/87/510.jpg (http://www.servimg.com/view/15449087/748)

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

Vincent

okhiu
August 18th, 2016, 04:21 PM
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