DecoderPro User Guide - Configuration Files
This section attempts to answer the questions of what the configuration files contain and where they are located?
- Configuration file locations
-
There are two places where configuration files can be found:
- The user's JMRI preferences directory and its subdirectories. This is searched
first for any needed files. You should put any locally-modified
versions of files here so they don't get overwritten by a new version
of the program. Any files that the program writes to contain local
information, e.g. roster entries, are also written here.
The location of this varies by computer type.
- On a Linux machine, look for a .jmri directory in your home directory.
- On a Macintosh, look in the Preferences folder of the current System Folder if running MacOS 8 or 9, or the Library/Preferences folder in your user directory on MacOS X.
- On Windows, this can be in a number of places depending on which Windows version you're running and whether you have multiple users configured; Search for a "JMRI" directory to find it.
- The originally-distributed versions of files are contained in an 'xml' directory in the application package and its subdirectories. Anything you modify here will be lost when you update the program to a new version.
- The user's JMRI preferences directory and its subdirectories. This is searched
first for any needed files. You should put any locally-modified
versions of files here so they don't get overwritten by a new version
of the program. Any files that the program writes to contain local
information, e.g. roster entries, are also written here.
- Types of configuration files
-
Within these two locations, there are a number of types of configuration
files:
- Decoder definitions - Stored in the 'decoders' subdirectory, these define how a specific family of decoders is configured.
- Programmer definitions - Stored in the 'programmers' subdirectory, these define the formats for the various programming sheets that are available in Decoder Pro.
- Locomotive configurations - Stored in the 'roster' subdirectory, these record the specific configuration of each locomotive in your roster.
- General Config files
-
There are also a few general configuration files, which live in the
top-level xml or prefs directory:
- roster.xml - an index of your locomotives
- decoderIndex.xml - an index of the available decoder definition files. It also contains the information on which specific decoder model uses which file, how to identify them, and what options they implement.
- names.xml - not used during normal operation, this is a list of the standard variable names for use in programmer definitions.