Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Entire forum
➜ MUSHclient
➜ Suggestions
➜ Friendlier mcl load failure errors
Friendlier mcl load failure errors
|
Posting of new messages is disabled at present.
Refresh page
Posted by
| Victorious
(89 posts) Bio
|
Date
| Wed 27 Nov 2013 06:51 AM (UTC) |
Message
| Recently while creating a new plugin, I've had to edit the .mcl directly and have accidentally made the mcl unloadable (i.e accidentally deleting a <send> leaving a trigger or an alias unrecognized by mushclient). However, when mushclient fails to load that mcl, it doesn't specify which line, trigger or alias it had trouble with - requiring me to look through the mcl manually to see what's wrong. If there isn't already some existing way of identifying where errors are in mcl files, can mushclient be updated so it presents the user with more friendly error messages? | Top |
|
Posted by
| Nick Gammon
Australia (23,122 posts) Bio
Forum Administrator |
Date
| Reply #1 on Wed 27 Nov 2013 06:59 AM (UTC) |
Message
| Yes, I see your point. That wasn't helpful was it?
One method (and admittedly this isn't obvious) is to open another world file (or make a small temporary one) and then use File -> Import to load in your rogue .mcl file. I tested by deleting a </send> from a working world file, and then doing an import, and got this:
[WARNING] C:\Program Files\MUSHclient\worlds\whatever.MCL
Line 221: Elements terminated out of sequence, expected </send>, got </trigger> (Cannot load)
That took me straight to the offending line (221). Actually at the end of 220, but it noticed at the start of 221 that the </send> was missing. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,122 posts) Bio
Forum Administrator |
Date
| Reply #2 on Wed 27 Nov 2013 07:10 AM (UTC) |
Message
| |
Posted by
| Victorious
(89 posts) Bio
|
Date
| Reply #3 on Wed 27 Nov 2013 12:02 PM (UTC) |
Message
| Wow, thanks so much for the quick fix in 4.92 and that tip on importing an mcl. | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
15,810 views.
Posting of new messages is disabled at present.
Refresh page
top