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: Sat Apr 05, 2008 1:49 pm   

Ansi Color Log
 
So, I have it set to log in Ansi color for my CMUD. However, this may be useless and ruining my logs because Charbal won't convert it. I was told the plug in wouldn't work with CMUD, but that the stand alone converter would. However, I get "Error 13 while trying to convert log file: type mismatch", it then finished and gives me the first few lines which also have some strange characters in front of them, and then nothing else. Am I doing something wrong?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Apr 05, 2008 5:14 pm   
 
It doesn't sound like you are doing anything wrong. Charbal original wrote the HTML loggin plugin for zMud because he desired that capability. He also wrote the conversion so that existing logs could easily be used. He hasn't been around in quite some time and I rather miss him.

There was a bug with the ANSI logging at some point that caused it to include the internal style codes in the log. I don't actually see anything in the version history to indicate that it was fixed. I am guessing that Charbal didn't include handling for bad sequences when he wrote the conversion program.

CMud actually provides an easy way to do the conversion. Use the Editor window (CTRL-SHIFT-ENTER) to open the log as an Ansi file. This will read the file with all the colors correctly. Then select Save as from the editor window's menu, and set the type to HTML.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Sat Apr 05, 2008 8:42 pm   
 
I've just bought a new computer and haven't gotten round to getting Charbal's to work yet (have to install buttloads of .ocx files as I remember), so I can't help there.

You can open ANSI logs with the editor, though, and then save them to HTML. Just choose the ANSI file type when you open them and the HTML type when you save them.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Sat Apr 05, 2008 10:35 pm   
 
Thanks. It didn't seem to log the default color (silver correctly) it logged it black and didn't keep the black background, Luckily I know html, but is there a way to avoid this pain in the future?
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Apr 05, 2008 11:29 pm   
 
I don't think there is anything you can do to avoid it other then not making HTML logs. You might get some play by changing the default color, but I doubt it would help.

HTML logging was something that was discussed many times, and likely is still on the wish list. I would suggest using the feedback option in Cmud to request it. The more something is reqested the higher a priority it is for Zugg.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Sat Apr 05, 2008 11:32 pm   
 
You can change the background colour and the text colour the editor uses, which'll hopefully be saved out. I haven't tested that yet.

Trouble with this is that the <ESC>[0S codes that CMUD uses for styles (command colour, default text colour, etc) are lost somewhere - either when the ANSI log is created or when the editor saves its HTML, so you'll end up with commands being the wrong colour and stuff like that.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Sun Apr 06, 2008 12:20 am   
 
I changed it manually, it's just a pain. Also, the html is extremely messy and hard to edit.
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Sun Apr 06, 2008 1:55 am   
 
So suggest some improvements :)
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Sun Apr 06, 2008 2:52 am   
 
I just did, using the feedback system. I think it could look much neater and be easier to edit with CSS used.
_________________
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