[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Suggestions
. . -> [Subject]  Friendlier mcl load failure errors
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Friendlier mcl load failure errors

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Victorious   (85 posts)  [Biography] 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?
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] 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
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Wed 27 Nov 2013 07:10 AM (UTC)
Message
Fixed in version 4.92.

https://github.com/nickgammon/mushclient/commit/1a731fc


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Victorious   (85 posts)  [Biography] 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.
[Go to top] 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.


3,292 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]