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
Dwoggurd
Wanderer


Joined: 29 Jan 2008
Posts: 63

PostPosted: Sat Jun 07, 2008 4:58 pm   

[2.26] HTML logging bugs
 
1) When saving a log using "save buffer" (unlike normal HTML logging) no <BR> saved into a file after each line.

2) Normal text is saved with span color=000000 instead of real foreground color.
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Jun 09, 2008 5:31 pm   
 
Added to bug list.
Reply with quote
Zugg
MASTER


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

PostPosted: Thu Jun 12, 2008 8:51 pm   
 
I have (1) fixed in v2.27, but I cannot reproduce (2). I set the HTML logging preference and then opened a log file. Then I displayed some text on my MUD and then closed the log file.

When I looked at the *.htm log file in an external editor, the normal text from the MUD didn't have any "color=000000" style at all. So either this is already fixed in 2.27, or I cannot reproduce it without an exact procedure.
Reply with quote
Dwoggurd
Wanderer


Joined: 29 Jan 2008
Posts: 63

PostPosted: Thu Jun 12, 2008 9:15 pm   
 
This happens after first colored text from a mud.
My mud disables colors by ESC[0m.
After that every "normal" line saved in a log with preceeding ESC[0m. or Color "000000".

I tried to reproduce that:

debugfile txt:
Notice (White Aura) with ansi codes
Code:
<100%hp 100%m 97%mv 1750tnl (50.00%)>
out (    3) 06/12/08 15:56:15:046 : e<CR><LF>
in  (   84) 06/12/08 15:56:15:218 : The Holy Cavern Row<LF><CR>
 <LF><CR>
[Exits: east west]<LF><CR><LF><CR>
<100%hp 100%m 96%mv 1750tnl (50.00%)>
out (    3) 06/12/08 15:56:15:546 : e<CR><LF>
in  (  267) 06/12/08 15:56:15:718 : A Holy Antechamber on Holy Cavern Row<LF><CR>
 <LF><CR>
[Exits: north east west]<LF><CR>
A svirfneblin commoner stands here talking about politics.<LF><CR>
A tall, skinny svirfneblin adept stands guard here.<LF><CR>
A short svirfneblin adept stands guard here.<LF><CR><LF><CR>
<100%hp 100%m 96%mv 1750tnl (50.00%)>
out (    3) 06/12/08 15:56:16:312 : e<CR><LF>
in  (  413) 06/12/08 15:56:16:468 : The Holy Cavern<LF><CR>
 <LF><CR>
[Exits: south west down]<LF><CR>
     A crack in the rock spills forth cool natural spring water.<LF><CR>
     A flat pit serves to hold donations.<LF><CR>
A svirfneblin commoner stands here laughing to himself.<LF><CR>
(Whirling Blades) <ESC>[37;1m(White Aura) <ESC>[0mA pious looking svirneblin stands here, tending to the sick and needy.<LF><CR>
A short svirfneblin healer stands guard here.<LF><CR><LF><CR>
<100%hp 100%m 95%mv 1750tnl (50.00%)>
out (    3) 06/12/08 15:56:17:984 : w<CR><LF>
in  (  267) 06/12/08 15:56:18:156 : A Holy Antechamber on Holy Cavern Row<LF><CR>
 <LF><CR>
[Exits: north east west]<LF><CR>
A svirfneblin commoner stands here talking about politics.<LF><CR>
A tall, skinny svirfneblin adept stands guard here.<LF><CR>
A short svirfneblin adept stands guard here.<LF><CR><LF><CR>
<100%hp 100%m 94%mv 1750tnl (50.00%)>
out (    3) 06/12/08 15:56:31:578 : w<CR><LF>
in  (   84) 06/12/08 15:56:31:781 : The Holy Cavern Row<LF><CR>
 <LF><CR>
[Exits: east west]<LF><CR><LF><CR>
<100%hp 100%m 99%mv 1750tnl (50.00%)>


Then I did "save buffer" in html format:

Code:
<100%hp 100%m 99%mv 1750tnl (50.00%)> <span style="color:#F0E68C;">e</span>
The Holy Cavern Row
 
[Exits: east west]

<100%hp 100%m 98%mv 1750tnl (50.00%)> <span style="color:#F0E68C;">e</span>
A Holy Antechamber on Holy Cavern Row
 
[Exits: north east west]
A svirfneblin trader stands here, hauling a bag of mushrooms.
A svirfneblin commoner stands here talking about politics.
A tall, skinny svirfneblin adept stands guard here.
A short svirfneblin adept stands guard here.

<100%hp 100%m 98%mv 1750tnl (50.00%)> <span style="color:#F0E68C;">e</span>
The Holy Cavern
 
[Exits: south west down]
     A crack in the rock spills forth cool natural spring water.
     A flat pit serves to hold donations.
A svirfneblin commoner stands here laughing to himself.
(Whirling Blades) <span style="color:#FFFFFF;">(White Aura) </span><span style="color:#000000;">A pious looking svirneblin stands here, tending to the sick and needy.</span>
<span style="color:#000000;">A short svirfneblin healer stands guard here.</span>

<span style="color:#000000;"><100%hp 100%m 97%mv 1750tnl (50.00%)> <span style="color:#F0E68C;">w</span></span>
<span style="color:#000000;">A Holy Antechamber on Holy Cavern Row</span>
<span style="color:#000000;"> </span>
<span style="color:#000000;">[Exits: north east west]</span>
<span style="color:#000000;">A svirfneblin trader stands here, hauling a bag of mushrooms.</span>
<span style="color:#000000;">A svirfneblin commoner stands here talking about politics.</span>
<span style="color:#000000;">A tall, skinny svirfneblin adept stands guard here.</span>
<span style="color:#000000;">A short svirfneblin adept stands guard here.</span>

<span style="color:#000000;"><100%hp 100%m 96%mv 1750tnl (50.00%)> <span style="color:#F0E68C;">w</span></span>
<span style="color:#000000;">The Holy Cavern Row</span>
<span style="color:#000000;"> </span>
<span style="color:#000000;">[Exits: east west]</span>

<span style="color:#000000;"><100%hp 100%m 99%mv 1750tnl (50.00%)> <span style="color:#F0E68C;">s</span></span>
Reply with quote
Zugg
MASTER


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

PostPosted: Thu Jun 12, 2008 9:44 pm   
 
Ah, OK, I see what you mean. Thanks for the detailed example. I wasn't able to test this in 2.27 so you might give it a quick test to see if it was magically fixed by some other bug fix. But my guess is that it will still happen and I'll add it to the bug list for a future version.
Reply with quote
Dwoggurd
Wanderer


Joined: 29 Jan 2008
Posts: 63

PostPosted: Thu Jun 12, 2008 11:05 pm   
 
It is the same for 2.27.
Reply with quote
Zugg
MASTER


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

PostPosted: Thu Jun 12, 2008 11:15 pm   
 
OK, it's on the bug list.
Reply with quote
Dwoggurd
Wanderer


Joined: 29 Jan 2008
Posts: 63

PostPosted: Thu Jun 12, 2008 11:32 pm   
 
If it helps... it looks like after mud sends ESC[0m CMUD inserts ESC[0S (or ESC[0m?) at the beginning of each line (and thus saves color=0 tag into a log file).
The first ESC[0m is converted into a color=0 tag too, probably should insert default text color instead.
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