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
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Wed Aug 22, 2007 7:00 pm   

"variables" sent from mud being expanded?
 
I recently tried to share some code with another player and noticed an odd thing. When text from the mud contained strings that look like variables, like '%char' and '@myvar', cmud parsed and replaced them before displaying them on my window. Especially interesting, the happened even when #VERBATIM was on. This does not seem like correct behavior. The person I was talking with was using zmud, and was not seeing the same behavior. Is this a bug? Or some setting that can be changed?
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Wed Aug 22, 2007 7:20 pm   
 
You mean that when the MUD sent any text that looked like a variable reference, CMUD expanded the variable? Does it only work with valid variables, or with all var-like text? I'm not seeing this - I'd suspect a trigger of yours is using the #sub command somehow, which is causing CMUD to parse the text. This also wouldn't be affected by the verbatim setting (and, indeed, any other triggers running in the background will be immune to verbatim as well). Try turning off trigger parsing and see if it still does it.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Wed Aug 22, 2007 7:26 pm   
 
Hm. I have some #SUB statements in triggers to #TAG room description elements, but those shouldn't be triggering on this text. I'll look through my other triggers for #SUB.
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Wed Aug 22, 2007 7:33 pm   
 
Well, try just turning off all triggers first - if it stops doing it, you know the trouble is in one of your triggers and not in CMUD itself. I suggest #sub because it's the most obvious way that text on the screen is altered.

If it still happens with triggers off, then it sounds like a bug.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Wed Aug 22, 2007 7:34 pm   
 
Found it. Just as you suggested, it was a #SUB problem. It triggers on all communications (say, shout, ooc, etc.) which is why it was happening every time I tried to test it. Thanks! I'll figure out a better way of writing that trigger without #SUB. I'd already noticed it causing some other problems.
Reply with quote
gamma_ray
Magician


Joined: 17 Apr 2005
Posts: 496

PostPosted: Wed Aug 22, 2007 8:30 pm   
 
Why don't you just use %expand to (unintuitively) keep it from expanding?
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