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
GenericGun
Beginner


Joined: 23 Jul 2009
Posts: 12

PostPosted: Sat Feb 06, 2010 10:41 pm   

[3.14] A wrappig + substitution bug.
 
Hello, this one is simple and nasty ;)

Wrapping enabled, set to 90. (0 indent, auto disabled)

Two triggers:
Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
  <trigger priority="10950" copy="yes">
    <pattern>^A (*) hits you with a big cudgel, (*).$</pattern>
    <value>#SUB {%1" >> "%2}</value>
  </trigger>
  <trigger priority="16330" repeat="true" regex="true" copy="yes">
    <pattern>\barrives\b</pattern>
    <value>#SUB {<color yellow>ARRIVES</color>}</value>
  </trigger>
</cmud>


The test line:
Code:
#SH A goblin arrives.
#SH A goblin hits you with a big cudgel, breaking all your bones, and oh god it hurts.


The result:
Code:

A goblin ARRIVES.
goblin >>ARRIVESng all your bones, and oh god it hurts


Thanks for any help, G.

Edit: 3.14 of course ;) Sorry about that.


Last edited by GenericGun on Sun Feb 07, 2010 1:08 am; edited 1 time in total
Reply with quote
GeneralStonewall
Magician


Joined: 02 Feb 2004
Posts: 364
Location: USA

PostPosted: Sat Feb 06, 2010 11:34 pm   
 
Make sure to specify which version of CMUD you're using.


Last edited by GeneralStonewall on Sat Feb 06, 2010 11:34 pm; edited 1 time in total
Reply with quote
GenericGun
Beginner


Joined: 23 Jul 2009
Posts: 12

PostPosted: Mon Feb 08, 2010 8:29 pm   
 
Sorry for bumping this one, but is anyone able to recreate this bug, or is it just poor old me? ;)
The list of wrapping related bugs keeps on growing, I can't find any answers,
and right now I am forced to consider doing a "dual client" CMUD to TF connection..

G.
Reply with quote
wrym
Magician


Joined: 06 Jul 2007
Posts: 349
Location: The big palace, My own lil world

PostPosted: Mon Feb 08, 2010 9:46 pm   
 
Hmm item 1, your triggers don't import right, you need the "<![CDATA[" tags or to replace the lessthan/greater than tags, here is the xml after i tweaked them

Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<window name="untitled" copy="yes">
  <uid>{189D4896-7EAC-4B2B-A43D-3D30FD973F19}</uid>
  <packages>untitled</packages>
  <trigger priority="10950" copy="yes">
    <pattern>^A (*) hits you with a big cudgel, (*).$</pattern>
    <value>#SUB {%1" >> "%2}</value>
  </trigger>
  <trigger priority="16330" repeat="true" regex="true" copy="yes">
    <pattern>\barrives\b</pattern>
    <value>#SUB {ARRIVES}</value>
  </trigger>
</window>
</cmud>


but i'm unable to reproduce your error, i seem to recall there might be another bug fairly similar to this somewhere in the forums
_________________
"To the engineer, all matter in the universe can be placed into one of two categories: (1) things that need to be fixed, and (2) things that will need to be fixed after you've had a few minutes to play with them" - Scott Adams, The Dilbert Principle
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Feb 08, 2010 11:52 pm   
 
Remember that these forums (even within the CODE tag) messed up any lessthan/greaterthan symbols.
Reply with quote
GenericGun
Beginner


Joined: 23 Jul 2009
Posts: 12

PostPosted: Tue Feb 09, 2010 1:03 am   
 
Hey there, thanks for your reply wrym.

Please make sure that the line is wrapped (when the trigger is disabled)
This is how it looks not wrapped:

A goblin hits you with a big cudgel, breaking all your bones, and oh god it hurts.

And wrapped:
A goblin hits you with a big cudgel, breaking all your bones, and oh god it
hurts.

So yes, without the wrapping settings I mentioned in the first post - it works fine.

Does this help?
Reply with quote
wrym
Magician


Joined: 06 Jul 2007
Posts: 349
Location: The big palace, My own lil world

PostPosted: Wed Feb 10, 2010 7:22 pm   
 
AHA! YES i can duplicate this!!

1) created new blank test session, not untitled
2) docked status window to right side, taking up about 20% of screen
3) imported triggers above, correcting for the forums eating less than/greater than signs
4) copied/pasted/executed the 2 show commands in command line, no error
5) expanded status window to use about 60% of screen
6) re-executed 2 shows, and you can see the bug

I was testing with a few of my other #psub triggers, and i think that there might other problems involved with #psub and cmud's screen wrapping, will post once i narrow it down
_________________
"To the engineer, all matter in the universe can be placed into one of two categories: (1) things that need to be fixed, and (2) things that will need to be fixed after you've had a few minutes to play with them" - Scott Adams, The Dilbert Principle
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