Charbal's HTML Logger

by Kharaen

Back to Common Grounds.

Kharaen2006-11-19 01:53:15
If you've got ZMUD (and I assume CMUD) you can use this plugin to display logs in colour (as seen in ZMUD.) Easier to read through then with a plain text file.

Download the attachment provided in this post and unzip it into your ZMUD/CMUD directory.

Start up CMUD/ZMUD.

Under PLUGINS, go to INSTALL PLUGINS.

Go to the directory that you unziped Charbal's HTML Loger, and then select it.

--------

To make logs into ansi logs:

Under VIEW, go to PREFERENCES, then LOGGING, then click on LOG ANSI COLOR.

--------

To log immediately as an HTML file:

Under PLUGINS, select CHARBAL'S HTML LOGGER, then LOG.

--------

To convert an ansi text file log to HTML:

Under PLUGINS, select CHARBAL'S HTML LOGGER, then CONVERT EXISTING LOG TO HTML.

--------

Enjoy!
Shorlen2006-11-19 02:02:59
Err, anything I have a highlight for is appearing as black on black. Also, what should be grey is green instead.

Help?
Kharaen2006-11-19 02:05:45
QUOTE(Shorlen @ Nov 18 2006, 09:02 PM) 354816

Err, anything I have a highlight for is appearing as black on black. Also, what should be grey is green instead.

Help?


There's a SETUP menu under CHARBAL'S HTML LOGGER, you should be able to change ansi settings from there. Changing the black foreground colour to something else, changing green to grey. I need to test this out myself though, but messing around in there should solve the problem (if you make any mistakes, you can just set back the default values and try again.)

EDIT: If you do come up with a working list of colours, could you add the .col file here please?
Shorlen2006-11-19 02:08:46
QUOTE(Kharaen d'Attai @ Nov 18 2006, 09:05 PM) 354817
There's a SETUP menu under CHARBAL'S HTML LOGGER, you should be able to change ansi settings from there. Changing the black foreground colour to something else, changing green to grey. I need to test this out myself though, but messing around in there should solve the problem (if you make any mistakes, you can just set back the default values and try again.)

Not working. If I, say, have a trigger to turn all direction words olive, or to highlight my name lime, or highlight "soul of" pink, all of those words will be coloured black instead in the log.
Kharaen2006-11-19 02:12:01
QUOTE(Shorlen @ Nov 18 2006, 09:08 PM) 354818

Not working. If I, say, have a trigger to turn all direction words olive, or to highlight my name lime, or highlight "soul of" pink, all of those words will be coloured black instead in the log.


THAT is annoying, and I've had that problem myself. I don't know how to fix it though sad.gif I'll go troll the Zuggasoft forums and see if there's a cure for this problem there.
Charune2006-11-19 02:13:22
Charbal's system only works with the standard colours, not the high colour formats of html. It will register green for example, but not springgreen.
Shorlen2006-11-19 02:16:10
QUOTE(Charune @ Nov 18 2006, 09:13 PM) 354822
Charbal's system only works with the standard colours, not the high colour formats of html. It will register green for example, but not springgreen.

So if I switch my #cw triggers to use ansi codes, it'll work?
Charune2006-11-19 02:18:36
QUOTE(Shorlen @ Nov 18 2006, 08:16 PM) 354823

So if I switch my #cw triggers to use ansi codes, it'll work?



If you set your #CW to use the base 16 colours it will work. If you try and use the 256 HTML colours it will not recognise them.

Charbal made a post about this long ago about a possible updated version that allowed the full range of colours, but as most people who code scripts know, other things came up and it never got accomplished.
Kharaen2006-11-19 02:28:14
QUOTE(Charune @ Nov 18 2006, 09:18 PM) 354826

If you set your #CW to use the base 16 colours it will work. If you try and use the 256 HTML colours it will not recognise them.

Charbal made a post about this long ago about a possible updated version that allowed the full range of colours, but as most people who code scripts know, other things came up and it never got accomplished.


How do you set up to use only the base 16 #CW colours?
Shorlen2006-11-19 02:35:30
That's going to be irritating for my prompt though - I like my olive maxes sad.gif
Asarnil2006-11-19 02:44:58
Then just wait till CMUD goes gold. It should have ansi logging inbuilt into it.
Shorlen2006-11-19 18:04:29
Fixed! Woo! Colour logs!

I just made all of my #cw triggers use ansi colors with %color(). So for instance, my lime highlights are all #cw %eval(%color(green)+%color(hi)) instead of #cw lime. After that, I only had #cw triggers that used two non-ansi colors. I changed one to be something ansi instead, but I couldn't use anything ansi for the last set, since nothing looked right.

So, to get all my olive highlights I so love, I set the log to use a .css file, and then edited the .css file to make the color for %ansi(0) be olive. So, when the logger goes "This color isn't ansi, we'll make it black!" it makes it olive instead happy.gif

And I realized that the colors you set in setup don't effect the current log, you have to close it and open a new one, that's why I couldn't seem to change my default color from green to grey dry.gif
Forren2006-11-19 18:17:02
I loaded it but clicking on the options in Plugins like Log.., etc, don't do anything for me.
Kharaen2006-11-19 18:19:11
The option to log should be under plugins, under charbal's html logger.
Shorlen2006-11-19 18:20:19
QUOTE(Forren @ Nov 19 2006, 01:17 PM) 355025
I loaded it but clicking on the options in Plugins like Log.., etc, don't do anything for me.

Sure it didn't bring up a thing that asked you where you wanted to save the log? Did you turn on ansi logging in options?
Acrune2006-11-19 18:20:57
Neat, thanks.
Forren2006-11-19 18:34:11
QUOTE(Shorlen @ Nov 19 2006, 01:20 PM) 355027

Sure it didn't bring up a thing that asked you where you wanted to save the log? Did you turn on ansi logging in options?


I haven't opened a log yet. How do I go about doing that now?
ferlas2006-11-19 18:35:15
QUOTE(Forren @ Nov 19 2006, 06:17 PM) 355025

I loaded it but clicking on the options in Plugins like Log.., etc, don't do anything for me.


Same thing here If I click log or setup nothing happens at all, if I click convert existing log to html then error 339 a file is missing/inalid/etc do you have to save these files in a certain part like in the zmud directory or something?

EDIT: Missing file is comdlg32.ocx
Unknown2006-11-19 18:35:41
Yeah, I'll have to try this out with CMUD.
Shorlen2006-11-19 19:22:36
QUOTE(Forren @ Nov 19 2006, 01:34 PM) 355034
I haven't opened a log yet. How do I go about doing that now?

Dunno, it just opened this thingie up for me that said "Save as?"

Did you unzip the file to a directory, and then go into zMUD, click plugins, then select install plugins, then click install, then go find the .dll file you unzipped and install that?