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
XonDK
Apprentice


Joined: 01 Dec 2006
Posts: 178

PostPosted: Thu Apr 26, 2007 12:56 pm   

[1.30] Converting issue.
 
Converting Zmud to Cmud, cmud seems to mis the spacing that zmud added in many things such as %ansi() triggers

zmud: I believe its pretty print's fault.
%ansi( 15)

works fine
Cmud:
%ansi( 15) doesn't work
%ansi(15) works

Also note this also affect some %if situations.
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Thu Apr 26, 2007 4:12 pm   
 
I think this was supposed to be fixed in one of the 1.2x versions. I can't get it to fail just on the command line - it could be something to do with the specific script you're running. If you post the whole thing, we might be able to reproduce the bug.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
XonDK
Apprentice


Joined: 01 Dec 2006
Posts: 178

PostPosted: Thu Apr 26, 2007 4:19 pm   script
 
%ansi( 15)Last hit:%ansi( yellow, green) @lasthit

Will not work in status window, might be only in status window this problem exists though
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Thu Apr 26, 2007 4:21 pm   
 
Confirmed that it's not colouring properly. I thought this was fixed, though :S
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Tech
GURU


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

PostPosted: Thu Apr 26, 2007 4:32 pm   
 
I posted about that here.
_________________
Asati di tempari!
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Thu Apr 26, 2007 5:40 pm   
 
They're separate issues, Tech. "%ansi(red)test" works in the status window. "%ansi( red)test" doesn't, and I thought that bug was fixed.
_________________
Rorso's syntax colouriser.

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


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Thu Apr 26, 2007 5:52 pm   
 
Try %ansi( "red")test
This is not just in the status window btw.
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Thu Apr 26, 2007 5:59 pm   
 
Entering "#show %ansi( red)test" works on the command line. I think that was the part of the bug that was fixed. Entering "%ansi( red)test" into a status window item doesn't work - it works without the space, so there's no need to quote it like that (though that does work). It's just that Reformatting the script adds the space back in.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Zugg
MASTER


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

PostPosted: Thu Apr 26, 2007 6:39 pm   
 
Confirmed that this doesn't work in the status bar. Also confirmed that the background color of status bar items is getting messed up. I'll add this to the bug list again. I think the previous fix was only tested on the command line. Not sure why it doesn't work in the status bars, but it means that the parser isn't handling the spaces when parsing functions in string expressions, so it might show up in other situations too.
Reply with quote
XonDK
Apprentice


Joined: 01 Dec 2006
Posts: 178

PostPosted: Fri Apr 27, 2007 8:43 pm   
 
Zugg wrote:
Confirmed that this doesn't work in the status bar. Also confirmed that the background color of status bar items is getting messed up. I'll add this to the bug list again. I think the previous fix was only tested on the command line. Not sure why it doesn't work in the status bars, but it means that the parser isn't handling the spaces when parsing functions in string expressions, so it might show up in other situations too.

seems to affect some %if situations, not too sure on where and when seems to be rather random
Reply with quote
Zugg
MASTER


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

PostPosted: Fri Apr 27, 2007 8:52 pm   
 
Yes, if a space doesn't work with %ansi, then it's likely a problem with *any* function call (including %if)
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