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


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Wed May 19, 2010 2:30 pm   

Two Questions: CMUD Default Color Issue AND Spam Slowness
 
First question is from me. I've found that %ansi(7) seems to be your default color. Since I have my default as gray, %ansi(7) is gray. Yay. However, I like to make scripts that work for others. And some people have their default colors as something else, most commonly a dark green. Problem is, that makes %ansi(7) dark green. Which means in my clan highlighter, one of the clans, which is supposed to show up as a light gray, is showing up as a dark green (or whatever their default is).

I asked DraxDrax if there was a way to access gray, since I didn't see it on 1-15, the closest was a dark gray at 8, but I wanted the lighter version. He suggested %ansi(grey), I tried that AND %ansi(gray) but both gave me the default color, not gray. I'm wondering if this is a bug or a feature? And wondering why a common color in MUDs is not even represented on the %ansi() color list unless it's your default?

The other question comes from someone else on the forums of the game I play
Quote:

When I spam commands in CMud they go through so slowly. Anyone else have this problem?


I don't actually have that problem, but numerous people have reported it. He says he's tried it removing all of his settings and still has the issue. As the Anti-Spam filter has to be intentionally set (and he'd know about it), I'm wondering what might cause the issue?
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
Zugg
MASTER


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

PostPosted: Wed May 19, 2010 4:41 pm   
 
Changing the Default Color of a session does not change the %ansi(7) color value. If they are changing the color of %ansi(7) using the ANSI Color preferences, then they are doing it wrong. They are supposed to change their default color by going into the Styles preferences and change the Default Session Color shown there. That will change the default color that you get after an %ansi(reset) without messing with the normal ANSI color settings.

Yes, "grey" and "gray" both point to %ansi(7) because it's just a regional spelling difference. To get %ansi(8) you can just use %ansi(8). Just go ahead and use the number instead of the name. Works fine. If you must use a name, then you can try %ansi("hi,gray") to generate the "highlighted" gray color, which is %ansi(8). Yes, I know it makes no sense that %ansi(7) is lighter than %ansi(8) but that's just the way ANSI colors were originally defined (and not by me).

Finally, of course the best way to get any color you want is via the MXP COLOR tag in your scripts. Since players can change the color of ANY ANSI color code in their ANSI Color Preferences, you can never guarantee a specific color using an ANSI code. Using MXP COLOR tag you can force a specific color. Of course the problem with this is if the player has changed their default background (such as using a light color instead of black).

If you are writing a general purpose script, you might want to define some variables that will determine the color values your script uses so that people using your script can easily change the colors to whatever suits them.

Quote:
When I spam commands in CMud they go through so slowly. Anyone else have this problem?

There are no known bugs regarding this on my list. It can be anything from network lag to corrupted settings. I've also seen the spellchecker on the command line cause issues on some systems, so have them try turning off the spellchecking feature. And have them try the latest Beta version since there have been so many bug fixes and changes since 2.37.

Oh, and it's also worth noting that sometimes this is just a "perception". CMUD queues text from the MUD and the command line echo just gets added to the end of the current input queue. So if they are receiving a lot of text from the MUD, their command echo might end up being delayed when shown on the screen. But it's still sent to the MUD right away with no delay. You can turn on the Script Debugger window with the Raw Output message to see exactly when a command is sent to the MUD.
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Wed May 19, 2010 8:25 pm   
 
Zugg wrote:
Changing the Default Color of a session does not change the %ansi(7) color value. If they are changing the color of %ansi(7) using the ANSI Color preferences, then they are doing it wrong. They are supposed to change their default color by going into the Styles preferences and change the Default Session Color shown there. That will change the default color that you get after an %ansi(reset) without messing with the normal ANSI color settings.


Oh, no no no. Sorry, I didn't explain clearly. This is the problem. The default color is being changed in Styles, Preferences, Default Session Color, and even though it's being changed there. %ansi(7) is being changed to be that color. It's really funky.

Quote:

Finally, of course the best way to get any color you want is via the MXP COLOR tag in your scripts. Since players can change the color of ANY ANSI color code in their ANSI Color Preferences, you can never guarantee a specific color using an ANSI code. Using MXP COLOR tag you can force a specific color. Of course the problem with this is if the player has changed their default background (such as using a light color instead of black).


I'll look into this, as it would cause problems if they changed their ANSI color settings, though, in theory, if they did, the clan flags in the MUD should still be the same color as what I used (which is where the color is drawn from anyways).

Quote:

If you are writing a general purpose script, you might want to define some variables that will determine the color values your script uses so that people using your script can easily change the colors to whatever suits them.


Something I always like to do. I just take the processes in steps with newer versions and what not, I'm sure you understand. Wink
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
Zugg
MASTER


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

PostPosted: Wed May 19, 2010 10:21 pm   
 
Quote:
%ansi(7) is being changed to be that color. It's really funky.

OK, that's a bug. It shouldn't do that. Confirmed and added to bug list. Not sure when this happened or why nobody ever reported it before.
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Wed May 19, 2010 11:12 pm   
 
Thanks Zugg, appreciate it. Smile
_________________
Listen to my Guitar - If you like it, listen to more
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