Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
ultraposty
Beginner


Joined: 28 Mar 2006
Posts: 10

PostPosted: Sat Jan 26, 2008 3:39 pm   

Problems after upgradomg from 1.34 to 2.18
 
Hi everyone
After upgrading I have a problem with scripts which I can slowly work through and correct. Am I right in thinking 2.18 is more "particular" about correct scripting?
Anyway I am really not a programmer and have absolutely no understanding of MXP. When I now log onto Discworld mud after asking for character name the screen shows:

<!EVENT tell from="{player}"><!EVENT say from="{player}"><!EVENT soul from="{player}"><!EVENT shout from="{player}"><!EVENT echo from="{player}"><!EVENT emote from="{player}"><!EVENT whisper from="{player}"><!EVENT emoteall from="{player}"><!EVENT combat from="{player}"><!EVENT channel from="{player}" channel="{channels}"><!EVENT talker from="{player}" channel="{talkerchannels}"><!EVENT group from="{player}" command="{groupcmds}"><!EVENT club from="{player}" club="{clubnames}"><!EVENT map><!EVENT score><!EVENT inform from="{player}" type="{informtype}"><!EVENT inventory><!define player "Details about the player" guild="{guilds}" guilddesc="The guild the player belongs to" clubs="clubs" clubsdesc="All the clubs the player belongs to" family="family" familydesc="The family the player is in" killer="yes|no" killerdesc="The player is a playerkiller" friend="yes|no" frienddesc="Member of the friends list on the mud">

Also when in combat I keep getting <event> combat........ etc.

Is the first lot of code telling CMud how to handle these "Events" and if so why is it not working?

I don't know how to deal with this and, as I no longer have the install file for CMud 1.34 (the latest I have is 1.17) I can't downgrade. I was happy with 1.34 but bought a new laptop and installed 2.18 on that.
I cannot use this version so will have to resort to continuing to only mud on the desktop. I was hoping to be able to do so anywhere on the laptop.
Any suggestions or dare I hope that someone has kept a copy of the 1.34 install?
[/i]
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sat Jan 26, 2008 3:55 pm   
 
Basically, this is a problem the admins of Discworld created. To quote myself in another thread:

Fang Xianfu wrote:
!EVENT isn't a part of the standard MXP specification - basically, the admins of your MUD (presumably Discworld) made it up without consulting anyone, so it's hard to expect clients to support such non-standard implementations, especially when they ignore the rules that MXP follows. You can read a bit about them here and see the original thread about this problem here.

Seems like you have two possible solutions - first, try turning off MXP debug mode in the preferences. If that doesn't help, try using an OnConnect event to describe the event tag to CMUD:

Code:
#event OnConnect {#mxp <!element Event MULTILINE>}


If neither of these works, slap your MUD admins upside the head for doing this ;P
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
ultraposty
Beginner


Joined: 28 Mar 2006
Posts: 10

PostPosted: Sat Jan 26, 2008 10:58 pm   
 
Thanks for the advice
First I have debug off and still get the "Events" showing (This is with CMud 2.18 running on Vista on my laptop) although I do notice that with debug on there are a lot more "Events". Running 1.34 on my desktop under XP with debug off I get no "Events" showing up - with it on I get all those shown in my post (I had not noticed them before because I never turned it on!)
Next I tried the code you suggested and got an "Error parsing command: - illegal token:>}" message
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sat Jan 26, 2008 11:11 pm   
 
That's probably due to the ! character. Try

#event OnConnect {#mxp "<!element Event MULTILINE>"}

Is it just the <!EVENT> tags that show with Debug mode off, or is it some of the <event> tags that show?
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
ultraposty
Beginner


Joined: 28 Mar 2006
Posts: 10

PostPosted: Sun Jan 27, 2008 12:33 am   
 
I have forgotten a lot of my programming knowledge but I should have thought of the quotes.
That has done the trick.
Thanks a lot for your help
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net