[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]  MXP and Pueblo
. . -> [Subject]  Problem with MXP callbacks
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Problem with MXP callbacks

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


Posted by ForgottenMUD   Belgium  (22 posts)  [Biography] bio
Date Sat 08 Dec 2012 01:35 AM (UTC)
Message
I can't get them to work. It doesn't do anything/catch MXP tags. I tried the following functions on my server as well as the Two Towers MUD, and none of them catch anything. Both servers implement MXP, which is not activated through a protocol handshake but with CTRL + ALT + U and "Yes - Always" so that might be the issue(?) I also reduced the world window to see if there wasn't a "Notepad" screen undernearth.

function OnMXPEndTag (name, text)
  AppendToNotepad ("MXP", "Closing tag: " .. name .. "\n")
  AppendToNotepad ("MXP", "Text: " .. text .. "\n")
end -- function


function OnMXPEndTag (name, text)
  Note("test")
end -- function


function OnMXPerror (level, number, line, message)
  if level == "E" and number ~= 1030 then 
    ColourNote ("white", "red", level .. "(" .. number .. "): " message)
  end if

-- do not display entities received (eg. < )
  if number == 20001 then 
     return 1
  end -- if

  return 0
end -- function

ForgottenMUD - original Java MUD
http://sites.google.com/site/forgottenmud
[Go to top] top

Posted by Nick Gammon   Australia  (21,324 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sat 08 Dec 2012 07:17 PM (UTC)
Message
Template:version Please help us by advising the version of MUSHclient you are using. Use the Help menu -> About MUSHclient.

- Nick Gammon

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

Posted by Nick Gammon   Australia  (21,324 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Sat 08 Dec 2012 07:24 PM (UTC)
Message
Are these in a plugin or the main world file? If the main world file did you fill in the function names here:


- Nick Gammon

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

Posted by ForgottenMUD   Belgium  (22 posts)  [Biography] bio
Date Reply #3 on Sat 08 Dec 2012 09:36 PM (UTC)
Message
I'm using version 4.85. I call those functions in a plugin that does nothing but call them.

ForgottenMUD - original Java MUD
http://sites.google.com/site/forgottenmud
[Go to top] top

Posted by Nick Gammon   Australia  (21,324 posts)  [Biography] bio   Forum Administrator
Date Reply #4 on Sun 09 Dec 2012 07:25 PM (UTC)
Message
You are not using the right function names.

http://www.gammon.com.au/scripts/doc.php?general=mxp_callbacks

The client looks for the exact names documented there.

For one thing, all plugin callbacks start with: OnPlugin ...

- 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.


3,862 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]