Search FAQ

Gammon Forum

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 ➜ MXP and Pueblo ➜ MXP SEND Tag multiple commands

MXP SEND Tag multiple commands

Posting of new messages is disabled at present.

Refresh page


Posted by Cage_fire_2000   USA  (119 posts)  Bio
Date Tue 29 Jul 2008 08:13 PM (UTC)
Message
I've been trying to add partial MXP support to a game, and trying turning it on and off on the fly, it seems to work so far, but multiple command send tags seem to stop working when the MXP OFF tag is sent, the basic hyperlinks work, but not the drop-down menu. I'm using 4.18, is this a bug?
Top

Posted by Nick Gammon   Australia  (23,122 posts)  Bio   Forum Administrator
Date Reply #1 on Tue 29 Jul 2008 09:24 PM (UTC)
Message
What do you mean, "multiple command send tags" - can you give an example?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Cage_fire_2000   USA  (119 posts)  Bio
Date Reply #2 on Tue 29 Jul 2008 11:10 PM (UTC)
Message
<SEND "help|look">test</SEND>

The 'help' command when you left-click works even after MXP is turned off, but the right-click menu showing 'help' and 'look' stops working.
Top

Posted by Nick Gammon   Australia  (23,122 posts)  Bio   Forum Administrator
Date Reply #3 on Wed 30 Jul 2008 05:31 AM (UTC)
Message
Is which part a bug? That some of it works after turning off MXP, or that some doesn't work?

Originally turning off MXP disabled all that stuff, then I added the Hyperlink script command, and then re-enabled hyperlinks so scripted hyperlinks would still work, whether or not MXP is on.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Cage_fire_2000   USA  (119 posts)  Bio
Date Reply #4 on Wed 30 Jul 2008 02:25 PM (UTC)
Message
I just think it would be nice if the drop down menu would still work, I suppose it's not essential, but it seems silly that single actions work, but the drop-down stops working, I mean how much extra processing does that take that it needs to be disabled?, although if there was a way to add scripted hyperlinks with multiple actions, I suppose that'd be pretty cool to. The only reason I'm turning MXP off is so I don't have to escape every < and > that comes up. I don't want to implement full MXP support because it has a lot of stuff that I don't need and would need extra code to get around. The only things I need are MXP color tags for some people, and MXP hyperlinks.
Top

Posted by Nick Gammon   Australia  (23,122 posts)  Bio   Forum Administrator
Date Reply #5 on Wed 30 Jul 2008 08:45 PM (UTC)
Message
Quote:

I've been trying to add partial MXP support to a game, and trying turning it on and off on the fly ...


Don't do that, it is like trying to get partially pregnant. Add the support or don't add it. It is like Yoda said to Luke "do, or not do - there is no try".

See this link:

http://www.gammon.com.au/mushclient/addingservermxp.htm

Quote:

The only reason I'm turning MXP off is so I don't have to escape every < and > that comes up.


Bite the bullet and just fix the code to automatically do it. In the link above you don't have to escape every < and>, it automates it, and allows for whether the user is using MXP or not.

The code fragments show how to do it, it isn't much and isn't hard.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #6 on Wed 30 Jul 2008 10:12 PM (UTC)
Message
I agree with Nick. It's easy to do things properly, and in any case you will pay later (one way or the other) if you take shortcuts now.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
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.


22,236 views.

Posting of new messages is disabled at present.

Refresh page

Go to topic:           Search the forum


[Go to top] top

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