Keyboard Shortcuts
Likes
- Jmriusers
- Messages
Search
Locked
Re: Panel Editor - Signal Heads not able to be Dragged and Dropped from Palette
#paneleditor
Bob, I don't have any insight yet into the signal head issues. ?However, I recommend that custom components reside within the "user files location". This help page has a complete explanation of JMRI file structures: As indicated in the help page, the keyword for the user files location is "preference:". ?If you look at your xml files, you will see that you currently have your custom icons at "program:resources/icons/_RJE...". Since your zip file included the Wilbury_Spa profile, I am able to determine your some of your configuration. The profile.properties file has lots of information including some of the file location definitions:
The jython location is a default value, the user files location was set using "Preferences >> File Locations" and the roster location was set using Preferences >> Roster. ?I also set jython to be part of the user files location.? It appears that the custom icons are currently in their own J location. ?To facilitate automatic JMRI overrides they need to move to resources/icons within the user files J location. When you build image indexes you have a choice of Program Directory or Preferences Directory. ?Things selected from the program directory get the "program:" key while things selected from the preferences directory get the "preference:" key. The similar process works for icon sets. While migration is a one time event, it is a lot of work.
Make sure you have good backups. Dave Sand ----- Original message ----- From: Bob England <rje.bob@...> Subject: Re: [jmriusers] Panel Editor - Signal Heads not able to be Dragged and Dropped from Palette #paneleditor Date: Friday, February 07, 2020 7:59 AM Thanks Cliff ? I stored the files in the zip file under the same folder/sub-folders as they are under on my J: drive (where I keep copies of all my user modified files).? These same files are in the JMRI program directory on C:\Program Files (x86)\JMRI and in the C:\Uers\RJE\JMRI folder (note this is a Windows7 machine) ¨C all in the same folders.? I keep all altered files on my J: drive so I can back them up easily.? The custom icons (including panels icons I create in AutoCAD¨¤PDF¨¤JPG) that you see are manually copied to the appropriate icons subfolder in C:\Program Files (x86)\JMRI (under Resources I think(?) ¨C I¡¯m not at my layout computer at present) as I have no idea how to point to the J: drive to find these files. ? The scripts I have are to monitor the power setting and push its status into a sensor, to listen to my PM42 inputs, and to set my turnouts ¡°CLOSED¡± at start-up.? These are basically slight modifications to the canned scripts that come with JMRI.? The fourth script was my first attempt at writing my own script from scratch, and is intended to provide an interface between JMRI and a Walthers turntable I have ¨C it does not work properly.? I can send you copies of the script files if you think it would be helpful. ? All 4 Panel Editor files and the Layout Editor file automatically load when the program fires up; I don¡¯t have to load any manually.? I could not tell you which order they load in as JMRI loads the files.? I don¡¯t think it matters, as I created a new layout called ¡°TEST¡± and created a panel in it, and it exhibits the same difficulties as ¡°WILBURY SPA¡±. ? Sorry, I misunderstood your thought on ¡°copying mechanism¡±; I read ¡°coping¡± mechanism and thought it to be a special work-around process.? Yes, I do the copying mechanism thing you mention for all my user files, putting them in the three places noted above.? You mention that ¡°it is much safer to provide the start-up and file default portions of the Config Profile to consistently point to your locally modified files¡± ¨C do I do this by changing the default search location under ¡°Configuration¡± tab of ¡°Preferences¡±?? I tried this last night but it changed nothing, but I left the original JMRI program file folder on the list (with the box un-ticked). ? I hope this helps.? ? I¡¯d be interested in your thought on the error message I get when trying to change one of the bad signals to a different icon set: ? ¡°2020-02-05 19:09:54,619 ptionhandler.UncaughtExceptionHandler ERROR - Uncaught Exception caught by jmri.util.exceptionhandler.UncaughtExceptionHandler [AWT-EventQueue-0] ? I can¡¯t help but thinking this might point us in the right direction. ? Thanks for looking at this for me Cliff ! ? BobE ? From: [email protected] [mailto:[email protected]] On Behalf Of Cliff Anderson ? Bob, There is now a copy of your zip file on my computer, but I am having some difficulties unraveling how the files fit together. It appears from your file named "200206 - RJE - JMRI Files for Debugging\200206 - RJE - JMRI Files for Debugging\DRIVE J\RJE User Files\Wilbury_Spa\profile\profile.xml" that you execute several scripts during the startup process, but evidently load one or more of your panels manually after the startup process has completed. Or maybe one or more of those scripts load panel files. Please explain what is wrong with my summary. For the forensics activities, it is important for me to understand which panel file should be loaded or if multiple panel files are loaded, which order do you follow.
It is not likely that your signal icons problems are due to what you describe here, but the process does seem to allow for some ambiguity as to which of your versions might get left out or overwritten. Extra caution would be in order here.
There are numerous message threads on this groups messages record, but essentially the writers describe some kind of method for copying the folders with locally modified resources back into the "program:" folder. Some do it manually and some have developed elaborate batch or script files. It may take extra effort, but it is much safer to provide the startup and file default portions of the Config Profile to consistently point to your locally modified files.
It is entirely likely that we are looking at a symptom that is being caused by several small errors, rather than some big problem. Cliff |
Locked
Re: Setting Max Speed on Broadway Limited & Digitrax N Scale Decoders
3-point speed table or the 28-point speed table can not make an engine go faster.Yeah, but he didn't say at any stage what they are slower than. Are they slower than expected? Are they slower than another loco? Are they slower than another identical loco? Are they slower than a loco with a different decoder/motor/gear train ... ? we are attempting to guide a fix on an ill-defined problem. On Fri, 7 Feb 2020 at 05:16, <forfoum@...> wrote:
|
Scott, What version of Windows are you using?? It should not matter (because designer does not use JMRI), but what version of JMRI are you using? designer needs only 2 libraries outside of the standard Java libraries - jdom and log4j.? It appears that Java is not finding the jdom libraries, which exist because JMRI runs.? I have seen this a few times and don't know the cause.? On a Windows 7 Pro system, I got around the problem by creating a folder and added the designer .jar, .bat, and a sub-folder, named lib, containing the jdom and log4j .jar files from the JMRI lib folder.? I eventually expanded the jdom file by renaming it .zip and extracted the contents (via a right click and extract).? That worked.? I don't know the root cause, but I suspect it had something to do with the Windows settings on the files or folders - perhaps permissions. The .bat file that you posted tries to run designer twice - once by invoking Java directly and the second by going through the JMRI launcher, using designer.jar as the main file.? Since JMRI runs, the latter should also run, except it may not get the chance because the first failed.? Be sure you have commented out the first with the ::. Rodney |
Locked
Re: JMRI website down
The site should now be back.
There was a routing issue at the datacentre where our server is located which has now been resolved. Best regards, Matt H |
Locked
Re: Panel Editor - Signal Heads not able to be Dragged and Dropped from Palette
#paneleditor
Bob England
Thanks Dave
toggle quoted message
Show quoted text
I'll give it a try this evening. BobE -----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dave Heap Sent: February 07, 2020 8:55 AM To: [email protected] Subject: Re: [jmriusers] Panel Editor - Signal Heads not able to be Dragged and Dropped from Palette #paneleditor Bob, On 8 Feb 2020, at 1:01 AM, Bob England <rje.bob@...> wrote:just create the folders in the User Files location and delete them from theMy understanding was that if the files were automatically found in folders of the Program Location, in most cases they would automatically be found in the same folder structure within User Files Location. But if this doesn't work, my only other suggestion would be to try creating the same folder structure within the Settings Location and see if it finds them there. If neither works, I'll bow out of this and leave it to others. Dave in Australia |
Locked
Re: Panel Editor - Signal Heads not able to be Dragged and Dropped from Palette
#paneleditor
Bob,
On 8 Feb 2020, at 1:01 AM, Bob England <rje.bob@...> wrote:My understanding was that if the files were automatically found in folders of the Program Location, in most cases they would automatically be found in the same folder structure within User Files Location. But if this doesn't work, my only other suggestion would be to try creating the same folder structure within the Settings Location and see if it finds them there. If neither works, I'll bow out of this and leave it to others. Dave in Australia |
Edward Klein
Had a similar issue with 'no loco detected' with my EasyDcc system and decoderpro. I found that if I cleaned the programming track and the locomotive wheels this problem went away. Since then, right before I begin any programming, I give the programming track a quick wipe with my preferred track cleaner.?
|
This probably indicates one or more .jar file that Designer needs is missing.
There are several versions of the JDOM tool. JMRI currently uses version 2, but it used to use version 1. This looks like Designer is looking for version 1. The current file is lib/jdom2-2.0.6.jar Designer might be looking for lib/jdom.jar If that¡¯s the case, you can find a copy on this page: Bob On Feb 6, 2020, at 9:52 PM, scott.rose@... wrote:-- Bob Jacobsen rgj1927@... |
Locked
Re: SCRIPTING - Can a script obtain the names of classes that are already running
#scripting
Thanks Bob.? I'll go through that documentation tomorrow.? The site doesn't appear to be responding to me right now, and it's late anyway... |
Locked
Re: SCRIPTING - Can a script obtain the names of classes that are already running
#scripting
The info you¡¯re looking for is held in this:
So the code will look something like: if (jmri.jmrit.automat.AutomatSummary.get(¡°Name¡±) != None) : print "The Other Class is already running" else : print "The Other Class is NOT running" You can also iterate through the list of running automats, etc. This goes through the threads that extend jmri.jmrit.automat.AbstractAutomaton, but it doesn¡¯t track threads that don¡¯t. Bob On Feb 6, 2020, at 9:38 PM, Trevor_R <twr@...> wrote:-- Bob Jacobsen rgj1927@... |
Locked
Re: Panel Editor - Signal Heads not able to be Dragged and Dropped from Palette
#paneleditor
Bob England
Thanks Dave
toggle quoted message
Show quoted text
I did create the folders, but don't know how to point JMRI at them. I assume there is a way to do it but just have not found it yet. OR do I just create the folders in the User Files location and delete them from the Program Files location? Thanks again. BobE -----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dave Heap Sent: February 07, 2020 5:02 AM To: [email protected] Subject: Re: [jmriusers] Panel Editor - Signal Heads not able to be Dragged and Dropped from Palette #paneleditor Bob, On 7 Feb 2020, at 12:08 PM, Bob England <rje.bob@...> wrote:main JMRI program file area - can you point me in the right direction? I can find the listing under "HELP" and where to change a few directories under "PREFERENCES", but don't know how to change where JMRI finds the icon files. I'll keep poking to see if I can find it. I can't access a computer to check at present, but my memory is that if you wish to add/override icon or other files in a folder in the Program Location, you recreate the folder (and any necessary subfolders in User Files Location. The exception is for files in the "xml" folder, where you omit the "xml" folder level. Hopefully one of the developers or users will check/correct my memory. Dave in Australia |
Locked
Re: Panel Editor - Signal Heads not able to be Dragged and Dropped from Palette
#paneleditor
Bob England
¿ªÔÆÌåÓýThanks Cliff ? I stored the files in the zip file under the same folder/sub-folders as they are under on my J: drive (where I keep copies of all my user modified files).? These same files are in the JMRI program directory on C:\Program Files (x86)\JMRI and in the C:\Uers\RJE\JMRI folder (note this is a Windows7 machine) ¨C all in the same folders.? I keep all altered files on my J: drive so I can back them up easily.? The custom icons (including panels icons I create in AutoCAD¨¤PDF¨¤JPG) that you see are manually copied to the appropriate icons subfolder in C:\Program Files (x86)\JMRI (under Resources I think(?) ¨C I¡¯m not at my layout computer at present) as I have no idea how to point to the J: drive to find these files. ? The scripts I have are to monitor the power setting and push its status into a sensor, to listen to my PM42 inputs, and to set my turnouts ¡°CLOSED¡± at start-up.? These are basically slight modifications to the canned scripts that come with JMRI.? The fourth script was my first attempt at writing my own script from scratch, and is intended to provide an interface between JMRI and a Walthers turntable I have ¨C it does not work properly.? I can send you copies of the script files if you think it would be helpful. ? All 4 Panel Editor files and the Layout Editor file automatically load when the program fires up; I don¡¯t have to load any manually.? I could not tell you which order they load in as JMRI loads the files.? I don¡¯t think it matters, as I created a new layout called ¡°TEST¡± and created a panel in it, and it exhibits the same difficulties as ¡°WILBURY SPA¡±. ? Sorry, I misunderstood your thought on ¡°copying mechanism¡±; I read ¡°coping¡± mechanism and thought it to be a special work-around process.? Yes, I do the copying mechanism thing you mention for all my user files, putting them in the three places noted above.? You mention that ¡°it is much safer to provide the start-up and file default portions of the Config Profile to consistently point to your locally modified files¡± ¨C do I do this by changing the default search location under ¡°Configuration¡± tab of ¡°Preferences¡±?? I tried this last night but it changed nothing, but I left the original JMRI program file folder on the list (with the box un-ticked). ? I hope this helps.? ? I¡¯d be interested in your thought on the error message I get when trying to change one of the bad signals to a different icon set: ? ¡°2020-02-05 19:09:54,619 ptionhandler.UncaughtExceptionHandler ERROR - Uncaught Exception caught by jmri.util.exceptionhandler.UncaughtExceptionHandler [AWT-EventQueue-0] ? I can¡¯t help but thinking this might point us in the right direction. ? Thanks for looking at this for me Cliff ! ? BobE ? From: [email protected] [mailto:[email protected]] On Behalf Of Cliff Anderson
Sent: February 07, 2020 12:28 AM To: [email protected] Subject: Re: [jmriusers] Panel Editor - Signal Heads not able to be Dragged and Dropped from Palette #paneleditor ? Bob, There is now a copy of your zip file on my computer, but I am having some difficulties unraveling how the files fit together. It appears from your file named "200206 - RJE - JMRI Files for Debugging\200206 - RJE - JMRI Files for Debugging\DRIVE J\RJE User Files\Wilbury_Spa\profile\profile.xml" that you execute several scripts during the startup process, but evidently load one or more of your panels manually after the startup process has completed. Or maybe one or more of those scripts load panel files. Please explain what is wrong with my summary. For the forensics activities, it is important for me to understand which panel file should be loaded or if multiple panel files are loaded, which order do you follow.
It is not likely that your signal icons problems are due to what you describe here, but the process does seem to allow for some ambiguity as to which of your versions might get left out or overwritten. Extra caution would be in order here.
There are numerous message threads on this groups messages record, but essentially the writers describe some kind of method for copying the folders with locally modified resources back into the "program:" folder. Some do it manually and some have developed elaborate batch or script files. It may take extra effort, but it is much safer to provide the startup and file default portions of the Config Profile to consistently point to your locally modified files.
It is entirely likely that we are looking at a symptom that is being caused by several small errors, rather than some big problem. Cliff |
Locked
JMRI website down
The JMRI website is currently down - we're working on reinstating it as quickly as possible.
Apologies for the inconvenience. Best regards, Matt H |
Locked
Re: Cable Extension ?
Bruce:
NCE runs at a slow data rate well within the RS232 spec for up to a 50' cable run with a decent quality cable. I've installed an almost 50 footer for a friend using a no-name FTDI USB to PC (maybe 3') and the rest RS232 using Cat5e for my wire. Works like a champ Avoid running the RS232 along side any house power wiring or other wiring able to put noise on the RS232... Jim Albanowski |
Locked
Re: Panel Editor - Signal Heads not able to be Dragged and Dropped from Palette
#paneleditor
Bob,
On 7 Feb 2020, at 12:08 PM, Bob England <rje.bob@...> wrote:I can't access a computer to check at present, but my memory is that if you wish to add/override icon or other files in a folder in the Program Location, you recreate the folder (and any necessary subfolders in User Files Location. The exception is for files in the "xml" folder, where you omit the "xml" folder level. Hopefully one of the developers or users will check/correct my memory. Dave in Australia |
Locked
Re: Panel Editor - Signal Heads not able to be Dragged and Dropped from Palette
#paneleditor
Bob, There is now a copy of your zip file on my computer, but I am having some difficulties unraveling how the files fit together. It appears from your file named "200206 - RJE - JMRI Files for Debugging\200206 - RJE - JMRI Files for Debugging\DRIVE J\RJE User Files\Wilbury_Spa\profile\profile.xml" that you execute several scripts during the startup process, but evidently load one or more of your panels manually after the startup process has completed. Or maybe one or more of those scripts load panel files. Please explain what is wrong with my summary. For the forensics activities, it is important for me to understand which panel file should be loaded or if multiple panel files are loaded, which order do you follow.
It is not likely that your signal icons problems are due to what you describe here, but the process does seem to allow for some ambiguity as to which of your versions might get left out or overwritten. Extra caution would be in order here.
There are numerous message threads on this groups messages record, but essentially the writers describe some kind of method for copying the folders with locally modified resources back into the "program:" folder. Some do it manually and some have developed elaborate batch or script files. It may take extra effort, but it is much safer to provide the startup and file default portions of the Config Profile to consistently point to your locally modified files.
It is entirely likely that we are looking at a symptom that is being caused by several small errors, rather than some big problem. Cliff |
Locked
Re: Cable Extension ?
¿ªÔÆÌåÓýBruce, Hi Gang, I am reconfiguring my layout room and will now have a dedicated space on a desk for my laptop. Problem is that it is about 25 feet away from my NCE Powerhouse system. When I started with JMRI a few weeks back, I learned the hard way to follow the suggestions found here and bought a proper FDTI cable. After going back and trying with no success to find that post, I believe It was reported that if I needed to extend that cable, I could use a RS 232 or serial port cable which is a straight pass-thru cable? If you bought the ESU FTDI or RRCirKits FTDI cable, you don't need an RS232 extension cable, but you can add one if necessary. We have also used 10m (30 ft) Active USB Extension cables with these but it must be a cable labelled as "Active". Passive cables usually won't work satisfactorily past 5m. If you have connection problems without the RS232 cable, you may need to make a modification to your Power Pro box connector binding posts. See: <> Dave in Australia |
Hi,
I have a working JMRI system and have copied the CATS files into c:\program files (x86)\jmri. ? I have also placed log4j.jar into the same directory. Both 32 & 64 bit versions of java have been installed and I have tried configuring designer.bat to use either version (not at the same time).? Using java 8 update 241. I am able to open CAT using cats.bat but I get the following error when starting designer. ? I'm starting this from the directory itself rather than from an icon on the desktop.? I have checked the cats and designer documents but may have missed something. ? If anyone could assist, it would be appreciated.? Thank you C:\Program Files (x86)\JMRI>designer C:\Program Files (x86)\JMRI>java -Djava.ext.dirs=lib -Dsun.java2d.noddraw -cp designer.jar designer.gui.Ctc
Exception in thread "main" java.lang.NoClassDefFoundError: org/jdom/Content ??????? at designer.gui.Ctc.<init>(Ctc.java:151) ??????? at designer.gui.Ctc.main(Ctc.java:439) Caused by: java.lang.ClassNotFoundException: org.jdom.Content ??????? at java.net.URLClassLoader.findClass(Unknown Source) ??????? at java.lang.ClassLoader.loadClass(Unknown Source) ??????? at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) ??????? at java.lang.ClassLoader.loadClass(Unknown Source) ??????? ... 2 more C:\Program Files (x86)\JMRI>"C:\Program Files (x86)\JMRI\LaunchJMRI.exe" designer.gui.Ctc
C:\Program Files (x86)\JMRI> Designer.bat file :: This bat file has 5 different commands for launching designer.? Only those without :: the comment annotation (::) will be executed.? To select one, edit out the :: comment annotation (::) and add it to any lines without it. :: Use the following line if Windows knows about Java
java -Djava.ext.dirs=lib -Dsun.java2d.noddraw -cp designer.jar designer.gui.Ctc :: Use the following line if Windows does not know about Java and it is Java 8
:: on a 32 bit Windows system :: "C:\Program Files (x86)\Java\jre1.8.0_241\bin\java.exe" -Djava.ext.dirs=lib -Dsun.java2d.noddraw -cp designer.jar designer.gui.Ctc :: Use the following line if Windows does not know about Java and it is Java 8
:: on a 64 bit Windows system :: "C:\Program Files\Java\jre1.8.0_241\bin\java.exe" -Djava.ext.dirs=lib -Dsun.java2d.noddraw -cp designer.jar designer.gui.Ctc :: This works for Windows 32 bit
"C:\Program Files (x86)\JMRI\LaunchJMRI.exe" designer.gui.Ctc :: This works for Windows 64 bit :: "C:\Program Files\JMRI\LaunchJMRI.exe" designer.gui.Ctc Regards Scott Rose |
Locked
Re: DecoderPro Question
Dick,
On 7 Feb 2020, at 3:28 AM, rmckibben@... wrote:A CV value change on the CVs tab will update the affected CV in any other tab(s). However: 1) As Marc has said, you need to write the changes to the decoder. 2) If you're trying to change the Function Map by using the CVs tab instead of on the Function Map pane, there's a good chance you'll mess things up, particularly if you are using a modern sound decoder like ESU V4, Select or 5 or Tsunami2 or Econami. Don't say you haven't been warned... You may end up finding out about the JMRI Resets menu item to reset the decoder (not JMRI) to factory defaults. Dave in Australia |
Locked
Re: Seeking decoder selection for new Walthers Proto GP7 with Tsunami
¿ªÔÆÌåÓýMarc, On 7 Feb 2020, at 5:10 AM, forfoum@... wrote: Disregard ?my previous query about the Walthers GP35 EQ and Reverb.. My fault ' Show ?Empty Programmer tabs ' ?was not ticked. EQ and Reverb are present On my JMRI with "Tsunami Diesel OEM"->"GP35", the Equaliser and Reverb tabs show irrespective of whether or not ?"Show ?Empty Programmer tabs" is ticked or not. In both cases they are actually empty (no CVs to change). This behaviour is due to a deficiency in the XML code for this decoder. By deliberate design, custom panes do not participate in empty tab hiding. It's assumed an empty pane created by a developer is there for good reason (e.g. A README pane). If the developer wants a custom pane hidden when empty, this must be done by using include/exclude or qualifier elements in the pane XML. Detailed at: <> Dave in Australia |