|
Dwoggurd Wanderer
Joined: 29 Jan 2008 Posts: 63
|
Posted: Sat Jun 07, 2008 5:06 pm
[2.26] ANSI colors in logs |
My own commands do not have correct ansi sequences in ansi logs.
They are saved with ESC]0m instead of default (yellow?) color. |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sat Jun 07, 2008 5:35 pm |
CMUD now uses styles for colours, which means that colours that aren't explicitly set by the MUD (ie, that're using your style colours) won't be saved. There's no way to save this info into an ANSI log because styles can use any colour with a hex code. I'm not sure whether using the HTML logging option will help with this, but it's worth a try.
|
|
|
|
Dwoggurd Wanderer
Joined: 29 Jan 2008 Posts: 63
|
Posted: Sat Jun 07, 2008 5:56 pm |
That's annoying :)
It worked in 2.18 (not sure about 2.25), I guess things have changed. It looks like HTML logging is the only option now. Hopefully HTML bugs will be fixed or I'm screwed. |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Jun 09, 2008 5:34 pm |
In the future I'm going to try and improve this by comparing your Style setting with your current ANSI colors to see if it can find the "closest match" for the ANSI color that can be used for your commands. But Fang is correct that ANSI color doesn't support Styles, since Styles allow you to set your command color to *any* color instead of just the normal 8/16 ANSI colors.
So HTML isn't the only logging option, it's just that ANSI cannot support more than 8/16 colors. |
|
|
|
Dwoggurd Wanderer
Joined: 29 Jan 2008 Posts: 63
|
Posted: Mon Jun 09, 2008 7:43 pm |
As I understand in the previous versions CMUD used "fake" ANSI colors like ESC]0S, ESC]1S (etc) for styles and they could be set to any color as well. That worked for me but I agree that it's not a "fair" solution.
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Mon Jun 09, 2008 7:57 pm |
It still does internally, AFAIK, but it was a bug that they were written to the log, and now they're not.
|
|
|
|
|
|