Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Yandex, DotBot

Members: 0
Guests: 7
Stats
Files
Topics
Posts
Members
Newest Member
481
3,735
19,368
618
Micheal64X
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SmaugFUSS » Slight issue in newest color.c
Forum Rules | Mark all | Recent Posts

Slight issue in newest color.c
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Sep 14, 2005, 10:15 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,873
JoinedJul 26, 2005

Well, color codes got changed a bit so lets change the background back to ^ instead of {
color.c
find
      case '{':  /* BACKGROUND colour */
         switch ( src[1] )
         {
            case '{':  /* Escaped self, return one of us */
               dst[0] = src[0];
               dst[1] = '\0';
               if( vislen )
                  *vislen = 1;
               return 2;

change that to
      case '^':  /* BACKGROUND colour */
         switch ( src[1] )
         {
            case '^':  /* Escaped self, return one of us */
               dst[0] = src[0];
               dst[1] = '\0';
               if( vislen )
                  *vislen = 1;
               return 2;

change
         case '&':  /* NORMAL, Foreground colour */
         case '{':  /* BACKGROUND colour */
         case '}':  /* BLINK Foreground colour */

to this
         case '&':  /* NORMAL, Foreground colour */
         case '^':  /* BACKGROUND colour */
         case '}':  /* BLINK Foreground colour */

change
   if( txt && *txt && d )
   {
      char *colstr;
      const char *prevstr = txt;
      char colbuf[20];
      int ln;

      while( ( colstr = strpbrk( prevstr, "&{}" ) ) != NULL )

to this
   if( txt && *txt && d )
   {
      char *colstr;
      const char *prevstr = txt;
      char colbuf[20];
      int ln;

      while( ( colstr = strpbrk( prevstr, "&^}" ) ) != NULL )

Thanks go to Conner for noticeing that it was using { instead of ^. Not to much of an issue but the thing is that since for prototype areas it sets the name of the area to something like
Name: {PROTO} <Character>'s area in progress
it will change the look of it because of only using {P instead of {{P.
You of course can find all the places that use { (and displays it to characters etc...) and toss in for it to do a {{ instead. Your choice but changing it back is probably a little easier.
       
Post is unread #2 Sep 15, 2005, 6:20 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,643
JoinedJan 1, 2002

Fixed, but not posted as a bug since the full update to the color code was so recent.
       
Pages:<< prev 1 next >>