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
Fang Xianfu
GURU


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

PostPosted: Tue Apr 24, 2007 10:12 pm   

MXP colour logging
 
I don't know if this has been mentioned before (or even if I'VE mentioned it before) but it came up in #cmud just now - I'd really love it if there were a way to log MXP tags, specifically the <color> ones. I used to log with ANSI turned on and then use Charbal's lovely plugin to convert them to HTML to make them more readable. I've since converted almost all my ANSI colouring to MXP, and it's not logged. Very pants :(
Reply with quote
Zugg
MASTER


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

PostPosted: Wed Apr 25, 2007 3:06 am   
 
I'll add this to the bug list, but it won't be done for a while. The MXP stuff is stripped early in the parsing and isn't available by the time the logger gets to it. The logger is like the trigger system...it only sees what's on the screen as text and not the raw code. The current ANSI logging recreates the ANSI colors from the colors on the screen...it doesn't actually log the real ANSI codes from the MUD.
Reply with quote
Seb
Wizard


Joined: 14 Aug 2004
Posts: 1269

PostPosted: Wed Apr 25, 2007 8:43 am   
 
So logging with ANSI switched on should reproduce the colour codes even though they colour was determined by MXP tags?
Reply with quote
Zugg
MASTER


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

PostPosted: Wed Apr 25, 2007 5:53 pm   
 
Well, not really. MXP can produce colors that ANSI cannot. So when CMUD tries to look at the color on the screen and determine which ANSI color to use, it will likely fail. Remember than ANSI can only produce 16 foreground colors. So it's not going to be able to reproduce the color that MXP created.
Reply with quote
shalimar
GURU


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

PostPosted: Wed Apr 25, 2007 7:31 pm   
 
can it not determine the hexadecimal color codes instead of the ansi color codes?
_________________
Discord: Shalimarwildcat
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Wed Apr 25, 2007 7:50 pm   
 
I guess that's how it'll be changed, since Zugg agrees that it's something to be worked on. Or it could be configurable - log ANSI colours, log websafe colours, log non-websafe colours. Or something.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
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