¿ªÔÆÌåÓý

Error block MainEast unoccupied but has saved value, #blockvalues


 

Hi,
?
I have a new error message I don't understand :
?
14:03:09,111 t.display.layoutEditor.BlockValueFile ERROR - block MainEast unoccupied but has saved value, not setting any block values, rule=RESTOREONLYIFALLOCCUPIED [main]

What could that be?
?
Thanks
---------------------------------------------
Jean-Louis Paris-France
---------------------------------------------
JRMI 5.9.5 on Windows
DCC EX? on Arduino Mega
Java version 17.1.12
?


 

Jean
When you last closed jmri that blocks block value was not empty. On opening the panel now the block is not occupied so it's not restoring the value.
Steve G.
?


 

Thanks Steve,?

What is it for? Is there a way to avoid that?

Does that mean that we must open JRMI in the same state as when it was stopped?

I have another question : Is there a script I can use to automatically run a saved transit? in the dispatcher??

JeanLouisDelestre@...


De: "Steve_G via groups.io" <RailRodder22@...>
?: [email protected]
·¡²Ô±¹´Ç²â¨¦: Dimanche 12 Janvier 2025 14:52:50
Objet: Re: [jmriusers] Error block MainEast unoccupied but has saved value,

Jean
When you last closed jmri that blocks block value was not empty. On opening the panel now the block is not occupied so it's not restoring the value.
Steve G.
?


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


 

Jean Louis,

Look at the "Values" menu in the "Block" table. ?There are three options to control what should be done with the retained block values from the previous PanelPro session. ?Selecting the first or second option will eliminate the error message.

Dave Sand



----- Original message -----
From: "Jean-Louis Free via groups.io" <jeanlouisdelestre=[email protected]>
Subject: Re: [jmriusers] Error block MainEast unoccupied but has saved value,
Date: Sunday, January 12, 2025 8:47 AM

Thanks Steve,?














What is it for? Is there a way to avoid that?

Does that mean that we must open JRMI in the same state as when it was stopped?

I have another question : Is there a script I can use to automatically run a saved transit? in the dispatcher??


JeanLouisDelestre@...



De: "Steve_G via groups.io" <RailRodder22@...>
·¡²Ô±¹´Ç²â¨¦: Dimanche 12 Janvier 2025 14:52:50
Objet: Re: [jmriusers] Error block MainEast unoccupied but has saved value,

Jean
When you last closed jmri that blocks block value was not empty. On opening the panel now the block is not occupied so it's not restoring the value.
Steve G.
?


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


 

Dave,
OP asked, I have another question : Is there a script I can use to automatically run a saved transit? in the dispatcher??
Having run a few "grand resets" and pondered this question, I came to the conclusion that would not be possible.
Not possible because each transit has a specifically mapped section and there is no way to re-associate those sections.
Especially if the sections have been reassigned or rebuilt this would be impossible.
?
However, a textual reference (name, blocks, actions) would be helpful when recreating the transits after a grand reset.
Possible to script that reference? API calls to access that info?
?
--
Ken
NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959)
Loconet * JMRI 5.11.1 * OSX,Win10,Ubuntu
Blog: ?
Youtube:


 

Ken,

I read the question is whether it is possible to run a transit from a script. ?The answer is yes by running a train info file.

??????? dispFrame = jmri.InstanceManager.getDefault(jmri.jmrit.dispatcher.DispatcherFrame)
??????? x = dispFrame.loadTrainFromTrainInfo('file name')
??????? if x != 0:
? ? ? ? ? ? print 'Error starting train'

See?

It is also possible to run a Dispatcher train in LogixNG.


Dave Sand


----- Original message -----
From: "Ken Heywood via groups.io" <kheywood=[email protected]>
Subject: Re: [jmriusers] Error block MainEast unoccupied but has saved value,
Date: Monday, January 13, 2025 7:51 AM

Dave,
OP asked, I have another question : Is there a script I can use to automatically run a saved transit? in the dispatcher??
Having run a few "grand resets" and pondered this question, I came to the conclusion that would not be possible.
Not possible because each transit has a specifically mapped section and there is no way to re-associate those sections.
Especially if the sections have been reassigned or rebuilt this would be impossible.
?
However, a textual reference (name, blocks, actions) would be helpful when recreating the transits after a grand reset.
Possible to script that reference? API calls to access that info?
?
--
Ken
NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959)
Loconet * JMRI 5.11.1 * OSX,Win10,Ubuntu
Blog: ?
Youtube: