Adding MXP to an existing MUDbase

Posted by Morrigan on Thu 19 Sep 2013 06:37 AM — 5 posts, 29,332 views.

USA #0
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.
Germany #1
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.
USA #2
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!
Australia Forum Administrator #3
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.
#4
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