 |
slicertool Magician

Joined: 09 Oct 2003 Posts: 459 Location: USA
|
Posted: Thu Dec 13, 2007 7:26 pm
[2.17] #cap window messing up MXP tags |
My mud uses a lot of text that resembles MXP tags which aren't. I've got a series of triggers to siphon of individual chat channels into different windows. They're all the exact same code with a swap out of the appropriate channel names. I really need to recode that, but anyways, here is the issue.
Sample code that handles the #cap and #gags:
| Code: |
<trigger priority="2520" stop="true" id="252">
<pattern>(^%w <rebel> *)</pattern>
<value> #cap rebel
#cap all_lines
#if (@linesilent == 1) {#gag}</value>
</trigger>
<trigger priority="2530" id="253">
<pattern>(^<rebel> *)</pattern>
<value> #cap rebel
#cap all_lines
#if (@linesilent == 1) {#gag}</value>
</trigger> |
Input:
| Code: |
Harna <shout> <Stellabellophile> bye mud!
Vint <pk> lol, bimm
Micah <pk> ratt will pwn you bimm
Gregg <rebel> help you do what mino
Mino <rebel> hscan a mob i'm fighting
Gregg <rebel> nah that would take leaving scant :P
Mino <rebel> it would, but you'd be in no danger
Gregg <rebel> lol
Gregg <rebel> ponders why you can't just hscan the mob yourself? |
Output:
| Code: |
Harna <shout><<Stellabellophile>shout> <Stellabellophile> bye mud!
Vint <pk><pk> lol, bimm
Micah <pk><pk> ratt will pwn you bimm
Gregg <rebel><rebel> help you do what mino
Mino <rebel><rebel> hscan a mob i'm fighting
Gregg <rebel><rebel> nah that would take leaving scant :P
Mino <rebel><rebel> it would, but you'd be in no danger
Gregg <rebel><rebel> lol
Gregg <rebel><rebel> ponders why you can't just hscan the mob yourself?
|
|
|
|
|
 |
slicertool Magician

Joined: 09 Oct 2003 Posts: 459 Location: USA
|
Posted: Thu Dec 13, 2007 7:45 pm |
Step by Step:
- Open CMud
- Close Sessions Window
- Enter: #window test
- Select new window 'test'
- Select the menu item Options -> General
- Select the MXP left side tag and then select 'Show unknown tags' option
- Click OK
- Enter: #window test <yarr>
- Enter: #window test <yarr> <ahoy>
- Enter: #window test <yarr> <ahoy> <avast>
Results in test window:
| Code: |
<yarr>
<yarr><yarr> <ahoy>
<yarr><<ahoy>yarr> <ahoy> <avast> |
Notice how it doubles the first tag. |
|
|
|
 |
Tech GURU

Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Thu Dec 13, 2007 8:06 pm |
Confirmed.
|
|
_________________ Asati di tempari! |
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23381 Location: Colorado, USA
|
Posted: Thu Dec 13, 2007 8:35 pm |
Did this just start happening in v2.17, or was it also a problem in previous versions?
|
|
|
|
 |
slicertool Magician

Joined: 09 Oct 2003 Posts: 459 Location: USA
|
Posted: Thu Dec 13, 2007 8:40 pm |
I had thought it was working a couple versions ago when I had a chance to test things. However, I don't know a version number, because of how rarely I can test things.
|
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23381 Location: Colorado, USA
|
Posted: Thu Dec 13, 2007 8:48 pm |
I'm assuming that the text looks ok in the original incoming window and only looks wrong in the capture window?
If so, go into your capture window, then click Prefs and go to the MXP page and turn on the "Capture MXP" option. That seems to improve it for me here when using #CAPTURE (although the test case using the #WINDOW command will still fail).
This doesn't really fall into the critical-issue area, so it will probably need to wait till January to get fixed for good. |
|
|
|
 |
slicertool Magician

Joined: 09 Oct 2003 Posts: 459 Location: USA
|
Posted: Thu Dec 13, 2007 8:58 pm |
Yeah, I'm getting the same results as you when I have it capture MXP. The original problem that caused me to catch it is mostly fixed with a couple mess-ups here and there, but the problem with #window still exists.
At least it's a work around for the initial problem.
Thanks, Zugg. |
|
|
|
 |
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Thu Dec 13, 2007 9:26 pm |
I've got 2.15 on my laptop and the same bug happens there
|
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
 |
|
|
|