¿ªÔÆÌåÓý

Locked Using Roster Groups and the Import functions


 

Hello everyone,? I am using JMRI 4.12 and I'm a bit befuddled by the import function.??? I have 3 roster groups, one for my layout, one for my friends layout, and one for DCC installation clients.
BTW,? I have read the JMRI Roster docs at? ? before I posted.

Two questions:

1)? The file created after an export appears not to be an xml file and is not the same type of file as roster.xml, correct?

2)?? I have an export file from my friends layout, I want to import it into the roster group designated for his layout.? When I attempt to "Import Roster", it wipes out my entire existing roster.?? I made a copy of my roster.xml before I started mucking with this issue; so no harm-no foul.?? How do I import his locos into my JMRI roster without wiping out my existing roster, preferably into the roster group set up for his locos?

Thanks to the community for any assistance you can provide.

Bob


 

See below:

On 3 Dec 2018, at 3:22 AM, R Morningstar <bobmorning@...> wrote:

1) The file created after an export appears not to be an xml file and is not the same type of file as roster.xml, correct?
The "roster.xml" file is not your roster. It's simply an index of some of the key parts of your roster, which is the individual ".xml" files in the "roster" folder, one for each loco. It can be recreated/updated at any time by using the Actions->Rebuild Roster Index menu item.
<>

The roster export file is actually a ZIP file of the individual ".xml" files in the "roster" folder. Give it a ".zip" extension to it and you can examine/extract the files from it.


2) I have an export file from my friends layout, I want to import it into the roster group designated for his layout. When I attempt to "Import Roster", it wipes out my entire existing roster. I made a copy of my roster.xml before I started mucking with this issue; so no harm-no foul.
Making a copy of "roster.xml" is a waste of time and doesn't save anything useful. The way to save your roster is make a copy of the "roster" folder. Hopefully that hasn't been lost.

Do an Actions->Rebuild Roster Index command and if will create an updated index of all the files currently in your "roster" folder.


How do I import his locos into my JMRI roster without wiping out my existing roster,
Extract all the files from his roster export file, manually add them to your "roster" folder and do an Actions->Rebuild Roster Index.

preferably into the roster group set up for his locos?
Not quite so easy. Roster group membership is stored in the individual ".xml" files, so any roster groups he already had will appear in your list of groups after you have done an Actions->Rebuild Roster Index.

If you right-click on the headings row of your roster list in the main roster window, there are various columns you can show/hide and then sort by, including last modified date. That may or may not be helpful.

The easy way would have been for him to add all his locos to a group before exporting them...

Dave in Australia