Having a problem getting Session Rules to reset

jcardana

Trainz Enthusiast
The short story:
I have a loco where I need to keep track of 8 different situations. So I'm using the ChangeSVariables Driver command to set them and Session Variables (kuid2:122381:10015:1) Rule to check them.

During the first round things go ok. The status simply increments by one. But when the status goes back to the beginning i.e. from 8 to 1 I don't get the messages I'm supposed to.

So the long story:
I'm using Vulcan's aircraft carrier and I'm dealing with aircraft. I need to keep track of what the aircraft is doing... 101=0 is Parked, 1 is taxiing, 2=On the CAT, 3=Airborne ... 8 is back on deck. Then I need to to start again at 1 while taxiing to the parking space and the to 0 for parked.

I'm using Session variables to compare that 101 is equal to 1, 2, 3 etc. Indented under this, I'm using the MC:Add Message to state "101 is taxiing" or "101 is on CAT1".

The sequence goes well until the aircraft is back on deck, it doesn't go back to taxing.

I have tried Reset List, Ordered List, Progressive list, Reset/Ordered List and Ordered/Rest list.

It seems the Session Variables rule isn't resetting. Which I think is so I don't get a long list of messages while the variable is in one setting. But why isn't it resetting?

I have also tried indenting each Session Variables under the one previous.

Any ideas?

trainz_20120918_0000.jpg
 
I'm no expert at this stuff, but I wonder if the 101=0 confusing the system with 1=taxiing. Try changing the 101=0 another variable and see if that works.

One of the things I have noticed with triggers though, and again I'm no expert at this stuff, scripts will sometimes only work once. After they have completed their task one time they never seem to work again. I'm not sure, but perhaps this might also be the case here.

John
 
Back
Top