Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, DotBot

Members: 0
Guests: 7
Stats
Files
Topics
Posts
Members
Newest Member
477
3,706
19,240
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SWR FUSS » set_char_color and the like n...
Forum Rules | Mark all | Recent Posts

set_char_color and the like not munching blink properly?
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 May 6, 2006, 11:16 am
Go to the top of the page
Go to the bottom of the page

Halcyon
Magician
GroupMembers
Posts187
JoinedApr 12, 2005

I was playing around with some code for a MUD I've been working on, and I installed the latest version of the Color code replacement, like the one used in FUSS. But then I started playing around with it for a little while and noticed that my blinking white "You have now obtained Combat level 5!" is neither white, nor blinking anymore. If you "say }WHrm", though, it still works. Any idea what happened here? It's really kind of a nuisance, and I'm not sure what to do about it.
       
Post is unread #2 May 6, 2006, 11:40 am
Go to the top of the page
Go to the bottom of the page

Halcyon
Magician
GroupMembers
Posts187
JoinedApr 12, 2005

Incidentally, I forgot to mention: It's not just in this code I installed it in, I came to realize that I have the same problem in my own, very recent copy of SWR FUSS.
       
Post is unread #3 May 9, 2006, 9:24 am   Last edited May 9, 2006, 9:27 am by Noplex
Go to the top of the page
Go to the bottom of the page

Noplex
Apprentice
GroupMembers
Posts62
JoinedAug 30, 2005

I ran into a problem with the grey colors not matching but I ended up concluding that it was because I was using pager_printf and not ch_printf. This might be a similar problem, or something entirely else. I'm not sure if what I hit was a bug (that is, set_char_color not effecting pager_printf) or if it simply was designed that way. Regardless, my problem was fixed but using one instead of the other. They may or may not be related to what is happening with your problem. I did not bother to dive into why it was exactly happening and thought it may simply be a design choice.
       
Post is unread #4 May 9, 2006, 12:02 pm   Last edited May 9, 2006, 12:02 pm by Halcyon
Go to the top of the page
Go to the bottom of the page

Halcyon
Magician
GroupMembers
Posts187
JoinedApr 12, 2005

Well, basically what happens is when act() or set_char_color(). etc, try to use something like "AT_WHITE + AT_BLINK" to initialize color, it seems to just munch them both and spit out no color. The problem with using the "}W" tag is that I'm not *quite* sure how to get it to stop bleeding past the end of the intended line. ANSI_RESET, I suppose? I don't know. I DO think, though, that I can't imagine it being by design.
       
Post is unread #5 May 9, 2006, 8:00 pm   Last edited May 9, 2006, 8:11 pm by Remcon
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,866
JoinedJul 26, 2005

Looks like its probably an issue in the overall design
color.h has this
#define AT_WHITE_BLINK	   AT_WHITE + AT_BLINK
#define AT_RED_BLINK	   AT_RED + AT_BLINK

and Im fairly sure those wont work either or well they will but not as designed
AT_WHITE is 15 and AT_BLINK is 16 for a total of 31
31 is also already used by AT_REPORT so if you used AT_WHITE_BLINK it will just probably do AT_REPORT
It's probably just an oversight, I'm sure once Samson gets a chance he will fiqure out the best way for fixing the issues etc... or he could just say not to use them like that and actually use the predefined ones or predefine some more :)
Yep AT_WHITE + AT_BLINK gives color number 31 which happens to be AT_REPORT if you type like
color report red
and then have something display AT_WHITE + AT_BLINK it will indead be the color of AT_REPORT
       
Post is unread #6 May 9, 2006, 8:13 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,866
JoinedJul 26, 2005

BTW the quickest possible sollution would be probably be to start with AT_PLAIN and move it to 32 and update where you need to. 17-31 are suppose to be the blinking colors :)
       
Post is unread #7 May 9, 2006, 9:33 pm   Last edited May 10, 2006, 2:48 pm by Remcon
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,866
JoinedJul 26, 2005

Ok, went ahead and did this and since I use telnet etc... someone out there can make sure it works correctly that actually sees blinking.
In color.h change what you have for these to match.
#define AT_BLACK         0
#define AT_BLOOD         1
#define AT_DGREEN        2
#define AT_ORANGE        3
#define AT_DBLUE         4
#define AT_PURPLE        5
#define AT_CYAN          6
#define AT_GREY          7
#define AT_DGREY         8
#define AT_RED           9
#define AT_GREEN        10
#define AT_YELLOW       11
#define AT_BLUE         12
#define AT_PINK         13
#define AT_LBLUE        14
#define AT_WHITE        15
#define AT_BLINK        16

/* These should be 17 - 31 normaly */
#define AT_BLACK_BLINK  AT_BLACK + AT_BLINK
#define AT_BLOOD_BLINK  AT_BLOOD + AT_BLINK
#define AT_DGREEN_BLINK AT_DGREEN + AT_BLINK
#define AT_ORANGE_BLINK AT_ORANGE + AT_BLINK
#define AT_DBLUE_BLINK  AT_DBLUE + AT_BLINK
#define AT_PURPLE_BLINK AT_PURPLE + AT_BLINK
#define AT_CYAN_BLINK   AT_CYAN + AT_BLINK
#define AT_GREY_BLINK   AT_GREY + AT_BLINK
#define AT_DGREY_BLINK  AT_DGREY + AT_BLINK
#define AT_RED_BLINK    AT_RED + AT_BLINK
#define AT_GREEN_BLINK  AT_GREEN + AT_BLINK
#define AT_YELLOW_BLINK AT_YELLOW + AT_BLINK
#define AT_BLUE_BLINK   AT_BLUE + AT_BLINK
#define AT_PINK_BLINK   AT_PINK + AT_BLINK
#define AT_LBLUE_BLINK  AT_LBLUE + AT_BLINK
#define AT_WHITE_BLINK  AT_WHITE + AT_BLINK

#define AT_PLAIN        32
#define AT_ACTION       33
#define AT_SAY		34
#define AT_GOSSIP       35
#define AT_YELL		36
#define AT_TELL		37
#define AT_HIT		38
#define AT_HITME        39
#define AT_IMMORT       40
#define AT_HURT         41
#define AT_FALLING      42
#define AT_DANGER       43
#define AT_MAGIC        44
#define AT_CONSIDER     45
#define AT_REPORT       46
#define AT_POISON       47
#define AT_SOCIAL       48
#define AT_DYING        49
#define AT_DEAD         50
#define AT_SKILL        51
#define AT_CARNAGE      52
#define AT_DAMAGE       53
#define AT_FLEE         54
#define AT_RMNAME       55
#define AT_RMDESC       56
#define AT_OBJECT       57
#define AT_PERSON       58
#define AT_LIST         59
#define AT_BYE          60
#define AT_GOLD         61
#define AT_GTELL        62
#define AT_NOTE         63
#define AT_HUNGRY       64
#define AT_THIRSTY      65
#define AT_FIRE         66
#define AT_SOBER        67
#define AT_WEAROFF      68
#define AT_EXITS        69
#define AT_SCORE        70
#define AT_RESET        71
#define AT_LOG          72
#define AT_DIEMSG       73
#define AT_WARTALK      74
#define AT_ARENA        75
#define AT_MUSE         76
#define AT_THINK        77
#define AT_AFLAGS      	78 /* Added by Samson 9-29-98 for area flag display line */
#define AT_WHO	    	79 /* Added by Samson 9-29-98 for wholist */
#define AT_RACETALK   	80 /* Added by Samson 9-29-98 for version 1.4 code */
#define AT_IGNORE     	81 /* Added by Samson 9-29-98 for version 1.4 code */
#define AT_WHISPER    	82 /* Added by Samson 9-29-98 for version 1.4 code */
#define AT_DIVIDER    	83 /* Added by Samson 9-29-98 for version 1.4 code */
#define AT_MORPH      	84 /* Added by Samson 9-29-98 for version 1.4 code */
#define AT_SHOUT        85 /* Added by Samson 9-29-98 for shout channel */
#define AT_RFLAGS       86 /* Added by Samson 12-20-98 for room flag display line */
#define AT_STYPE        87 /* Added by Samson 12-20-98 for sector display line */
#define AT_ANAME        88 /* Added by Samson 12-20-98 for filename display line */
#define AT_AUCTION      89 /* Added by Samson 12-25-98 for auction channel */
#define AT_SCORE2       90 /* Added by Samson 2-3-99 for DOTD code */
#define AT_SCORE3       91 /* Added by Samson 2-3-99 for DOTD code */
#define AT_SCORE4       92 /* Added by Samson 2-3-99 for DOTD code */
#define AT_WHO2         93 /* Added by Samson 2-3-99 for DOTD code */
#define AT_WHO3         94 /* Added by Samson 2-3-99 for DOTD code */
#define AT_WHO4         95 /* Added by Samson 2-3-99 for DOTD code */
#define AT_INTERMUD     96 /* Added by Samson 1-15-01 for Intermud3 Channels */
#define AT_HELP         97 /* Added by Samson 1-15-01 for helpfiles */
#define AT_WHO5         98 /* Added by Samson 2-7-01 for guild names on who */
#define AT_SCORE5       99 /* Added by Samson 1-14-02 */
#define AT_WHO6        100 /* Added by Samson 1-14-02 */
#define AT_WHO7        101 /* Added by Samson 1-14-02 */
#define AT_PRAC        102 /* Added by Samson 1-21-02 */
#define AT_PRAC2       103 /* Added by Samson 1-21-02 */
#define AT_PRAC3       104 /* Added by Samson 1-21-02 */
#define AT_PRAC4       105 /* Added by Samson 1-21-02 */
#define AT_MXPPROMPT   106 /* Added by Samson 2-27-02 */
#define AT_GUILDTALK   107 /* Added by Tarl 28 Nov 02 */
#define AT_BOARD       108 /* Samson 10-14-03 */
#define AT_BOARD2      109 /* Samson 10-14-03 */
#define AT_BOARD3      110 /* Samson 10-14-03 */

/* Should ALWAYS be one more than the last numerical value in the list */
#define MAX_COLORS    111


Then in color.c find and change these to match
char *const pc_displays[MAX_COLORS] =
{
   "black",    "dred",      "dgreen",    "orange",
   "dblue",    "purple",    "cyan",      "grey",
   "dgrey",    "red",       "green",     "yellow",
   "blue",     "pink",      "lblue",     "white",
   "blink",    "bdred",     "bdgreen",   "bdorange",
   "bdblue",   "bpurple",   "bcyan",     "bgrey",
   "bdgrey",   "bred",      "bgreen",    "byellow",
   "bblue",    "bpink",     "blblue",    "bwhite",
   "plain",    "action",    "say",       "chat",
   "yells",    "tell",      "hit",       "hitme",
   "immortal", "hurt",      "falling",   "danger",
   "magic",    "consider",  "report",    "poison",
   "social",   "dying",     "dead",      "skill",
   "carnage",  "damage",    "fleeing",   "rmname",
   "rmdesc",   "objects",   "people",    "list",
   "bye",      "gold",      "gtells",    "note",
   "hungry",   "thirsty",   "fire",      "sober",
   "wearoff",  "exits",     "score",     "reset",
   "log",      "die_msg",   "wartalk",   "arena",
   "muse",     "think",     "aflags",    "who",
   "racetalk", "ignore",    "whisper",   "divider",
   "morph",    "shout",     "rflags",    "stype",
   "aname",    "auction",   "score2",    "score3",
   "score4",   "who2",      "who3",      "who4",
   "intermud", "helpfiles", "who5",      "score5",
   "who6",     "who7",      "prac",      "prac2",
   "prac3",    "prac4",     "mxpprompt", "guildtalk",
   "board",    "board2",    "board3"
};

/* All defaults are set to Alsherok default scheme, if you don't 
like it, change it around to suite your own needs - Samson */
const short default_set[MAX_COLORS] =
{
   AT_BLACK, AT_BLOOD, AT_DGREEN, AT_ORANGE, /*  3 */
   AT_DBLUE, AT_PURPLE, AT_CYAN, AT_GREY, /*  7 */
   AT_DGREY, AT_RED, AT_GREEN, AT_YELLOW, /* 11 */
   AT_BLUE, AT_PINK, AT_LBLUE, AT_WHITE,  /* 15 */
   AT_BLACK_BLINK, AT_BLOOD_BLINK, AT_DGREEN_BLINK, AT_ORANGE_BLINK, /* 19 */
   AT_DBLUE_BLINK, AT_PURPLE_BLINK, AT_CYAN_BLINK, AT_GREY_BLINK, /* 23 */
   AT_DGREY_BLINK, AT_RED_BLINK, AT_GREEN_BLINK, AT_YELLOW_BLINK, /* 27 */
   AT_BLUE_BLINK, AT_PINK_BLINK, AT_LBLUE_BLINK, AT_WHITE_BLINK, /* 31 */
   AT_GREY, AT_GREY, AT_BLUE,   /* 34 */
   AT_GREEN, AT_LBLUE, AT_WHITE, AT_GREY, /* 38 */
   AT_GREY, AT_YELLOW, AT_GREY, AT_GREY,  /* 42 */
   AT_GREY, AT_BLUE, AT_GREY, AT_GREY, /* 46 */
   AT_DGREEN, AT_CYAN, AT_GREY, AT_GREY,  /* 50 */
   AT_BLUE, AT_GREY, AT_GREY, AT_GREY, /* 54 */
   AT_RED, AT_GREY, AT_BLUE, AT_PINK,  /* 58 */
   AT_GREY, AT_GREY, AT_YELLOW, AT_GREY,  /* 62 */
   AT_GREY, AT_ORANGE, AT_BLUE, AT_RED,   /* 66 */
   AT_GREY, AT_GREY, AT_GREEN, AT_DGREEN, /* 70 */
   AT_DGREEN, AT_ORANGE, AT_GREY, AT_RED, /* 74 */
   AT_GREY, AT_DGREEN, AT_RED, AT_BLUE,   /* 78 */
   AT_RED, AT_CYAN, AT_YELLOW, AT_PINK,   /* 82 */
   AT_DGREEN, AT_PINK, AT_WHITE, AT_BLUE, /* 86 */
   AT_BLUE, AT_BLUE, AT_GREEN, AT_GREY,   /* 90 */
   AT_GREEN, AT_GREEN, AT_YELLOW, AT_DGREY,  /* 94 */
   AT_GREEN, AT_PINK, AT_DGREEN, AT_CYAN, /* 98 */
   AT_RED, AT_WHITE, AT_BLUE, AT_DGREEN,  /* 102 */
   AT_CYAN, AT_BLOOD, AT_RED, AT_DGREEN,  /* 106 */
   AT_GREEN, AT_GREY, AT_GREEN, AT_WHITE  /* 110 */
};

Also in color.c find the show_colors and modify what you have like this
   send_to_pager( "\r\n\r\n&W******************************[ COLOR TYPES ]******************************\r\n", ch );

   for( count = 32; count < MAX_COLORS; ++count )
   {
      if( ( count % 8 ) == 0 && count != 32 )
      {
         send_to_pager( "\r\n", ch );
      }
      pager_printf( ch, "%s%-10s%s", color_str( count, ch ), pc_displays[count], ANSI_RESET );
   }

You can even take the time to modify the part before that to show up to 32 instead of just 15 if you wish personaly I fiqured best left only showing the defaults since to make it blinking they should use color <type> <color> blink to make it blink already :)

Well so much for the hard part, next it was to make the themes handle ok since we are adding in 17-31 etc...
Pfiles I'm not helping out on since all they have to do is color theme <theme name> to reset their colors.
To save everyone the trouble of dealing with the themes here you are and these should be correct :)
*Updated to fix the problems for SmaugFUSS themes here.
AFK theme
#COLORTHEME
Name         AFK~
MaxColors    111
Colors       0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 7 7 12 10 14 15 8 8 11 8 8 40 12 8 8 2 6 8 8 12 8 8 8 9 8 12 13 8 8 11 6 8 3 12 9 8 8 10 2 2 3 8 9 8 2 9 12 9 6 11 13 2 13 15 12 12 12 10 7 10 10 11 8 10 13 2 6 9 15 12 2 6 1 9 2 10 7 10 15
End


default theme
#COLORTHEME
Name         default~
MaxColors    111
Colors       0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 7 7 14 14 14 15 15 11 11 9 46 40 12 7 7 10 6 11 9 10 1 15 11 15 11 10 13 12 10 11 12 10 3 12 9 15 11 15 14 2 5 15 9 7 2 9 12 10 2 10 15 7 7 15 12 12 12 10 14 14 14 10 10 10 13 2 10 14 10 10 2 6 1 9 2 10 7 10 15
End


smaug theme
#COLORTHEME
Name         smaug~
MaxColors    111
Colors       0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 7 7 14 14 14 15 15 11 11 9 46 40 12 7 7 10 6 11 9 10 1 15 11 15 11 10 13 12 10 11 12 10 3 12 9 15 11 15 14 2 5 15 9 7 2 9 12 10 2 10 15 7 7 15 12 12 12 10 14 14 14 10 10 10 13 2 10 14 10 10 2 6 1 9 2 10 7 10 15
End

Sorry can't handle any non stock ones for you.
You should be able to change MaxColors in the files with 111 and then change out what you have for the Colors to those and it work correctly.
Personaly to handle the themes what I did was modify the color theme <theme name> to on loadup for it to do fread_number for the first 16 then put 17-31 as the number itself and then on loading up the others to do a check and if they were over 16 to add 15 more to it so it would keep the correct color and then i used color savetheme <theme name> to save the theme again. If you really wish to do that feel free lol.

Let me know how it all goes and if you find any issues etc...
       
Post is unread #8 May 9, 2006, 9:39 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,866
JoinedJul 26, 2005

Oh and before someone ask about this
/* These should be 17 - 31 normaly */
#define AT_BLACK_BLINK  AT_BLACK + AT_BLINK
#define AT_BLOOD_BLINK  AT_BLOOD + AT_BLINK
#define AT_DGREEN_BLINK AT_DGREEN + AT_BLINK
#define AT_ORANGE_BLINK AT_ORANGE + AT_BLINK
#define AT_DBLUE_BLINK  AT_DBLUE + AT_BLINK
#define AT_PURPLE_BLINK AT_PURPLE + AT_BLINK
#define AT_CYAN_BLINK   AT_CYAN + AT_BLINK
#define AT_GREY_BLINK   AT_GREY + AT_BLINK
#define AT_DGREY_BLINK  AT_DGREY + AT_BLINK
#define AT_RED_BLINK    AT_RED + AT_BLINK
#define AT_GREEN_BLINK  AT_GREEN + AT_BLINK
#define AT_YELLOW_BLINK AT_YELLOW + AT_BLINK
#define AT_BLUE_BLINK   AT_BLUE + AT_BLINK
#define AT_PINK_BLINK   AT_PINK + AT_BLINK
#define AT_LBLUE_BLINK  AT_LBLUE + AT_BLINK
#define AT_WHITE_BLINK  AT_WHITE + AT_BLINK

It says 17-31 for those and its correct the AT_BLACK_BLINK is still 16 since AT_BLACK is 0 :) Just added it since I did one for all the others like that lol.
Just thought I'd let you all know before you got confused on that one heh.
       
Post is unread #9 May 10, 2006, 1:19 am
Go to the top of the page
Go to the bottom of the page

Halcyon
Magician
GroupMembers
Posts187
JoinedApr 12, 2005

Perfect. Worked perfectly. Blinking colors now behave as they should.

Should make a couple notes, though. One... There's an extra color in your modified themes. I noticed this because the default table for Smaug has the last color as being white, but yours was green. I'm not too sure what happened here, but simply removing the extra color (which came right after the blinking ones) did the trick. Here's the correct themes for SmaugFUSS:

AFK theme:
#COLORTHEME
Name         AFK~
MaxColors    111
Colors       0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 7 7 12 10 14 15 8 8 11 8 8 40 12 8 8 2 6 8 8 12 8 8 8 9 8 12 13 8 8 11 6 8 3 12 9 8 8 10 2 2 3 8 9 8 2 9 12 9 6 11 13 2 13 15 12 12 12 10 7 10 10 11 8 10 13 2 6 9 15 12 2 6 1 9 2 10 7 10 15
End


Default theme:
#COLORTHEME
Name         default~
MaxColors    111
Colors       0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 7 7 14 14 14 15 15 11 11 9 46 40 12 7 7 10 6 11 9 10 1 15 11 15 11 10 13 12 10 11 12 10 3 12 9 15 11 15 14 2 5 15 9 7 2 9 12 10 2 10 15 7 7 15 12 12 12 10 14 14 14 10 10 10 13 2 10 14 10 10 2 6 1 9 2 10 7 10 15
End


Smaug theme:
#COLORTHEME
Name         smaug~
MaxColors    111
Colors       0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 7 7 14 14 14 15 15 11 11 9 46 40 12 7 7 10 6 11 9 10 1 15 11 15 11 10 13 12 10 11 12 10 3 12 9 15 11 15 14 2 5 15 9 7 2 9 12 10 2 10 15 7 7 15 12 12 12 10 14 14 14 10 10 10 13 2 10 14 10 10 2 6 1 9 2 10 7 10 15
End


The extra color number was 40, in case you're wondering. Not sure where it came from.

Anyway, this all does require some small tweaking for SWR FUSS users. As follows.

In color.h, you need the following:
#define AT_BLACK         0
#define AT_BLOOD         1
#define AT_DGREEN        2
#define AT_ORANGE        3
#define AT_DBLUE         4
#define AT_PURPLE        5
#define AT_CYAN          6
#define AT_GREY          7
#define AT_DGREY         8
#define AT_RED           9
#define AT_GREEN        10
#define AT_YELLOW       11
#define AT_BLUE         12
#define AT_PINK         13
#define AT_LBLUE        14
#define AT_WHITE        15
#define AT_BLINK        16

/* These should be 17 - 31 normally */
#define AT_BLACK_BLINK  AT_BLACK + AT_BLINK
#define AT_BLOOD_BLINK  AT_BLOOD + AT_BLINK
#define AT_DGREEN_BLINK AT_DGREEN + AT_BLINK
#define AT_ORANGE_BLINK AT_ORANGE + AT_BLINK
#define AT_DBLUE_BLINK  AT_DBLUE + AT_BLINK
#define AT_PURPLE_BLINK AT_PURPLE + AT_BLINK
#define AT_CYAN_BLINK   AT_CYAN + AT_BLINK
#define AT_GREY_BLINK   AT_GREY + AT_BLINK
#define AT_DGREY_BLINK  AT_DGREY + AT_BLINK
#define AT_RED_BLINK    AT_RED + AT_BLINK
#define AT_GREEN_BLINK  AT_GREEN + AT_BLINK
#define AT_YELLOW_BLINK AT_YELLOW + AT_BLINK
#define AT_BLUE_BLINK   AT_BLUE + AT_BLINK
#define AT_PINK_BLINK   AT_PINK + AT_BLINK
#define AT_LBLUE_BLINK  AT_LBLUE + AT_BLINK
#define AT_WHITE_BLINK  AT_WHITE + AT_BLINK

#define AT_PLAIN        32
#define AT_ACTION       33
#define AT_SAY        34
#define AT_GOSSIP       35
#define AT_YELL        36
#define AT_TELL        37
#define AT_HIT        38
#define AT_HITME        39
#define AT_IMMORT       40
#define AT_HURT         41
#define AT_FALLING      42
#define AT_DANGER       43
#define AT_MAGIC        44
#define AT_CONSIDER     45
#define AT_REPORT       46
#define AT_POISON       47
#define AT_SOCIAL       48
#define AT_DYING        49
#define AT_DEAD         50
#define AT_SKILL        51
#define AT_CARNAGE      52
#define AT_DAMAGE       53
#define AT_FLEE         54
#define AT_RMNAME       55
#define AT_RMDESC       56
#define AT_OBJECT       57
#define AT_PERSON       58
#define AT_LIST         59
#define AT_BYE          60
#define AT_GOLD         61
#define AT_GTELL        62
#define AT_NOTE         63
#define AT_HUNGRY       64
#define AT_THIRSTY      65
#define AT_FIRE         66
#define AT_SOBER        67
#define AT_WEAROFF      68
#define AT_EXITS        69
#define AT_SCORE        70
#define AT_RESET        71
#define AT_LOG          72
#define AT_DIEMSG       73
#define AT_WARTALK      74
#define AT_ARENA        75
#define AT_MUSE         76
#define AT_THINK        77
#define AT_AFLAGS          78 /* Added by Samson 9-29-98 for area flag display line */
#define AT_WHO            79 /* Added by Samson 9-29-98 for wholist */
#define AT_RACETALK       80 /* Added by Samson 9-29-98 for version 1.4 code */
#define AT_IGNORE         81 /* Added by Samson 9-29-98 for version 1.4 code */
#define AT_WHISPER        82 /* Added by Samson 9-29-98 for version 1.4 code */
#define AT_DIVIDER        83 /* Added by Samson 9-29-98 for version 1.4 code */
#define AT_MORPH          84 /* Added by Samson 9-29-98 for version 1.4 code */
#define AT_SHOUT        85 /* Added by Samson 9-29-98 for shout channel */
#define AT_RFLAGS       86 /* Added by Samson 12-20-98 for room flag display line */
#define AT_STYPE        87 /* Added by Samson 12-20-98 for sector display line */
#define AT_ANAME        88 /* Added by Samson 12-20-98 for filename display line */
#define AT_AUCTION      89 /* Added by Samson 12-25-98 for auction channel */
#define AT_SCORE2       90 /* Added by Samson 2-3-99 for DOTD code */
#define AT_SCORE3       91 /* Added by Samson 2-3-99 for DOTD code */
#define AT_SCORE4       92 /* Added by Samson 2-3-99 for DOTD code */
#define AT_WHO2         93 /* Added by Samson 2-3-99 for DOTD code */
#define AT_WHO3         94 /* Added by Samson 2-3-99 for DOTD code */
#define AT_WHO4         95 /* Added by Samson 2-3-99 for DOTD code */
#define AT_INTERMUD     96 /* Added by Samson 1-15-01 for Intermud3 Channels */
#define AT_HELP         97 /* Added by Samson 1-15-01 for helpfiles */
#define AT_WHO5         98 /* Added by Samson 2-7-01 for guild names on who */
#define AT_SCORE5       99 /* Added by Samson 1-14-02 */
#define AT_WHO6        100 /* Added by Samson 1-14-02 */
#define AT_WHO7        101 /* Added by Samson 1-14-02 */
#define AT_PRAC        102 /* Added by Samson 1-21-02 */
#define AT_PRAC2       103 /* Added by Samson 1-21-02 */
#define AT_PRAC3       104 /* Added by Samson 1-21-02 */
#define AT_PRAC4       105 /* Added by Samson 1-21-02 */
#define AT_MXPPROMPT   106 /* Added by Samson 2-27-02 */
#define AT_GUILDTALK   107 /* Added by Tarl 28 Nov 02 */
#define AT_OOC         108
#define AT_AVATAR      109
#define AT_SHIP        110
#define AT_CLAN        111

/* Should ALWAYS be one more than the last numerical value in the list */
#define MAX_COLORS    112


Then in color.c, you need to use this:
char *const pc_displays[MAX_COLORS] =
{
   "black",    "dred",      "dgreen",    "orange",
   "dblue",    "purple",    "cyan",      "grey",
   "dgrey",    "red",       "green",     "yellow",
   "blue",     "pink",      "lblue",     "white",
   "blink",    "bdred",     "bdgreen",   "bdorange",
   "bdblue",   "bpurple",   "bcyan",     "bgrey",
   "bdgrey",   "bred",      "bgreen",    "byellow",
   "bblue",    "bpink",     "blblue",    "bwhite",
   "plain",    "action",    "say",       "chat",
   "yells",    "tell",      "hit",       "hitme",
   "immortal", "hurt",      "falling",   "danger",
   "magic",    "consider",  "report",    "poison",
   "social",   "dying",     "dead",      "skill",
   "carnage",  "damage",    "fleeing",   "rmname",
   "rmdesc",   "objects",   "people",    "list",
   "bye",      "gold",      "gtells",    "note",
   "hungry",   "thirsty",   "fire",      "sober",
   "wearoff",  "exits",     "score",     "reset",
   "log",      "die_msg",   "wartalk",   "arena",
   "muse",     "think",     "aflags",    "who",
   "racetalk", "ignore",    "whisper",   "divider",
   "morph",    "shout",     "rflags",    "stype",
   "aname",    "auction",   "score2",    "score3",
   "score4",   "who2",      "who3",      "who4",
   "intermud", "helpfiles", "who5",      "score5",
   "who6",     "who7",      "prac",      "prac2",
   "prac3",    "prac4",     "mxpprompt", "guildtalk",
   "ooc",      "avatar",    "ship",      "clan"
};

/* All defaults are set to Alsherok default scheme, if you don't 
like it, change it around to suite your own needs - Samson */
const short default_set[MAX_COLORS] =
{
   AT_BLACK, AT_BLOOD, AT_DGREEN, AT_ORANGE, /*  3 */
   AT_DBLUE, AT_PURPLE, AT_CYAN, AT_GREY, /*  7 */
   AT_DGREY, AT_RED, AT_GREEN, AT_YELLOW, /* 11 */
   AT_BLUE, AT_PINK, AT_LBLUE, AT_WHITE,  /* 15 */
   AT_BLACK_BLINK, AT_BLOOD_BLINK, AT_DGREEN_BLINK, AT_ORANGE_BLINK, /* 19 */
   AT_DBLUE_BLINK, AT_PURPLE_BLINK, AT_CYAN_BLINK, AT_GREY_BLINK, /* 23 */
   AT_DGREY_BLINK, AT_RED_BLINK, AT_GREEN_BLINK, AT_YELLOW_BLINK, /* 27 */
   AT_BLUE_BLINK, AT_PINK_BLINK, AT_LBLUE_BLINK, AT_WHITE_BLINK, /* 31 */
   AT_GREY, AT_GREY, AT_BLUE,   /* 34 */
   AT_GREEN, AT_LBLUE, AT_WHITE, AT_GREY, /* 38 */
   AT_GREY, AT_YELLOW, AT_GREY, AT_GREY,  /* 42 */
   AT_GREY, AT_BLUE, AT_GREY, AT_GREY, /* 46 */
   AT_DGREEN, AT_CYAN, AT_GREY, AT_GREY,  /* 50 */
   AT_BLUE, AT_GREY, AT_GREY, AT_GREY, /* 54 */
   AT_RED, AT_GREY, AT_BLUE, AT_PINK,  /* 58 */
   AT_GREY, AT_GREY, AT_YELLOW, AT_GREY,  /* 62 */
   AT_GREY, AT_ORANGE, AT_BLUE, AT_RED,   /* 66 */
   AT_GREY, AT_GREY, AT_GREEN, AT_DGREEN, /* 70 */
   AT_DGREEN, AT_ORANGE, AT_GREY, AT_RED, /* 74 */
   AT_GREY, AT_DGREEN, AT_RED, AT_BLUE,   /* 78 */
   AT_RED, AT_CYAN, AT_YELLOW, AT_PINK,   /* 82 */
   AT_DGREEN, AT_PINK, AT_WHITE, AT_BLUE, /* 86 */
   AT_BLUE, AT_BLUE, AT_GREEN, AT_GREY,   /* 90 */
   AT_GREEN, AT_GREEN, AT_YELLOW, AT_DGREY,  /* 94 */
   AT_GREEN, AT_PINK, AT_DGREEN, AT_CYAN, /* 98 */
   AT_RED, AT_WHITE, AT_BLUE, AT_DGREEN,  /* 102 */
   AT_CYAN, AT_BLOOD, AT_RED, AT_DGREEN,  /* 106 */
   AT_GREEN, AT_GREEN, AT_GREEN, AT_GREEN,   /* 110 */
   AT_GREEN
};


For your themes:

AFK theme:
#COLORTHEME
Name         AFK~
MaxColors    111
Colors       0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 7 7 12 10 14 15 8 8 11 8 8 40 12 8 8 2 6 8 8 12 8 8 8 9 8 12 13 8 8 11 6 8 3 12 9 8 8 10 2 2 3 8 9 8 2 9 12 9 6 11 13 2 13 15 12 12 12 10 7 10 10 11 8 10 13 2 6 9 15 12 2 6 1 9 2 10 10 10 10
End


Smaug theme:
#COLORTHEME
Name         smaug~
MaxColors    111
Colors       0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 7 7 14 14 14 15 15 11 11 9 46 40 12 7 7 10 6 11 9 10 1 15 11 15 11 10 13 12 10 11 12 10 3 12 9 15 11 15 14 2 5 15 9 7 2 9 12 10 2 10 15 7 7 15 12 12 12 10 14 14 14 10 10 10 13 2 10 14 10 10 2 6 1 9 2 10 10 10 10
End


And that should do it. By the way, make sure you add your returns to the end of your color theme files, or you're going to get irritating EOF on read errors every time somebody switches themes.

Like I said, not quite sure where the extra 40 came from, but after you toss it and add your 15 (white) at the end of the SmaugFUSS themes, all the colors fall in place properly. Good work Remcon. :smile: I appreciate it. Not sure how many compliments you'll get from others, though... Apparently, nobody uses blinking colors in their code, or perhaps they use "}" to do it, because this color code has been out for a pretty long time and we're only just now noticing this. XD
       
Post is unread #10 May 10, 2006, 1:34 am
Go to the top of the page
Go to the bottom of the page

Halcyon
Magician
GroupMembers
Posts187
JoinedApr 12, 2005

By the way, I know this is a really weird question to ask at this point, but... The standard Telnet client doesn't support blinking colors. MUSHClient doesn't support blinking colors. I might be wrong, but I don't think Gmud does, either. So... What the hell does?
       
Post is unread #11 May 10, 2006, 5:41 am
Go to the top of the page
Go to the bottom of the page

Noplex
Apprentice
GroupMembers
Posts62
JoinedAug 30, 2005

Zmud does. Then again though, how often are you going to use blinking colors? They're too annoying to have real use beyond the "Ouch that really hurt!" and other really important messages that need to get people's attention.
       
Post is unread #12 May 10, 2006, 6:46 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Wow. I really need to pay more attention to what's going on with this stuff. The blinking thing would probably have remained unnoticed if nobody had tried to play with it the way you are. I'll have to go over it in more detail when I have more time but it looks like this should be a solid fix for the problem.

As for clients that support blink: Zmud, SimpleMU, and Kmuddy are the only ones I know of for sure that do. As far as I'm concerned, any client that doesn't has incomplete ANSI support. Of course regular telnet clients like SCRT, putty, and even the linux command line telnet all support it, but who muds using telnet anymore? :P
       
Post is unread #13 May 10, 2006, 9:26 am   Last edited May 10, 2006, 9:27 am by Halcyon
Go to the top of the page
Go to the bottom of the page

Halcyon
Magician
GroupMembers
Posts187
JoinedApr 12, 2005

Meh. I really wish Nick would hop on the bandwagon for some of this stuff. (Blinking colors, sounds, etc.) After Pueblo took a dive, MUSHClient was the client I took a liking to, but it's missing so many features. Yeah, I know, there's a plugin that you can use for sounds, but... It's choppy and unflexible, at best. Meh. I guess if I get tired enough of it I'll just bite and switch to something else.

Lol, and yeah, I posted this days ago, I was beginning to wonder if I was just getting ignored because everybody knew something I didn't and labeled me a hopeless pinhead, or what. XD
       
Post is unread #14 May 10, 2006, 9:50 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Nah, you're not getting ignored. It's just a matter of not having as much time as I used to and also that I've been obsessing with Oblivion alot lately. I imagine others have had similar time issues to deal with too. It's about that time of year where people have finals, end of school stuff, family things, etc. to deal with. But that's why this is all done via forum and not a closed email list. This way anyone who does have time can drop in and offer advice. :)
       
Post is unread #15 May 10, 2006, 1:59 pm   Last edited May 10, 2006, 2:53 pm by Remcon
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,866
JoinedJul 26, 2005

in the stock smaug for color it had
#COLORTHEME
Name         smaug~
MaxColors    96
Colors       0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 25 7 7 14 14 14 15 15 11 11 9 31 25 12 7 7 10 6 11 9 10 1 15 11 15 11 10 13 12 10 11 12 10 3 12 9 15 11 15 14 2 5 15 9 7 2 9 12 10 2 10 15 7 7 15 12 12 12 10 14 14 14 10 10 10 13 2 10 14 10 10 2 6 1 9 2 10 7 10 15
End

the place that went to 40 was 25 as you can tell lol thats probably where the extra one come in at. It should have been 16 I would think and not sure why it was 25 anyway heh.
I checked though and your correct the 40 which use to be 25 where it should have had 16 should be removed and a 15 added on the end of each :) Glad you noticed that and all thanks :)

*Updated the orginal post for the SmaugFUSS ones so that no one gets the wrong ones in lol.
Glad someone uses it heh personaly I don't since I'm one who just uses telnet currently and see no blinking text anyways lol.
       
Post is unread #16 May 10, 2006, 8:36 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

The Smaug fix for this was posted. Would someone mind verifying that it has the right information and that it does work before I go on to tweak the fixes for the SWR bases?
       
Post is unread #17 May 10, 2006, 9:58 pm   Last edited May 10, 2006, 10:03 pm by Halcyon
Go to the top of the page
Go to the bottom of the page

Halcyon
Magician
GroupMembers
Posts187
JoinedApr 12, 2005

Umm... One, I tested the Smaug ones already, and two, I posted the fixes for SWR FUSS. Or am I misunderstanding your request? >_>?

Edit: Sorry, if you mean to say you want somebody to install the fixes as you have them listed, then I went ahead and did that, the values are all correct. Btw, it's just my opinion, but I would suggest adding the bit I mentioned about adding returns to the ends of the theme files, because users who simply copy and paste without adding one are going to get those irritating EOF on read errors, and players are going to be confused when "color theme smaug" tells them the theme didn't load properly (When in fact it loaded just fine. :P ).
       
Post is unread #18 May 12, 2006, 1:49 pm
Go to the top of the page
Go to the bottom of the page

Halcyon
Magician
GroupMembers
Posts187
JoinedApr 12, 2005

Okay, well... I feel like an ass now, but I did in fact make a slight error. When I was toying around with the themes, I forgot to increase Maxcolors, as well as add the extra green on the end. These (PROMISE!) are the REAL themes for SWR:

AFK:
#COLORTHEME
Name         AFK~
MaxColors    112
Colors       0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 7 7 12 10 14 15 8 8 11 8 8 40 12 8 8 2 6 8 8 12 8 8 8 9 8 12 13 8 8 11 6 8 3 12 9 8 8 10 2 2 3 8 9 8 2 9 12 9 6 11 13 2 13 15 12 12 12 10 7 10 10 11 8 10 13 2 6 9 15 12 2 6 1 9 2 10 10 10 10 10
End


Smaug:
#COLORTHEME
Name         smaug~
MaxColors    112
Colors       0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 7 7 14 14 14 15 15 11 11 9 46 40 12 7 7 10 6 11 9 10 1 15 11 15 11 10 13 12 10 11 12 10 3 12 9 15 11 15 14 2 5 15 9 7 2 9 12 10 2 10 15 7 7 15 12 12 12 10 14 14 14 10 10 10 13 2 10 14 10 10 2 6 1 9 2 10 10 10 10 10
End


Apologies, I goofed that one pretty confidently. :p
       
Pages:<< prev 1 next >>