track blocks

omber

New member
Is there a way to define track blocks so that AI does not enter a single-line block of track that has another train in it.

The said track is separated into 6 blocks via singals already, but I'm not sure how to get a new trains thats approaching from one side to wait at the station rather the drive into the line into face of another train that is approaching from opposite direction...
 
I don't know if you're familiar with the token system used by many railways/roads, but this can be bodged in TRS.

Using the commands "control track at trackmark" and "release track at trackmark" with trackmarks given sensible names, you can recreate a reliable token system. If the token is already held, the next train will simply wait until it becomes available, and the drivers take it in turns on a "first come first serve" basis.

I used it on the single line sections of my tramway, and there is only one problem you should beware of and that is the AI getting it's priorities wrong and the train "occupying" the block is waiting elsewhere - similar to the "deadly embrace" found in computing.

BidMod.

edit: more info and a diagram:-

=======--------<TOKEN>-------========

This diagram is simple, but basically when train one reaches the end of the double track section to the left it collects the token, and proceeds across the single line. When it reaches the other side it releases the token (make sure the train is clear of the section when this happens).

Train two can then approach from the right and will collect the token if it is available, else it will wait until the section is clear and then proceed with the token. Trains are also protected against trains travelling in the same direction.
 
Last edited:
Omber, I"ve found that a good way to do this is to construct "Trap Points" where the Passing Loop joins the Single Line.Although AI driver will sometimes run through a red signal when they want to get onto the single line,if there are Trap Points past the Signal they will stay 20 metres away from it.If you do a Search for "3 way jubctions" I"m pretty sure I did a photo there.
 
Hmm I can try the catch points but I think the token system will work better .. this is like tokens on old model RR where you'd have to hold token to track to be in that track to avoid collisions ?
 
Ermmm. Token Block is how it works in real life, but I thought you meant how to do it in a train simulator?..:rolleyes:
 
I don't know if you're familiar with the token system used by many railways/roads, but this can be bodged in TRS.

Using the commands "control track at trackmark" and "release track at trackmark" with trackmarks given sensible names, you can recreate a reliable token system. If the token is already held, the next train will simply wait until it becomes available, and the drivers take it in turns on a "first come first serve" basis.

I used it on the single line sections of my tramway, and there is only one problem you should beware of and that is the AI getting it's priorities wrong and the train "occupying" the block is waiting elsewhere - similar to the "deadly embrace" found in computing.

BidMod.



edit: more info and a diagram:-

=======--------<TOKEN>-------========

This diagram is simple, but basically when train one reaches the end of the double track section to the left it collects the token, and proceeds across the single line. When it reaches the other side it releases the token (make sure the train is clear of the section when this happens).

Train two can then approach from the right and will collect the token if it is available, else it will wait until the section is clear and then proceed with the token. Trains are also protected against trains travelling in the same direction.

Am not able to find commands. What is the rule containing these please?
 
They're not rules, they're Driver Commands, or scripts by atilabarut. ControlTrackAtTrackMark and FreeTrackAtTrackMark.
Norm
 
A simpler solution, 1 signal both ends of the single line section controlling the points,1 signal both ends of the loops controlling access to the single line, track direction markers on the loops both ends both tracks.
Once a consist is on the single line the loop signal will hold the next train until the section is clear. if one does overrun the loop signal it will still wait if the single section is occupied.
 
I"ve tested this on a small route I built and if you install Trap Points the train WILL NOT overrun the loop signal.
 
Back
Top