开云体育

Locked Re: Route Table "Automatically Generate System Name" overwriting existing entries #4-18 #routes #mac-os #tables


 

Simon,

Based on your description, here are the facts as I see them.

  • You probably meant to say I2R:AUTO:0001. ?Not IR2:AUTO:0001.
  • You have the JMRI connection defined as "None".

If the facts are correct, then here is what is happening,

The None connection type creates a second Internal connection. ?The first one has a connection prefix of ?I and the second one is I2. ?This results in names like I2R.... or I2S.... etc. ?I never use None because it causes problems like this. ?If you have a planned DCC system, you can use it and specify the connection type as Simulator. ?I use Digitrax for my simulated connections.

Prior to test release 4.19.3, the auto number code incremented the value after the first 8 characters, which normally leaves 0001, 0002, etc. ?With None connection type, the value after the first 8 charactrers is ":0001". ?Notice the colon. ?When arithmetic is done on that, it fails so 0001 is used instead.

If you are not using None for the connection and the first part of the really is IR2, then you should only need to remove the 2.

Dave Sand

----- Original message -----
From: SimonB <simon@...>
Subject: [jmriusers] Route Table "Automatically Generate System Name" overwriting existing entries #4-18 #routes #mac-os #tables
Date: Wednesday, May 06, 2020 3:00 PM

Hi all,

It may be something obvious that I've overlooked, but when I re-open a previously saved Panel, add a new Route to the existing route table and choose "Automatically Generate System Name", the name generated always begins at 0001 (eg IR2:AUTO:0001). This overwrites the existing route that has this automatically generated system name from an earlier session.

Is there anywhere that I can specify what integer the sequence should begin with, in order to avoid this happening?

I've been hacking around the problem by doing a search and replace on the xml file for IR2:AUTO: to some other string (eg IR2:EXISTING:) prior to re-opening a panel to continue working on it.

I have no control system attached, I'm using JMRI to visualise and experiment with routes on a layout plan exported from RailModellerPro.

PanelPro 4.18+R37ad3d0, Java version 10.0.2 on Mac OSX 10.11.6

Thanks for any pointers.
Simon

Join [email protected] to automatically receive all group messages.