¿ªÔÆÌåÓý

Chaining transits with a different locomotive #dispatcher


 

Hi,

Still continuing to test chaining of transits.

It look like if you chain a new tansit using "load traininfo¡±? but with a different locomotive, dispatcher doesn't use the new locomotive but continue to run the new transit with the previous locomotive.

Any idea?

JeanLouisDelestre@...


De: "Ken Heywood via groups.io" <kheywood@...>
?: [email protected]
·¡²Ô±¹´Ç²â¨¦: Dimanche 23 Mars 2025 07:57:36
Objet: Re: [jmriusers] Dispatcher question - chaining transits #dispatcher

I use transit actions ¡°load traininfo¡± and then ¡°terminate¡± at the end of a transit. This is especially useful when your train has a reversing move.
--
Ken
NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959)
Loconet * JMRI 5.11.1 * OSX,Win10,Ubuntu
Blog: ?
Youtube:


--
---------------------------------------------
Jean-Louis Paris-France
---------------------------------------------
JRMI 5.9.5 on Windows
DCC EX? on Arduino Mega
Java version 17.1.12
?


 

So, you are not continuing this train with a new transit, you are in a "tag-team" with another train.
That is, somewhere in the middle or end of Transit A you want to run a different train on Transit B.
If you built transits with a 1:1 correspondence with trainonfo files, you can specify the locomotive in traininfo.
When you "load traininfo B" action in transit A and that traininfo file B specifies locomotive B, then Transit B will run loco B.
--
Ken
NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959)
Loconet * JMRI 5.11.1 * OSX,Win10,Ubuntu
Blog: ?
Youtube:


 

Ken,

That is what I'm doing.

I run a transit A with a locomotive A, then I terminale transit A and load transit B with? a locomotive B. The transit B execute OK except that dispatcher is still running locomotive A.? That is maybe That is? laybe I use reverse at end in transit A?
?
What do tou think?

JeanLouisDelestre@...


De: "Ken Heywood via groups.io" <kheywood@...>
?: [email protected]
·¡²Ô±¹´Ç²â¨¦: Mardi 25 Mars 2025 10:13:08
Objet: Re: [jmriusers] Chaining transits with a different locomotive #dispatcher

So, you are not continuing this train with a new transit, you are in a "tag-team" with another train.
That is, somewhere in the middle or end of Transit A you want to run a different train on Transit B.
If you built transits with a 1:1 correspondence with trainonfo files, you can specify the locomotive in traininfo.
When you "load traininfo B" action in transit A and that traininfo file B specifies locomotive B, then Transit B will run loco B.
--
Ken
NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959)
Loconet * JMRI 5.11.1 * OSX,Win10,Ubuntu
Blog: ?
Youtube:


--
---------------------------------------------
Jean-Louis Paris-France
---------------------------------------------
JRMI 5.9.5 on Windows
DCC EX? on Arduino Mega
Java version 17.1.12
?


 

Jean
I will take a look at it this aft/eve
Steve G.
?


 

You need to terminate Transit A in the last step of the transit.
--
Ken
NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959)
Loconet * JMRI 5.11.4 * OSX,Win10,Ubuntu
Blog: ?
Youtube:


 

Ken,

How do you do that? Threre is nothing to terminate in the transit definition, only on the "create new train" screen.


JeanLouisDelestre@...


De: "Ken Heywood via groups.io" <kheywood@...>
?: [email protected]
·¡²Ô±¹´Ç²â¨¦: Mardi 25 Mars 2025 16:55:18
Objet: Re: [jmriusers] Chaining transits with a different locomotive #dispatcher

You need to terminate Transit A in the last step of the transit.
--
Ken
NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959)
Loconet * JMRI 5.11.4 * OSX,Win10,Ubuntu
Blog: ?
Youtube:


--
---------------------------------------------
Jean-Louis Paris-France
---------------------------------------------
JRMI 5.9.5 on Windows
DCC EX? on Arduino Mega
Java version 17.1.12
?


 

In the last step of your transit, there are actions.
One action is the "load traininfo", another of significance is "terminate".
Here's what I do on a reverse move.
?
When I want train A to stop and reverse, In the last transit step (where the train stops), add action "load traininfo file".
The new traininfo file references the opposite direction and a unique transit to run in that direction.
(I've never had success to my satisfaction using a reverse move in a single transit)
After the "load traininfo", do a "terminate" action with a 1.5second delay.
That gives Transit A a chance to initiate the new transit and avoids the "block already occupied" error.
?
Now, that's the reverse move.
Simply add another "load traininfo" for Locomotive B either before of after the first "load traininfo" action.
That will kickoff both Train A in reverse and Train B.
?
Just remember to do all that loading and terminating in transit actions, not in the traininfo file (no reverse, no terminate, no load).
--
Ken
NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959)
Loconet * JMRI 5.11.4 * OSX,Win10,Ubuntu
Blog: ?
Youtube:


 

Jean , trainsit actions
What is specified in your traininfo file that you are loading, Roster, User... etc
In the Load Traininfo are you specifying Default/Current/Roster/Address??
?
I have found a problem that generates an error specifying that there is no DCC address, but canot reproduce the problem as reported. PS the trainname may be the same, but the DCC address should be different.
?
Steve G.
?


 

Many thanks Ken.?

I'll try that today.

JeanLouisDelestre@...


De: "Ken Heywood via groups.io" <kheywood@...>
?: [email protected]
·¡²Ô±¹´Ç²â¨¦: Mardi 25 Mars 2025 20:45:04
Objet: Re: [jmriusers] Chaining transits with a different locomotive #dispatcher

In the last step of your transit, there are actions.
One action is the "load traininfo", another of significance is "terminate".
Here's what I do on a reverse move.
?
When I want train A to stop and reverse, In the last transit step (where the train stops), add action "load traininfo file".
The new traininfo file references the opposite direction and a unique transit to run in that direction.
(I've never had success to my satisfaction using a reverse move in a single transit)
After the "load traininfo", do a "terminate" action with a 1.5second delay.
That gives Transit A a chance to initiate the new transit and avoids the "block already occupied" error.
?
Now, that's the reverse move.
Simply add another "load traininfo" for Locomotive B either before of after the first "load traininfo" action.
That will kickoff both Train A in reverse and Train B.
?
Just remember to do all that loading and terminating in transit actions, not in the traininfo file (no reverse, no terminate, no load).
--
Ken
NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959)
Loconet * JMRI 5.11.4 * OSX,Win10,Ubuntu
Blog: ?
Youtube:


--
---------------------------------------------
Jean-Louis Paris-France
---------------------------------------------
JRMI 5.9.5 on Windows
DCC EX? on Arduino Mega
Java version 17.1.12
?


 

Thanks Steve,

I'll try that.

JeanLouisDelestre@...


De: "Steve_G via groups.io" <RailRodder22@...>
?: [email protected]
·¡²Ô±¹´Ç²â¨¦: Mardi 25 Mars 2025 21:27:21
Objet: Re: [jmriusers] Chaining transits with a different locomotive #dispatcher

Jean , trainsit actions
What is specified in your traininfo file that you are loading, Roster, User... etc
In the Load Traininfo are you specifying Default/Current/Roster/Address??
?
I have found a problem that generates an error specifying that there is no DCC address, but canot reproduce the problem as reported. PS the trainname may be the same, but the DCC address should be different.
?
Steve G.
?


--
---------------------------------------------
Jean-Louis Paris-France
---------------------------------------------
JRMI 5.9.5 on Windows
DCC EX? on Arduino Mega
Java version 17.1.12
?


 

Stvge,

When you try to add an action, I don't think JRMI stores the locomotive with either its DCC number or its name in the roster. This causes an error:

ERROR - No train in start block 'Bypass (IB:AUTO:0001)', cannot create an Active Train [AWT-EventQueue-0]

What could that be ?

JeanLouisDelestre@...


De: "Steve_G via groups.io" <RailRodder22@...>
?: [email protected]
·¡²Ô±¹´Ç²â¨¦: Mardi 25 Mars 2025 21:27:21
Objet: Re: [jmriusers] Chaining transits with a different locomotive #dispatcher

Jean , trainsit actions
What is specified in your traininfo file that you are loading, Roster, User... etc
In the Load Traininfo are you specifying Default/Current/Roster/Address??
?
I have found a problem that generates an error specifying that there is no DCC address, but canot reproduce the problem as reported. PS the trainname may be the same, but the DCC address should be different.
?
Steve G.
?


--
---------------------------------------------
Jean-Louis Paris-France
---------------------------------------------
JRMI 5.9.5 on Windows
DCC EX? on Arduino Mega
Java version 17.1.12
?


 

On Sun, Mar 30, 2025 at 03:57 AM, Jean-Louis Free wrote:
ERROR - No train in start block 'Bypass (IB:AUTO:0001)', cannot create an Active Train [AWT-EventQueue-0]
Jean
This indicates that the block where the train is starting is unoccupied. If the roster/address is missing the error message states that. There is an outstanding bug where it thinks the address is missing which I am working on.
Steve G.
?


 

Ha,

Do you mean that there is a bug?

An idea on when it will be fixed?

Many thanks.

JeanLouisDelestre@...


De: "Steve_G via groups.io" <RailRodder22@...>
?: [email protected]
·¡²Ô±¹´Ç²â¨¦: Dimanche 30 Mars 2025 10:46:49
Objet: Re: [jmriusers] Chaining transits with a different locomotive #dispatcher


On Sun, Mar 30, 2025 at 03:57 AM, Jean-Louis Free wrote:
ERROR - No train in start block 'Bypass (IB:AUTO:0001)', cannot create an Active Train [AWT-EventQueue-0]
Jean
This indicates that the block where the train is starting is unoccupied. If the roster/address is missing the error message states that. There is an outstanding bug where it thinks the address is missing which I am working on.
Steve G.
?


--
---------------------------------------------
Jean-Louis Paris-France
---------------------------------------------
JRMI 5.9.5 on Windows
DCC EX? on Arduino Mega
Java version 17.1.12
?


 

Jean
There is at least one bug, but thats not what is causing your problem, it produces a very distinct error message.
The first problem you had, abouit a train running using the wrong dcc address may be a new bug, but without the information I asked for I cannot recreate.
You current problem is not a bug, you appear to be trying to start a train that isnt in its designated starting position.
Steve G.
?


 

Stev,

There is a train in the block.

The thing is that? whan I try to add the action in the transit, JRMI doesnt' store the locomotive.? I even try a roster entry or a DCC address. No difference.

Here is an example, I've added the BR-218 machine to the action and save the transit :


But when I try to relaod the transit the locomotive has gone.


Any idea.?
JeanLouisDelestre@...


De: "Steve_G via groups.io" <RailRodder22@...>
?: [email protected]
·¡²Ô±¹´Ç²â¨¦: Dimanche 30 Mars 2025 15:19:55
Objet: Re: [jmriusers] Chaining transits with a different locomotive #dispatcher

Jean
There is at least one bug, but thats not what is causing your problem, it produces a very distinct error message.
The first problem you had, abouit a train running using the wrong dcc address may be a new bug, but without the information I asked for I cannot recreate.
You current problem is not a bug, you appear to be trying to start a train that isnt in its designated starting position.
Steve G.
?


--
---------------------------------------------
Jean-Louis Paris-France
---------------------------------------------
JRMI 5.9.5 on Windows
DCC EX? on Arduino Mega
Java version 17.1.12
?


 

Jean
Thats a new one. I can reproduce.
Steve G.


 

Jean
I have a fix. Don't know when it will appear.
In the mean time, if the last thing you do is save the loading action, and don't read or write any other action, it should work.
Steve G


 

OK thanks Steve,

I'll try the work around.

Even a vague idea on when the fix will be available?

JeanLouisDelestre@...


De: "Steve_G via groups.io" <RailRodder22@...>
?: [email protected]
·¡²Ô±¹´Ç²â¨¦: Lundi 31 Mars 2025 01:34:09
Objet: Re: [jmriusers] Chaining transits with a different locomotive #dispatcher

Jean
I have a fix. Don't know when it will appear.
In the mean time, if the last thing you do is save the loading action, and don't read or write any other action, it should work.
Steve G


--
---------------------------------------------
Jean-Louis Paris-France
---------------------------------------------
JRMI 5.9.5 on Windows
DCC EX? on Arduino Mega
Java version 17.1.12
?


 

I never ran into this problem because I define a unique traininfo file for a specific locomotive and move.
I do that because I run (mostly) to safe sections which are usually depots and use load traininfo to continue that particular train.
It is also useful to reverse a train, again, by continuing that train with a new traininfo file and transit.
Copying a traininfo file and modifying the locomotive is easy.
I use one to one correspondence for trainfinfo to transit and I customize transits for locomotive characteristics.
My only lament is that there is no easy way to copy transits for modifications.
--
Ken
NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959)
Loconet * JMRI 5.11.4 * OSX,Win10,Ubuntu
Blog: ?
Youtube:


 

Ken: "Duplicate" transit and then edit.
Jean 48 hrs should get it in the nightly Development build. In changes " " should show up on the first build its included in.
Steve G.
?