Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Random Ansi Variables

Random Ansi Variables

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


Posted by Dace K   Canada  (169 posts)  Bio
Date Thu 28 Jul 2005 05:42 AM (UTC)
Message
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?

ASJ Games - .Dimension 2, Resident Evil, and snippets - oh my!
http://asj.mudmagic.com

Drop by the area archives and find something for your mud. http://areaarchives.servegame.com
Top

Posted by Darrik Vequir   (24 posts)  Bio
Date Reply #1 on Thu 28 Jul 2005 12:49 PM (UTC)
Message

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
Top

Posted by Dace K   Canada  (169 posts)  Bio
Date Reply #2 on Thu 28 Jul 2005 08:51 PM (UTC)

Amended on Thu 28 Jul 2005 10:29 PM (UTC) by Dace K

Message
..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.

ASJ Games - .Dimension 2, Resident Evil, and snippets - oh my!
http://asj.mudmagic.com

Drop by the area archives and find something for your mud. http://areaarchives.servegame.com
Top

Posted by Dace K   Canada  (169 posts)  Bio
Date Reply #3 on Mon 01 Aug 2005 10:49 PM (UTC)
Message
Does anyone else out there have any thoughts on why random variables are being displayed? The problem still isn't resolved =(

ASJ Games - .Dimension 2, Resident Evil, and snippets - oh my!
http://asj.mudmagic.com

Drop by the area archives and find something for your mud. http://areaarchives.servegame.com
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.


13,674 views.

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

Go to topic:           Search the forum


[Go to top] top

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