|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Sat May 10, 2008 6:44 am
[2.25] Pcol problems and HTML Logging? |
I use #pcol to color my prompt. In the HTML log it shows it wasn't even coloring the prompt at all then all of a sudden it took one of the colors in my prompt and changed all text in the rest of the log to that color of blue.
Here is where it happened, you can see the problem is it doesn't add a closing span tag.
Code: |
You drink from an indigo potion.<BR/>
The potion of antidote has immediate effect.<BR/>
<BR/>
<span style="color:white;background-color:blue;">Afflictions Reset</span><BR/>
<span style="color:#FFFF00;">diagnose</span><BR/>
<span style="color:#00FF00;">838</span>h, <span style="color:#00FF00;">1232</span>m <span style="color:#4169E1;">cdefi- <BR/>
The pipe is not lit.<BR/>
<span style="color:#FFFF00;">light 95929</span><BR/>
838h, 1232m cdefi<b>- </b><span style="color:#000000;">You drink from a clear potion.</span><BR/>
<span style="color:yellow;">Off-Balance</span><span style="color:silver;"> HM-Potion</span><BR/>
1232h, 1232m cdefip<b>- </b><BR/>
You perform a self-diagnosis.<BR/> |
As you can see the rest of my log is now blue. Also it didn't color any of my prompts up until this one. As soon as that mxp of "Afflictions Reset" went through it colored my prompt, but didn't close it and the rest of the entire log is blue. |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sat May 10, 2008 11:41 am |
There're likely going to be problems with the HTML logging; it's a new feature and not been polished much yet. I'm not sure if this'll be enough information to reproduce the problem; Zugg won't be back for a week to confirm that, but if you have time before then and want to add some more info just to make sure, open the script debugger and turn on the i messages (raw input/output) and copy the part that makes this happen. Then give us the XML for the trigger that you're running that causes it. This way, we can reproduce your exact problem.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Wed May 21, 2008 8:08 pm |
Be sure you turn on the option to perform the logging AFTER running triggers. Otherwise the #PCOL is happening after the log line has already been written to the file.
If it is still a problem with the "log after triggers" option enabled, then you need to show me the exact #PCOL trigger that you are using and some sample text to run it on to demonstrate the problem. |
|
|
|
|
|