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
➜ MUSHclient
➜ General
➜ Aardwolf prompt alias does something strange
Aardwolf prompt alias does something strange
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Isildur
(12 posts) Bio
|
Date
| Fri 07 Sep 2007 02:16 PM (UTC) |
Message
| I use the following as my "prompt" command on Aardwolf.
prompt <@R%p @Y%ggp @C%Xtnl %qqt @B%r @R%e>%c@w
When I type it or copy it from the alias "Send" box and paste it in the command box, it works fine.
My alias is named pprompt. When I type this instead, it sets the prompt, which then has a random string of about 4-5 characters after it, and then I get a lot of warnings from the server about "invalid commands" and such.
Is there a way to debug this easily? Or is my code needing some TLC to make it work? I thought escape sequences might be in order but was not sure at this point since it does work from the command box when type straight in.
Thanks.
Isildur | Top |
|
Posted by
| Shaun Biggs
USA (644 posts) Bio
|
Date
| Reply #1 on Fri 07 Sep 2007 03:00 PM (UTC) |
Message
| I just tried it on Aard, and it works fine for me.
<aliases>
<alias
match="pprompt"
enabled="y"
sequence="100"
>
<send>prompt <@R%p @Y%ggp @C%Xtnl %qqt @B%r @R%e>%c@w</send>
</alias>
</aliases>
|
It is much easier to fight for one's ideals than to live up to them. | Top |
|
Posted by
| Isildur
(12 posts) Bio
|
Date
| Reply #2 on Fri 07 Sep 2007 03:59 PM (UTC) |
Message
| I removed my alias and pasted yours. I tried it and this is my output. I am perplexed to say the least.
Quote:
You put Sacramental Carafe in a demon school backpack.
<100% 212422gp 345tnl 0qt Among the Philosophes NESU>
Shoeshine asks Questor for a quest.
prompt <@R%p @Y%ggp @C%Xtnl %qqt @B%r @R%e><aliases>
<alias
match="pprompt"
enabled="y"
sequence="100"
>
<send>prompt <@R%p @Y%ggp @C%Xtnl %qqt @B%r @R%e>%c@w</send>
</alias>
</aliases>@w
Prompt set to <%p %ggp %Xtnl %qqt %r %e><aliases>
Use the 'bprompt' to set a separate battle prompt.
<100% 212422gp 345tnl 0qt Among the Philosophes NESU><aliases> Sorry Straxxus, I don't understand you.
<100% 212422gp 345tnl 0qt Among the Philosophes NESU><aliases> Sorry Straxxus, I don't understand you.
<100% 212422gp 345tnl 0qt Among the Philosophes NESU><aliases> Sorry Straxxus, I don't understand you.
<100% 212422gp 345tnl 0qt Among the Philosophes NESU><aliases> Sorry Straxxus, I don't understand you.
<100% 212422gp 345tnl 0qt Among the Philosophes NESU><aliases> Sorry Straxxus, you can't do that.
<100% 212422gp 345tnl 0qt Among the Philosophes NESU><aliases> Unknown command. Please check the helpfiles.
<100% 212422gp 345tnl 0qt Among the Philosophes NESU><aliases> Sorry Straxxus, I don't understand you.
<100% 212422gp 345tnl 0qt Among the Philosophes NESU><aliases> Unknown command. Please check the helpfiles.
<100% 212422gp 345tnl 0qt Among the Philosophes NESU><aliases>
Notice my aardwolf prompt now has "<aliases>" at the end of it after trying the alias. Somehow the alias is "appended" to itself or is send twice, once the proper way immediately followed by the way it looks when I copied it from your post.
I did a screen capture of the alias in the configuration screen and you see there is no other commands appended. It looks like it pasted properly.
Here is a link to the capture:
http://www.flickr.com/photos/thethomasfamily/1341671243/
isildur
| Top |
|
Posted by
| Shaun Biggs
USA (644 posts) Bio
|
Date
| Reply #3 on Fri 07 Sep 2007 08:18 PM (UTC) |
Message
| Well, first off, the xml snipped posted should just be copied and pasted into the alias menu. The paste button is on the lower right hand corner when you press ctrl-shift-9.
Aside from that, looking at your screenshot, the alias looks like it's fine... I'm a bit confused by it. |
It is much easier to fight for one's ideals than to live up to them. | Top |
|
Posted by
| Isildur
(12 posts) Bio
|
Date
| Reply #4 on Fri 07 Sep 2007 08:40 PM (UTC) |
Message
| Thats what puzzled me. I didn't paste into the world or command field. I used the paste button in the alias configuration dialog like you said.
It seems almost like another trigger could be firing or a plugin or something is tacking on something after the alias fires. So the command goes to the mud twice.
I had another alias called pbprompt to set my battle prompt and it was doing exactly the same thing. Those are the only two that do it.
I know this may be a stretch, but is there a way to "debug" this or set some sort of breakpoint so we can see what's happening?
isildur | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #5 on Sat 08 Sep 2007 01:11 AM (UTC) |
Message
| Game menu -> Trace.
That tells you when aliases and triggers fire. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Isildur
(12 posts) Bio
|
Date
| Reply #6 on Sat 08 Sep 2007 06:37 AM (UTC) |
Message
|
Quote:
Thorgath holds The Head of Medusa in his hand.
PermA Tryp has left the game.
Thorgath holds The Head of Medusa in his hand.
You feel as if you are being watched.
TRACE: Trace on
TRACE: Matched alias "pprompt"
prompt <@R%p @Y%ggp @C%Xtnl %qqt @B%r @R%e>http://security.symantec.com/sscv6/default.asp?langid=ie&venid=sym@w
TRACE: Executing Plugin Aardwolf_TierClassesLUA script "OnPluginPacketReceived"
TRACE: Executing trigger script "OnHyperlink"
Prompt set to <%p %ggp %Xtnl %qqt %rTRACE: Executing trigger script "OnHyperlink"
%e>http://security.symantec.com/sscv6/default.asp?langid=ie&venid=sym
Use the 'bprompt' to set a separate battle prompt.
TRACE: Executing trigger script "OnHyperlink"
<100% 218563gp 307tnl 0qt The Grand City of AylorTRACE: Executing trigger script "OnHyperlink"
NESWUD>http://security.symantec.com/sscv6/default.asp?langid=ie&venid=sym
TRACE: Executing Plugin Aardwolf_TierClassesLUA script "OnPluginPacketReceived"
Looks like it is grabbing stuff from the clipboard and adding it to the alias when it fires. I had just copied the symantec url from one browser window to another. Then I switched over to Mushclient and enabled the trace.
This is the text that fired after runnin the alias again.
I am at wits end. I even disabled plugins. I am going to try to reinstall MC at this point to see if its maybe just a corrupt file or something.
thanks,
isildur | Top |
|
Posted by
| Isildur
(12 posts) Bio
|
Date
| Reply #7 on Sat 08 Sep 2007 06:39 AM (UTC) |
Message
| Just confirmed the clipboard thing. I copied the just the letter "t" and then switched to MC and ran the alias:
Quote:
[(Reply: Thorgath) 3397/3397hp 2283/2283mn 2668/2668mv 307tnl] >
pprompt
TRACE: Matched alias "pprompt"
prompt <@R%p @Y%ggp @C%Xtnl %qqt @B%r @R%e>t@w
Prompt set to <%p %ggp %Xtnl %qqt %r %e>t
Use the 'bprompt' to set a separate battle prompt.
<100% 218563gp 307tnl 0qt The Grand City of Aylor NESWUD>t
Is that wierd or what?
isildur :) | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #8 on Sat 08 Sep 2007 06:47 AM (UTC) |
Message
|
Quote:
Looks like it is grabbing stuff from the clipboard and adding it to the alias when it fires.
See: http://www.gammon.com.au/scripts/doc.php?dialog=IDD_EDIT_ALIAS
It mentions in there that %c is replaced by the clipboard contents, and you have %c in your alias.
In general, %x in aliases is replaced by wildcards (and in the case of %c, the clipboard), so you should double the %%, as in: %%c |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Isildur
(12 posts) Bio
|
Date
| Reply #9 on Sat 08 Sep 2007 07:16 AM (UTC) |
Message
| Man, I feel like a complete imbecile! Thanks for pointing that out. I now recall adding in that %c about the time the problem started and had just forgot the change. On Aardwolf it adds a carriage return to the prompt. Thanks again.
isildur :) | 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.
28,870 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top