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.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUDs
➜ General
➜ MXP
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Mack
(11 posts) Bio
|
| Date
| Sat 19 Jul 2008 05:20 PM (UTC) |
| Message
| Using MXP on an old mudlib, The clicking on items works, but if you look at an item in the room you get the room description not the item description. Any have a clue what i am doing wrong?
#include <tune.h>
#include <ansi2.h>
#include "../area.h"
inherit STD_ROOM;
object ob;
string myname;
void long(string str){
string real_long;
string output;
output = ESC+"[1z";
output += "<!ELEMENT RDesc '<FONT color=Red>' FLAG='RoomDesc'>\n";
write(output);
::long();
}
reset(arg)
{
set_light(1);
short_desc = "the cryogenic facility";
set_long_f("You are standing in a large laboratory that has been "+
"specifically designed for the artificial duplication of "+
"living beings. A number of capsules and vats line the "+
"northern wall, connected to a vast array of electronic "+
"control systems by a deluge of wires and cables. There "+
"is a monitor attached to the east wall which illustrates "+
"how to begin the cloning process.\n"+
ESC+"[1z<send \"press &text;\">red button </send> (click it!) \n "+
"", 70 );
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Sun 20 Jul 2008 03:02 AM (UTC) |
| Message
| I have some suggestions about MXP here:
http://www.gammon.com.au/mushclient/addingservermxp.htm
What do you mean "if you look at an item in the room" - do you mean typing "look"? Or the hover-over text in MXP? Or what gets sent when you click? Can you post some actual output to demonstrate? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Mack
(11 posts) Bio
|
| Date
| Reply #2 on Sun 20 Jul 2008 12:10 PM (UTC) |
| Message
| Ok you standing in this room, this is the description below if you type look or if you have verbos mode on instead of brief and enter the room. If you hover over the click it the mxp part works you can use the mouse to click the button and the action you want to happen works.
But if you type look at computer (computer for example is a defined item in the room) you will get the same thing as if you just type look in the room or walked in with verbose mode on.
What is basicly happening you don't get the items you defind description you get the whole room description.
You are standing in a large laboratory that has been specifically
designed for the artificial duplication of living beings. A number of
capsules and vats line the northern wall, connected to a vast array
of electronic control systems by a deluge of wires and cables. There
is a monitor attached to the east wall which illustrates how to begin
the cloning process. red button
(click it!)
There is one obvious exit: west.
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Mon 21 Jul 2008 04:37 AM (UTC) |
| Message
| I don't really get what this is to do with MXP. You are saying you just type "look computer" - and it shows the room description? Isn't that just a problem in look handling?
Try using gdb to work out why it is showing the wrong description. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Mack
(11 posts) Bio
|
| Date
| Reply #4 on Mon 21 Jul 2008 11:46 AM (UTC) |
| Message
| This problem didn't stat till i added the MXP code. If i remove the code you can look at the items in the room fine. I am guessing I am missing something in the code. not sure what you mean by gdb. I will keep looking, just trying to add some new stuff to our mud since we are releasing a new version for the first time in 15 years =)
Thanks for you help. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #5 on Mon 21 Jul 2008 09:28 PM (UTC) |
| Message
| Sounds like you have an "if" that is affecting more than you expect.
As for gdb that is the Gnu Debugger, see this post for a description of using it:
http://mushclient.com/gdb
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | 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.
19,861 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top