Same path for several trains ?!

AlexienSolarino

New member
Hello all,

I have a problem with mutton' "path rule".
If i have to assign the same path to two different trains,
the first train have the path "clear" and can proceed so the second train wait (correctly) for clearance.
But when the path is released, it will be removed from both train' lists !

My version of Trainz 2009 with SP4.
Can anyone help me ?
Thanks :)
 
Ok try putting in a wait command on the second train - long enough for the first train to complete its way through the junctions. If not no good we will think again.
 
Ok try putting in a wait command on the second train - long enough for the first train to complete its way through the junctions. If not no good we will think again.

At this way all works fine... But if I don' t know first which train will pass ?
For example, if both trains are under AI through 3-4 stations ?
Otherwise adding wait commands to all trains is good, but slows down the session if the path is long or interested track is used for transit...
 
Hi

Instead of one long path try breaking it down into shorter sections but call them one after another with the driver commands. e.g. Instead of path A being the whole route, break it into shorter sections and call them set path B, set path C, set path D, Autodrive. If you use the last junction in each section to release the junctions in that path it should allow the following train to set at least part of its path. It is difficult to know if this will work without knowing the actual track layout in the route.

Regards

Brian
 
You could use the post message and wait for message and clear commands. When a train has passed the last path point it can post message place the wait for message and clear command before the select path command. It wont matter which train arrives first if you enter those commands on all trains using that path. Which ever the second train is it wont move until it gets the message and once it has read the message it is deleted so the next train will need a new message posted by this second train. All you need is on launch of the driver session is to place a post message command so the first train will be able to read it.
 
Hi
Instead of one long path try breaking it down into shorter sections but call them one after another with the driver commands. e.g. Instead of path A being the whole route, break it into shorter sections and call them set path B, set path C, set path D, Autodrive. If you use the last junction in each section to release the junctions in that path it should allow the following train to set at least part of its path. It is difficult to know if this will work without knowing the actual track layout in the route.
Regards
Brian
Hi Brian;
is less probable for the trains asking the same occupied path.
But, for example, make one path with 1+2 switches or two paths with 1 and 2 switches, is the same because the first requested path is also the same...
You could use the post message and wait for message and clear commands. When a train has passed the last path point it can post message place the wait for message and clear command before the select path command. It wont matter which train arrives first if you enter those commands on all trains using that path. Which ever the second train is it wont move until it gets the message and once it has read the message it is deleted so the next train will need a new message posted by this second train. All you need is on launch of the driver session is to place a post message command so the first train will be able to read it.
Stagecoach, you have found the solution.
But two considerations:
1. I have to initialize the session, sending all message
2. If I have (obviously is not probable) more of 15 * 11 = 165 paths, i cannot invoke more times in security the same message.
At last, I would need a sort of "wait for past junction" command.
Because working with trackmark or trigger i have to study placement depending of longest train size. Exist a sort of that order ?
Thanks :)
 
The post message and wait for message and clear has a list of several drivers with several options. The drivers names do not matter as long as the sending and receiving message are the same. I changed the script for my use to use the station names on my route and increased the number of options. The commands would be something like
navigate to ********
wait for message and clear A 1
path command *******
auto drive
post message A 1
navigate to ********

I believe that the auto command only clears after the last wagon has passed the path set up. This would mean that any length train can use the path before the message is sent. Each path would use a different driver name and number so you could have path 1 = driver A 1 and path 2 = driver A 2 or path 80 = driver H 1
On initial set up you would need to post message for each path that needs this method. This can be done from a single train like a shunt engine that has no AI functions. The messages are not train dependant so can be sent by any train.
 
Back
Top