[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Text color not staying default color

Text color not staying default color

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Pages: 1 2  

Posted by Hautbois   USA  (16 posts)  [Biography] bio
Date Fri 11 Feb 2005 12:11 AM (UTC)
Message
I am not sure if there already is a post regarding this issue, I browsed for a bit and the decided to just create a new subject.

I am using MUSHclient version 3.65. My problem has to do with the "regular text" color changing to a shade of black (i.e. #0A0A0A) when the mud is not telling it specifially to be light gray (the color I have set for my "regular text" in the ANSI config screen.) Since the background of the mud is black this causes quite a problem since I like to be able to read the text.

This is only happening to the normal text. All the other text in the mud is the correct color, and regular is its correct color only when the MUD includes the code for default text color directly before the text (the MUD only does this when 'regular' colored text follows colored text.

I hope that this information is useful, and I would be glad to provide more if necessary.
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Reply #1 on Fri 11 Feb 2005 05:11 AM (UTC)
Message
Can you set your 'default' color serverside?
Perhaps instead of sending "none" the mud is sending black (since it's 'default' text color is black on white?).

You can view your packets to show exactly what is being sent from the server (packet debug) and seeing that will help us debug it anyway, so it couldnt hurt to post an example here.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

Posted by Hautbois   USA  (16 posts)  [Biography] bio
Date Reply #2 on Fri 11 Feb 2005 06:40 PM (UTC)
Message
Thank you for your response.

To start, one cannot set the default color on this MUD. The default colors are all preset, the default text being lightgray on black. All the colors come out correctly when I play the MUD using other programs such as hyperterminal, or the java applet available on the website.

Another thing I have noticed is the the color that the problem text changes too is not exclusively black, but rather, it always matches the backgroung. That is, if I make the backgroud white, the text is white, if I make it green the text is green etc.

As far as viewing the packets, I am not sure how to go about this, you assistance in the would be appreciated.
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Reply #3 on Fri 11 Feb 2005 07:10 PM (UTC)
Message
Debug Packets is Edit > Debug Packets (three from the bottom) or Ctrl-Alt-F11.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

Posted by Hautbois   USA  (16 posts)  [Biography] bio
Date Reply #4 on Fri 11 Feb 2005 09:17 PM (UTC)
Message
Well clicking that didn't do anything...that I can see. I have included with this post an HTML copy of a portion of the text:


<!-- Produced by MuClient v 3.65 - www.muclient.com -->
<table border=0 cellpadding=5 bgcolor="#000000">
<tr><td>
<pre><code><font size=2 face="FixedSys, Lucida Console, Courier New, Courier"><font color="#0">
</font><font color="#800080">The Heart of New Lensmoor

</font><font color="#C0C0C0">This is the heart of New Lensmoor. A gnarled old oak stands here glowing
with a soft light. Some kind of powerful magic that makes you feel safe and
welcome is at work here. There are streets leading off in all directions.

[Exits: </font><font color="#808000">north</font><font color="#C0C0C0"> </font><font color="#808000">east</font><font color="#C0C0C0"> </font><font color="#808000">south</font><font color="#C0C0C0"> </font><font color="#808000">west</font><font color="#C0C0C0"> </font><font color="#808000">down</font><font color="#C0C0C0">]
</font><font color="#00FFFF">A wanted poster has been left here.
A gnarled old oak stands here.
</font><font color="#FFFF00">A sign is firmly embedded in the ground. Type </font><font color="#00FFFF">LOOK SIGN</font><font color="#FFFF00"> to read it.
</font><font color="#00FFFF"> A sign has been tacked to a nearby wall.
</font><font color="#808080"> (X) </font><font color="#000080">(</font><font color="#C0C0C0">l air elem.</font><font color="#000080">) (</font><font color="#C0C0C0">C</font><font color="#FFFFFF">W</font><font color="#000080">) </font><font color="#008080">A wisp of </font><font color="#000080">raw power</font><font color="#C0C0C0"> is sitting here.
</font><font color="#808080"> (X) </font><font color="#000080">(</font><font color="#FFFFFF">g M swamp dragon</font><font color="#000080">) (</font><font color="#C0C0C0">F</font><font color="#FF00FF">P</font><font color="#FF0000">R</font><font color="#000080">) </font><font color="#0000FF">Tsanic is here.
</font><font color="#808080"> (X) </font><font color="#000080">(</font><font color="#C0C0C0">m M human</font><font color="#000080">) </font><font color="#0000FF">A janitor is here keeping the city clean.
</font><font color="#808080"> (X) </font><font color="#000080">(</font><font color="#C0C0C0">m M sidhe</font><font color="#000080">) (</font><font color="#FF0000">R</font><font color="#000080">) </font><font color="#0000FF">Lared is resting in a gnarled old oak.
</font><font color="#808080"> (X) </font><font color="#FF0000">[</font><font color="#FFFF00">OOC</font><font color="#FF0000">] </font><font color="#000080">(</font><font color="#FFFFFF">m F sidhe</font><font color="#000080">) (</font><font color="#FFFFFF">W</font><font color="#000080">) </font><font color="#808000">Qaz stands thoughtfully in the l</font><font color="#FFFF00">i</font><font color="#808000">g</font><font color="#FFFF00">h</font><font color="#808000">t</font><font color="#FFFFFF">.

</font><font color="#808080">[</font><font color="#800000">100</font><font color="#808080">|</font><font color="#808000">100</font><font color="#808080">|</font><font color="#008000">100</font><font color="#808080">]</font><font color="#C0C0C0">
Broin appears in the room.
[</font><font color="#FF00FF">QUEST</font><font color="#C0C0C0">] Grumolch has scored!


</font><font color="#000000">Broin flies east.


</font><font color="#FFFFFF">A Set Of</font><font color="#FFFF00"> Lucky</font><font color="#FFFFFF"> Dice</font><font color="#C0C0C0"> pulses </font><font color="#FF0000">red</font><font color="#C0C0C0">.
Tsanic utters the words, 'curse'.


</font><font color="#000000">[</font><font color="#FF00FF">QUEST</font><font color="#C0C0C0">] Olvir has scored!


</font><font color="#000000">Sophie appears in the room.


You are hungry.


Sophie strolls east.


[</font><font color="#FF00FF">QUEST</font><font color="#C0C0C0">] Morgrim has scored!


</font><font color="#000000">Ratter appears in the room.
[</font><font color="#00FF00">INFO</font><font color="#C0C0C0">] Oloid has left Lensmoor.

</font></font></code></pre>
</td></tr></table>



I hope this helps...The problem text is that which appears with no html code in front of it (esp. socials).
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Reply #5 on Fri 11 Feb 2005 10:31 PM (UTC)
Message
Turn debug packets on, then recieve something from the mud, your world is probably maximized, so make it a window and youll see the packet debug, or go to window > packet debug, and you'll see what it does. Copy that here.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

Posted by Hautbois   USA  (16 posts)  [Biography] bio
Date Reply #6 on Fri 11 Feb 2005 10:37 PM (UTC)
Message
okay, sorry about that, the window was maximized:


Incoming packet: 47 (189 bytes)

.7.[29;1H...[0;3 1b 37 1b 5b 32 39 3b 31 48 0d 0a 1b 5b 30 3b 33
2mTsanic smirks 32 6d 54 73 61 6e 69 63 20 73 6d 69 72 6b 73 20
at .[1;37ma .[1; 61 74 20 1b 5b 31 3b 33 37 6d 61 20 1b 5b 31 3b
30mwrathful.[1;3 33 30 6d 77 72 61 74 68 66 75 6c 1b 5b 31 3b 33
7m angel.[0;32m 37 6d 20 61 6e 67 65 6c 1b 5b 30 3b 33 32 6d 20
'i just said goo 27 69 20 6a 75 73 74 20 73 61 69 64 20 67 6f 6f
d job but might 64 20 6a 6f 62 20 62 75 74 20 6d 69 67 68 74 20
want to watch wh 77 61 6e 74 20 74 6f 20 77 61 74 63 68 20 77 68
o you ask that t 6f 20 79 6f 75 20 61 73 6b 20 74 68 61 74 20 74
oo :P'.[0m...[30 6f 6f 20 3a 50 27 1b 5b 30 6d 0d 0a 1b 5b 33 30
;1H.[2K.[31;1H.[ 3b 31 48 1b 5b 32 4b 1b 5b 33 31 3b 31 48 1b 5b
2K.[30;1H...8 32 4b 1b 5b 33 30 3b 31 48 0d 0a 1b 38

[Go to top] top

Posted by Hautbois   USA  (16 posts)  [Biography] bio
Date Reply #7 on Fri 11 Feb 2005 10:39 PM (UTC)
Message
here is some more packet stuff:

Incoming packet: 62 (119 bytes)

.7.[29;1H..Cadga 1b 37 1b 5b 32 39 3b 31 48 0d 0a 43 61 64 67 61
n lumbers in fro 6e 20 6c 75 6d 62 65 72 73 20 69 6e 20 66 72 6f
m the east...A s 6d 20 74 68 65 20 65 61 73 74 2e 0d 0a 41 20 73
mall kitten slin 6d 61 6c 6c 20 6b 69 74 74 65 6e 20 73 6c 69 6e
ks in from the e 6b 73 20 69 6e 20 66 72 6f 6d 20 74 68 65 20 65
ast....[30;1H.[2 61 73 74 2e 0d 0a 1b 5b 33 30 3b 31 48 1b 5b 32
K.[31;1H.[2K.[30 4b 1b 5b 33 31 3b 31 48 1b 5b 32 4b 1b 5b 33 30
;1H...8 3b 31 48 0d 0a 1b 38

Incoming packet: 63 (97 bytes)

.7.[29;1H..Cadga 1b 37 1b 5b 32 39 3b 31 48 0d 0a 43 61 64 67 61
n lumbers north. 6e 20 6c 75 6d 62 65 72 73 20 6e 6f 72 74 68 2e
..A small kitten 0d 0a 41 20 73 6d 61 6c 6c 20 6b 69 74 74 65 6e
slinks north... 20 73 6c 69 6e 6b 73 20 6e 6f 72 74 68 2e 0d 0a
.[30;1H.[2K.[31; 1b 5b 33 30 3b 31 48 1b 5b 32 4b 1b 5b 33 31 3b
1H.[2K.[30;1H... 31 48 1b 5b 32 4b 1b 5b 33 30 3b 31 48 0d 0a 1b
8 38

Incoming packet: 64 (92 bytes)

.7.[29;1H..[.[1; 1b 37 1b 5b 32 39 3b 31 48 0d 0a 5b 1b 5b 31 3b
35mQUEST.[0m] Di 33 35 6d 51 55 45 53 54 1b 5b 30 6d 5d 20 44 69
on has completed 6f 6e 20 68 61 73 20 63 6f 6d 70 6c 65 74 65 64
a quest!...[30; 20 61 20 71 75 65 73 74 21 0d 0a 1b 5b 33 30 3b
1H.[2K.[31;1H.[2 31 48 1b 5b 32 4b 1b 5b 33 31 3b 31 48 1b 5b 32
K.[30;1H...8 4b 1b 5b 33 30 3b 31 48 0d 0a 1b 38

Incoming packet: 65 (61 bytes)

.7.[29;1H..You a 1b 37 1b 5b 32 39 3b 31 48 0d 0a 59 6f 75 20 61
re hungry....[30 72 65 20 68 75 6e 67 72 79 2e 0a 0d 1b 5b 33 30
;1H.[2K.[31;1H.[ 3b 31 48 1b 5b 32 4b 1b 5b 33 31 3b 31 48 1b 5b
2K.[30;1H...8 32 4b 1b 5b 33 30 3b 31 48 0d 0a 1b 38
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Reply #8 on Fri 11 Feb 2005 10:41 PM (UTC)
Message
Which lines dont show up?

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

Posted by Hautbois   USA  (16 posts)  [Biography] bio
Date Reply #9 on Fri 11 Feb 2005 10:44 PM (UTC)
Message
Packets 62, 63, and 65. The first character (a bracket) in packet 64 is not visible, but the rest is because the the world "QUEST" come back as bold green, the rest is visible as the default color.
[Go to top] top

Posted by Hautbois   USA  (16 posts)  [Biography] bio
Date Reply #10 on Fri 04 Mar 2005 12:36 AM (UTC)
Message
I am still having this problem, any assistance one could give me would be greatly appreciated.
[Go to top] top

Posted by Ked   Russia  (524 posts)  [Biography] bio
Date Reply #11 on Fri 04 Mar 2005 03:30 PM (UTC)
Message
The problem is visible in packet 64, right after QUEST. The string is "[QUEST] Dion has completed the quest!", next comes a newline (\0d\0a) and immediately after that a sequence of \1b\5b\33\30\3b. That last part is interpreted by Mushclient as ANSI Text Black, which turns the following text to black. In reality, I believe your MUD meant \1b\5b\33\30\3b\31\48, meaning what Mushclient views as ANSI Text black code plus the two characters following that. This gives "ESC[#;#H" or the Cursor Position code, which in this case is supposed to move the cursor to the first character on line 31. Looking at the rest of the package, there's an Eraze in Line code (which I think is supposed to erase the first 2 characters on line 31), then another CUP that moves to line 30. In other words, I think that Mushclient is simply too eager to interprete the codes that your MUD is sending as colour codes, instead of waiting for the "m" character to close the code and signify a valid markup and discarding the code if that character wasn't received.
[Go to top] top

Posted by Ked   Russia  (524 posts)  [Biography] bio
Date Reply #12 on Fri 04 Mar 2005 08:02 PM (UTC)
Message
Erm, I thought that the explanation above doesn't really solve the problem. The only immediate fix that I can think of is to simply wipe the troublemaker codes from your incoming data, as if they never existed. The following plugin should be able to deal with that:


<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Saturday, March 05, 2005, 6:39 AM -->
<!-- MuClient version 3.65 -->

<!-- Plugin "ANSI_Escape" generated by Plugin Wizard -->

<muclient>
<plugin
   name="ANSI_Escape"
   author="Keldar"
   id="8f4bd244698fb4762d0db8b0"
   language="VBscript"
   purpose="Escaping unhandled ANSI codes"
   save_state="y"
   date_written="2005-03-05 10:38:15"
   requires="3.65"
   version="1.0"
   >
</plugin>

<!--  Script  -->

<script>
<![CDATA[
dim reg
Set reg = New RegExp
reg.Pattern = "(\x1b[\d+;\d+H|\x1b[\d+K)"
reg.Global = True

function OnPluginPacketReceived(packet)
	OnPluginPacketReceived = reg.Replace(packet, "")
end function

]]>
</script>

</muclient>


[Go to top] top

Posted by Hautbois   USA  (16 posts)  [Biography] bio
Date Reply #13 on Sat 05 Mar 2005 03:58 AM (UTC)
Message
Wow...I think I understood that (I am not the most literate person when it comes to such things). Well I really appreciate your help, I installed the plugin but it isn't working. When I install the plugin I recieve a scripting error:

Quote:
Error Number: -2146823269

Event: Execution of line 7 colum 2

Description: Expected ']' in regular expression

Called by:
Function/Sub: OnPluginPacketReceived called by Plugin ANSI_Escape
Reason: Executing plugin ANSI_Escape sub OnPluginPacketReceived


Upon selecting close I receive:

Quote:
Unable to invoke script subroutine "OnPluginPacketReceived" when Executing pluging ANSI_Escape sub OnPluginPacketReceived


[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Reply #14 on Sat 05 Mar 2005 05:50 AM (UTC)
Message
He forgot to escape the ['s add a \ (backslash) infront of each of them and that'll solve that problem.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


42,172 views.

This is page 1, subject is 2 pages long: 1 2  [Next page]

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]