Keyboard Shortcuts
Likes
Search
Changing Function Labels - again...
#functionlabels
Mid-last-year I asked about a way to update labels for functions, so that they matched how I re-programmed my WOWSound Steam.? Peter suggested I could with care (back up and rename) modify the xml file at the <functionlabels>?? </functionlabels> block for each loco, then rebuild the roster at FILE / REBUILD ROSTER (assuming I understood).
?
Perhaps I am doing something wrong.? For kicks, I modified the line for F4 for one loco as
?<functionlabel num="4" lockable="true" functionImage="" functionImageSelected="">Bart Simpson</functionlabel>
When I rebuilt the roster, Bart Simpson went away, and was replaced with the original value of "Whistle Quill"
?
Good thing I only tried one mod... and failed.
?
Am I not understanding where to change the value? |
开云体育Milt, Why do it that way? DecoderPro has a “Function Label” sheet that becomes available if using the programmer at “Advanced” level. Go to Edit>Preferences…>Roster>Programmer to set that level. ? Mark Granville |
开云体育Because I think he wants to change a lot of labels for a lot of locos. Becomes a pain doing that via DecoderPro unfortunately?Phil G On 21 Feb 2025, at 14:30, Mark Granville via groups.io <mfgranville@...> wrote:
|
开云体育On Fri, 21 Feb 2025 Phil G wrote: Interesting comment. Please clarify. The OP is not editing the individual xml files? Or if he is, it is easier to cut and paste rather than retyping the individual function entries? Or perhaps there is a single xml file that defines default function labels when they are not filled in? If so, I’d like to know about it. ? |
开云体育Yep. Editing the xmlTHOUGH
I just realised
If the OP is reading, you need to edit the roster ENTRY xml files for each loco, NOT ROSTER.XML. That may be why your edits so far don’t persist??
Phil G On 21 Feb 2025, at 16:00, Mark Granville via groups.io <mfgranville@...> wrote:
|
So it looks like I am editing the wrong xml file.? Should do this work in ENTRY.
?
I hope to be able to write/correct one block of xml text for a single loco, then cut/paste in the correction for each loco.
Too busy this morning to try it, tho.? Later this PM
?
Thanks for the direction/corrections!
Milt |
开云体育When you do a rebuild of the roster, it takes all the individual files in the roster FOLDER and creates a new roster.xml file in the user JMRI folderI suspect you’ve been editing the latter file and not the firmer (which you can think of as the “source” of the roster
Phil G On 21 Feb 2025, at 19:43, Milt Spanton via groups.io <milt.spanton@...> wrote:
|
Success!? Thanks - now looking in the right place. I don't think it will be any harder copying/pasting the individual loco files.
?
As a matter of housekeeping, can I get rid of all the .bak or unused files in the roster folder?
?
Suggestion, however: The individual loco files could point to a template for function names instead of spelling out each one.? That way I could create my templates 2 times (one diesel set, one steam set) and just reference the appropriate template. |