Random Ansi Variables

Posted by Dace K on Thu 28 Jul 2005 05:42 AM — 4 posts, 18,459 views.

Canada #0
I'm running a modified version of Samson's color code, and for some reason at random times, random ansi codes such as <-5[1;32m will be substituted for the

&w<

that begins players' prompts.

Any idea why?
#1

Those characters seem to be similar to the ansi codes, but may be slightly off. If they aren't escaped, then they will be displayed to the player instead of changing the clients color code. A color code would be [esc char][1;32m.. the <-5 that it starts with, I do not know if its just something displayed before the &w or whether its actually part of the color code its transmitting... in which case, there is something wrong with your modified color code functions.

Alternatively, if a player's client doesn't support ansi color and doesn't ignore escaped commands it doesn't recognize, the client would display the ansi codes, instead of the text in color. it looks... messy.

DV
Canada #2
..hm. It seems to occur after an act to char that ends in a non-default color.

If it was something that happened all the time, missing an escape would make sense, but it only happens once maybe every half an hour, and seems to be accompanied by a short lag spike.

It's not a major problem, but it's rather odd.
Amended on Thu 28 Jul 2005 10:29 PM by Dace K
Canada #3
Does anyone else out there have any thoughts on why random variables are being displayed? The problem still isn't resolved =(