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: Fri Jun 13, 2008 5:36 pm   

[2.27] Bug? MXP colors are off? (updated from mxp option missing topic)
 
topic says it all, the option to turn off underlining mxp is gone?

Topic update.


Last edited by XonDK on Sat Jun 14, 2008 6:51 pm; edited 2 times in total
Reply with quote
Tech
GURU


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

PostPosted: Fri Jun 13, 2008 6:08 pm   
 
Have you tried %pref(MXPUnderline, 0)?
_________________
Asati di tempari!
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Fri Jun 13, 2008 7:41 pm   
 
Its controlled by the style for URLs and can turn it off from the style section of prefs.

I wish there was a distinction made between URLs and random commands in <send> tags though.
_________________
Discord: Shalimarwildcat
Reply with quote
Zugg
MASTER


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

PostPosted: Fri Jun 13, 2008 8:16 pm   
 
Shalimar, I might be able to add an option to use the style for SEND tags in a future version. But I probably won't add a separate style...I'll just add an option box to determine whether to apply the new URL style to SEND tags or not.

Tech: The MXPUnderline pref won't do anything anymore. As Shalimar mentioned, you have to go into the Styles preferences to change the URL style there. Just turn off the Underline option for the URL style, or change it to any style you want. This allows people to control the color of URLs, which was a big request (people wanted blue-underlined URLs for example).
Reply with quote
Tech
GURU


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

PostPosted: Fri Jun 13, 2008 9:15 pm   
 
Odd. I usually coded my color tags or just accepted them as whatever color they were. Then again, I've never wanted to remove the underline either, so go figure.
_________________
Asati di tempari!
Reply with quote
XonDK
Apprentice


Joined: 01 Dec 2006
Posts: 178

PostPosted: Sat Jun 14, 2008 12:19 am   
 
Url fixed it, though for some reason the colors seem to be off? Don't know what was changed, but now the colors are....dimmer?
what was before the same color as %ansi(9) is now the HTML color (gotten with gimp from screenshot) #41415c
And what was before %ansi(10) is now html #3e573e

what's up with that?
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Jun 16, 2008 7:09 pm   
 
You need to give me more information on this one. How exactly are you setting the colors? Are you doing

#SHOW %ansi(9)testing

or something like that? Or are you using MXP colors or styles? Can you show a before/after screenshot? I haven't seen any color differences when I've been playing, but maybe it's just too subtle or something.

Remember that using %ansi will display whatever colors you have set in your ANSI Color preferences page, so maybe your's have gotten changed somehow?
Reply with quote
XonDK
Apprentice


Joined: 01 Dec 2006
Posts: 178

PostPosted: Mon Jun 16, 2008 10:11 pm   
 
Specificly it is the mxp links that mudbot sends back to cmud.
there's no real way to describe it so i'm linking two pictures to show the difference
cmud
zmud

The cmud version is dimmer...faded?

basicly both images contain a (number) the number is a clickable mxp link, in zmud it had the ansi green/lime, but in cmud it doesn't?
and it only does this on mxp links, the code that mudbot sends to cmud is exactly the same, but if something has an mxp link it doesn't show up as the same color.
So somewhere along the line cmud decides to process mxp color's differently then normal ansi colors?
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Jun 16, 2008 10:32 pm   
 
Without seeing the raw input being sent to CMUD (like via the Script Debugger), I still can't really help with this. If the MUD is sending the ANSI reset command to use the default text color, then zMUD was always using your %ansi(2) color, whereas CMUD uses whatever color is assigned to your Default Session Text style.

If the MUD is sending the %ansi(2) or %ansi(10) green color codes, then it's possible that your ANSI color preferences are set differently between zMUD and CMUD. You'd need to look into your ANSI Preferences in both programs to see that.

I'm not sure what you mean by "mxp links" since I didn't see any link in your screenshot.
Reply with quote
XonDK
Apprentice


Joined: 01 Dec 2006
Posts: 178

PostPosted: Mon Jun 16, 2008 10:34 pm   
 
ah, keep forgetting script debugger.
the links are hidden, like a html link the link itself IS the number, let me run script debugger.
Reply with quote
XonDK
Apprentice


Joined: 01 Dec 2006
Posts: 178

PostPosted: Mon Jun 16, 2008 10:43 pm   
 
0.0002 | <ESC>[0;37m is at Smoke-filled corridor.<ESC>[6z <ESC>[1;30m(<ESC>[1;32m<mpelm v=3054 r="Smoke-filled corridor." t="Constructed underground">3054</mpelm><ESC>[1;30m<ESC>[1;30m,<ESC>[1;32m...<ESC>[1;30m)<ESC>[0;37m <ESC>[1;31m(<ESC>[0;32mDungeon of the Beastlords.<ESC>[1;31m)<ESC>[0;37m<CR><LF>

This is the info script debugger gives me, as you see, [1;32m is the color code that mudbot gives cmud.
However under normal events that color would show up like %ansi(10) it does not when it is an mxp link however.
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Mon Jun 16, 2008 11:25 pm   
 
I remember this exact same bug from a while ago. Some MXP-related colour changing code got enabled for all colours, including ANSI ones, which made all the colours appear a bit washed out. And yes, that time you couldn't tell the difference either - I posted two screenshots, one of zMUD and one of CMUD and you couldn't tell the difference.

However, I'm not seeing this now - all the colours look exactly the same. Check that your style colours are set right, first.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)

Last edited by Fang Xianfu on Tue Jun 17, 2008 12:01 am; edited 1 time in total
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Jun 16, 2008 11:46 pm   
 
Yep, I see it now. And Fang is actually correct about the cause. A simple test to cause it to happen is:
Code:
#mxp %e[1~;32mthis is lime green <SEND test>this is a link</SEND>

and you will see that the link has a different color.

What is happening here is that the ESC[1 part of the ANSI code is actually the "bold" code in ANSI. In your ANSI preferences you probably have this set to "Use highlighted color" which causes ESC[1;32m to actually use color 10 instead of color 2.

But when you get an MXP link, it looks at the URL style and converts the current attribute record into an MXP record. The "Use highlighted color" flag is still set, but in MXP it uses an actual color algorithm to highlight *any* color. It has no way to know that it needs to look at your %ansi(10) color value. It just knows that it needs to "highlight the current green color". And the algorithm used to highlight the color doesn't produce the exact same colors as the highlighted ANSI color set.

I'll need to think more about how to handle this, so I won't be able to fix it in the next quick version this week, sorry.
Reply with quote
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Mon Jun 16, 2008 11:48 pm   
 
This problem still takes place, but randomly. For a while I thought that it was the MUD doing this via color bleeding so I appended a bleed neutralizer at the end of the line, this didn't get rid of the problem. The color wash comes and goes at will.
_________________
Sic itur ad astra.
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