Upcoming Games

(UTC times)


Full list
Add a game

Upcoming Events

No events to display

Timetable Writing

You are here: Home > Forum > General > General questions, comments, and issues > Timetable Writing

Page 1 of 1

Timetable Writing 11/12/2011 at 12:05 #24855
Cave87
Avatar
9 posts
Question for any timetable writers...

If I want to set a rule along the lines of 'if train A runs, then train B doesn't', or vice versa. How do I write this in to the rules?
Thanks

Log in to reply
Re: Timetable Writing 11/12/2011 at 12:19 #24856
ipswich
Avatar
247 posts
2R10A must not run if 2R10B runs should cover it
Log in to reply
Re: Timetable Writing 11/12/2011 at 12:25 #24857
Meld
Avatar
1111 posts
Use the MUTEX (MUTually EXclusive) rule - just insert both headcodes or TD's (whatever you prefer to call them) into the pop up box and the rules are automaticaly created. The bonus with MUTEX is that you can put more than 2 trains in.
Passed the age to be doing 'Spoon Feeding' !!!
Log in to reply
Re: Timetable Writing 11/12/2011 at 12:33 #24860
Steamer
Avatar
3985 posts
One of the trains referenced in the rule must have 'runs only as required XX% of the time' ticked in the timetable, with XX being any value between 1 and 99, otherwise the earliest train of the two will appear every time. See also this Wiki page.
"Don't stress/ relax/ let life roll off your backs./ Except for death and paying taxes/ everything in life.../ is only for now." (Avenue Q)
Log in to reply
The following user said thank you: Meld
Re: Timetable Writing 11/12/2011 at 12:44 #24861
Meld
Avatar
1111 posts
Thanks Steamer - there was something nagging me that i forgot something

Put it down to automatically clicking 'runs only as required' every time I set the rule up

Passed the age to be doing 'Spoon Feeding' !!!
Log in to reply
Re: Timetable Writing 11/12/2011 at 12:44 #24862
Cave87
Avatar
9 posts
Thank for that. I thought it was the mutually exclusive rule, but not having one train shown as only running x% of time, which would explain why it hasn't been working so far.
Thanks

Log in to reply
Re: Timetable Writing 11/12/2011 at 14:19 #24875
Peter Bennet
Avatar
5402 posts
The has been a problem with Mutually exclusive in some sims in that neither train entered but that seems OK in more recent core code.

Clive has done some further work on the core code in that past week or so as well as it was still not quite right.

The explanation I wrote in the WIKI for MutEx is also not quite right either as it appears mutually exclusive is a slightly different function to the rule pairs of [A notif B] plus [B notif A] which does work as expected. I got it a bit mixed up with the XOR key where by entering the list of trains you want A NotIf B rules for will generate the complete matrix of the NotIf rules.

Peter

I identify as half man half biscuit - crumbs!
Last edited: 11/12/2011 at 14:26 by Peter Bennet
Log in to reply
Re: Timetable Writing 11/12/2011 at 14:30 #24877
postal
Avatar
5265 posts
Online
" said:
The has been a problem with Mutually exclusive in some sims in that neither train entered but that seems OK in more recent core code.

Clive has done some further work on the core code in that past week or so as well as it was still not quite right.

The explanation I wrote in the WIKI for MutEx is also not quite right either as it appears mutually exclusive is a slightly different function to the rule pairs of [A notif B] plus [B notif A] which does work as expected. I got it a bit mixed up with the XOR key where by entering the list of trains you want A NotIf B rules for will generate the complete matrix of the NotIf rules.

Peter
Peter

Is it not the case that in some sims on earlier versions of the core code, the rule pairs of [A notif B] plus [B notif A] do not work as expected? Setting those two rules in the latest public release of the Edinburgh sim result in neither train entering.

“In life, there is always someone out there, who won’t like you, for whatever reason, don’t let the insecurities in their lives affect yours.” – Rashida Rowe
Log in to reply
Re: Timetable Writing 11/12/2011 at 16:17 #24884
Peter Bennet
Avatar
5402 posts
" said:
" said:
The has been a problem with Mutually exclusive in some sims in that neither train entered but that seems OK in more recent core code.

Clive has done some further work on the core code in that past week or so as well as it was still not quite right.

The explanation I wrote in the WIKI for MutEx is also not quite right either as it appears mutually exclusive is a slightly different function to the rule pairs of [A notif B] plus [B notif A] which does work as expected. I got it a bit mixed up with the XOR key where by entering the list of trains you want A NotIf B rules for will generate the complete matrix of the NotIf rules.

Peter
Peter

Is it not the case that in some sims on earlier versions of the core code, the rule pairs of [A notif B] plus [B notif A] do not work as expected? Setting those two rules in the latest public release of the Edinburgh sim result in neither train entering.
Yes, something like that, the discussion took some 35, in some cases quite complex, posting and I'm not minded to try and wade through it all again. Suffice to say there maybe problems on some Sims with some rules and the instructions on the Wiki may need tweaked.

Peter

I identify as half man half biscuit - crumbs!
Log in to reply
Re: Timetable Writing 13/12/2011 at 13:24 #25083
clive
Avatar
2789 posts
" said:
" said:
Is it not the case that in some sims on earlier versions of the core code, the rule pairs of [A notif B] plus [B notif A] do not work as expected? Setting those two rules in the latest public release of the Edinburgh sim result in neither train entering.
Yes, something like that, the discussion took some 35, in some cases quite complex, posting and I'm not minded to try and wade through it all again.
It also never did get to the bottom of what did and didn't happen in older versions of the core code; I was more worried about what *should* happen.

Future sims will have a new rule "XXXX and XXXX are alternatives" where the Xs can also be wildcards. This does the right thing without worrying about probabilities or anything else. If you put "1A01 and 1A02 are alternatives" and "1A03 and 1A02 are alternatives", then the simulation will pick one of 1A01, 1A02, and 1A03 at random to run. If you put "1A99-? are alternatives", then it will pick one at random out of all the 1A99-1, 1A99-2, etc.

Log in to reply
Re: Timetable Writing 13/12/2011 at 17:24 #25172
kbarber
Avatar
1743 posts
Online
" said:

Future sims will have a new rule "XXXX and XXXX are alternatives" where the Xs can also be wildcards. This does the right thing without worrying about probabilities or anything else. If you put "1A01 and 1A02 are alternatives" and "1A03 and 1A02 are alternatives", then the simulation will pick one of 1A01, 1A02, and 1A03 at random to run. If you put "1A99-? are alternatives", then it will pick one at random out of all the 1A99-1, 1A99-2, etc.

That sounds good... especially if it were then made possible to do something with percentages to influence the randomness (possibly a later development).

Log in to reply