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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
slicertool
Magician


Joined: 09 Oct 2003
Posts: 459
Location: USA

PostPosted: 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 &lt;rebel&gt; *)</pattern>
  <value>  #cap rebel
  #cap all_lines
  #if (@linesilent == 1) {#gag}</value>
</trigger>
<trigger priority="2530" id="253">
  <pattern>(^&lt;rebel&gt; *)</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?
_________________
Ichthus on SWmud: http://www.swmud.org/
Reply with quote
slicertool
Magician


Joined: 09 Oct 2003
Posts: 459
Location: USA

PostPosted: 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.
_________________
Ichthus on SWmud: http://www.swmud.org/
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Thu Dec 13, 2007 8:06 pm   
 
Confirmed.
_________________
Asati di tempari!
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23381
Location: Colorado, USA

PostPosted: Thu Dec 13, 2007 8:35 pm   
 
Did this just start happening in v2.17, or was it also a problem in previous versions?
Reply with quote
slicertool
Magician


Joined: 09 Oct 2003
Posts: 459
Location: USA

PostPosted: 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.
_________________
Ichthus on SWmud: http://www.swmud.org/
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23381
Location: Colorado, USA

PostPosted: 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.
Reply with quote
slicertool
Magician


Joined: 09 Oct 2003
Posts: 459
Location: USA

PostPosted: 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.
_________________
Ichthus on SWmud: http://www.swmud.org/
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: 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... ;)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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