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 ➜ MUDs ➜ MUD Design Concepts ➜ Adding MXP to an existing MUDbase

Adding MXP to an existing MUDbase

Posting of new messages is disabled at present.

Refresh page


Posted by Morrigan   USA  (2 posts)  Bio
Date Thu 19 Sep 2013 06:37 AM (UTC)
Message
I'm a rather new coder who, like many new coders, is teaching herself how to code by working on a live game. Yes, I do know that I'm nuts, but hey, someone has to be.

Those disclaimers aside, I've ported in the MXP code following the instructions here: http://www.gammon.com.au/mushclient/addingservermxp.htm

I've compiled and put in a few test elements to make sure that things are passing to the client properly. I had to make some small adjustments, but the codebase I'm working on has been in development for over 15 years. I expected that need.

What I didn't expect is for my inventory to show up with items like this:
]Get 'everflowing' 'an everflowing canteen'an everflowing canteen]/Get with the ASCII characters 192 and 217 bracketing the Get and /Get segments.

I've looked at the code for hours and simply cannot see where those ASCII characters are getting generated. I searched the MUD forums and didn't see anyone else posting with this problem, but if anyone has any idea where these characters are coming from, I'd be most appreciative.
Top

Posted by KaVir   Germany  (117 posts)  Bio
Date Reply #1 on Thu 19 Sep 2013 09:20 PM (UTC)
Message
MXP is easy to break, you have to be really careful with the parsing.

What's the address of your mud? If I can see what it's sending it might be easier to give a better answer.
Top

Posted by Morrigan   USA  (2 posts)  Bio
Date Reply #2 on Thu 19 Sep 2013 09:35 PM (UTC)
Message
I've actually narrowed it down to the setups added to merc.h. \x03 and \x04 didn't want to work.

Now, however, everything is crazy underlined.

I'm doing this on a test port for our game, so it's not yet affecting anything live. The test port is running at ageofillusionmud.com port 1061.

Thank you!
Top

Posted by Nick Gammon   Australia  (23,122 posts)  Bio   Forum Administrator
Date Reply #3 on Fri 20 Sep 2013 08:16 AM (UTC)
Message
I suggest you use MUSHclient's "packet debug" feature to see exactly what the server is sending. That code should work, I've had no problems with it.

Quote:

\x03 and \x04 didn't want to work.


I'm not sure what that means.

- Nick Gammon

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

Posted by Lerkista   (57 posts)  Bio
Date Reply #4 on Sun 07 Sep 2014 10:21 PM (UTC)
Message
Nick Gammon said:

I suggest you use MUSHclient's "packet debug" feature to see exactly what the server is sending. That code should work, I've had no problems with it.

Quote:

\x03 and \x04 didn't want to work.


I'm not sure what that means.


I've recently added MXP, i use \x3c and \x3e and works
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.


21,539 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.