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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Bug reports
. . -> [Subject]  Materia Magica - problem with the compass

Materia Magica - problem with the compass

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


Posted by Ruthgul   (18 posts)  [Biography] bio
Date Fri 15 Apr 2011 07:10 PM (UTC)
Message
Hello :)

I have a little 'cosmetic' problem with Materia Magica's compass (where it shows the visible exits in a compass format).

For example, I see this:

A Shady Inlet - - -
(------------------------------------*Forested*---) - --(M)---> E
SW S SE
Visible Exits: E S Sw Se

(...)

instead of this:

A Shady Inlet - - -
(------------------------------------*Forested*---) - <---(M)---> E
SW S SE
Visible Exits: E S Sw Se

(...)

This seems to happen when I enter a room via recall, flee, blink, warp, or any other non-walk method.

Not sure if it's a client setting. But I tried with a clean world file (standard, without importing settings from my current world file), and it's doing the same.

Thanks in advance,

R.
[Go to top] top

Posted by Ruthgul   (18 posts)  [Biography] bio
Date Reply #1 on Fri 15 Apr 2011 07:17 PM (UTC)
Message
Sorry, my text capture didn't show very well :/

Here's a html capture:
http://d00m3d2di3.40gigs.com/captures/mm-compass.html
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #2 on Fri 15 Apr 2011 07:51 PM (UTC)

Amended on Fri 15 Apr 2011 07:53 PM (UTC) by Twisol

Message
You need to disable MUSHclient's MXP support. Go to Game -> Configure -> MXP/Pueblo and make sure that the "Use MXP/Pueblo" dropdown is set to "No - never". (Also let me know what it was set to originally)

[EDIT]: For the record, you can use [code] and [/code] around your preformatted text to preserve the spaces. Like so:

 A Shady Inlet                                          -      -      -
(------------------------------------*Forested*---)     - --(M)---> E
                                                        SW     S     SE
  Visible Exits: E S Sw Se


(You can click the "quote" link to see how I did it.)

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Ruthgul   (18 posts)  [Biography] bio
Date Reply #3 on Fri 15 Apr 2011 08:06 PM (UTC)
Message
Oh, I see. MXP is on. Sadly I use it (scripts, etc.).

Thank you :). Also, for reminding how to paste code. I'd forgotten about it :x
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #4 on Fri 15 Apr 2011 08:20 PM (UTC)
Message
Rebecca Madison said:

Oh, I see. MXP is on. Sadly I use it (scripts, etc.).

Thank you :). Also, for reminding how to paste code. I'd forgotten about it :x

Sounds like a bug in the MUD then, as all < and & that aren't used for MXP should be escaped as &lt; and &amp;.

No problem!

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Shadowfyr   USA  (1,786 posts)  [Biography] bio
Date Reply #5 on Fri 15 Apr 2011 10:35 PM (UTC)
Message
Sounds like the usual, "It worked in zMud, so we didn't bother to realize that zMud ignores its own specification when dealing with some cases of '<'."
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #6 on Fri 15 Apr 2011 11:02 PM (UTC)
Message
Ah, Materia Magica again. :)

Template:post=10507 Please see the forum thread: http://gammon.com.au/forum/?id=10507.


In that, I sigh and say:

Quote:

Every. Couple. Of. Months.

This question arises again and again, because Materia Magica (in this case) are not implementing the MXP spec correctly.


Then there is a lengthy discussion about MXP.

You could try this:

Template:post=7217 Please see the forum thread: http://gammon.com.au/forum/?id=7217.


In that is a plugin that tries to detect "valid" MXP and if it doesn't look like an MXP tag convert < to &lt; etc.

That might help you.

- Nick Gammon

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

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #7 on Fri 15 Apr 2011 11:04 PM (UTC)

Amended on Fri 15 Apr 2011 11:05 PM (UTC) by Twisol

Message
To be fair, I think the best behavior is to treat nonexistent/broken tags as visible text instead of hiding them. Browsers have all sorts of ways to deal with malformed HTML, even.

I don't know how zMUD or MUSHclient handle it (I didn't really explore that part of the code), but it seems like a sensible fallback.

[EDIT]: That's not to say that it's a good idea to exploit behavior that's not specced, and MM is still clearly at fault. :D

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Ruthgul   (18 posts)  [Biography] bio
Date Reply #8 on Sat 16 Apr 2011 01:47 AM (UTC)
Message
Hmm... the plugin is not working in this case, but you gave me an idea.

I made a trigger that "gags" (omit from output) the broken line and replaces it with a fixed one (using TriggerStyleRuns/ColourTell, etc.). Ugly but effective. :3

Thanks again ^^
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #9 on Sat 16 Apr 2011 02:38 AM (UTC)
Message
Rebecca Madison said:

Hmm... the plugin is not working in this case, but you gave me an idea.


Crude though it is, that plugin should work. I tested it on your example in your first post and it did indeed make the map appear OK.

- Nick Gammon

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

Posted by Ruthgul   (18 posts)  [Biography] bio
Date Reply #10 on Sat 16 Apr 2011 08:13 AM (UTC)
Message
Then I'm doing something wrong :/

Here's a sample output, with MXP_Tag_Fixer (2nd version):

 Stairwell                                              -      #      -
(-------------------------------------------------)     - &lt;-U-(M)---> -
                                                        -      S      -
  Visible Exits: (N) S U 


[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #11 on Sat 16 Apr 2011 10:42 PM (UTC)
Message
Are you fixing the tags twice? Make sure you don't have two such plugins installed. If MXP is enabled then you shouldn't see the &lt; unless it got processed twice.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[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.


33,556 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 HostDash]