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.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ newbie coloring question
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2
3
4
| Posted by
| Devbmx
(50 posts) Bio
|
| Date
| Reply #45 on Sat 20 Mar 2004 01:07 AM (UTC) |
| Message
| | nope still nothin its all still just one color | | Top |
|
| Posted by
| Meerclar
USA (733 posts) Bio
|
| Date
| Reply #46 on Sat 20 Mar 2004 05:46 AM (UTC) |
| Message
| | Look up the TO_ROOM code and see if it parses for color codes or not, Im not sure. As for the TO_CHAR, try to TO_CHAR_COLOR instead, I dont believe the TO_CHAR function parses for color codes. |
Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org | | Top |
|
| Posted by
| Devbmx
(50 posts) Bio
|
| Date
| Reply #47 on Sat 20 Mar 2004 07:28 AM (UTC) |
| Message
| allrigth i tried that and got an error upon compiling
act_comm.c: In function `do_say':
act_comm.c:958: error: `TO_CHAR_COLOR' undeclared (first use in this function)
act_comm.c:958: error: (Each undeclared identifier is reported only once
act_comm.c:958: error: for each function it appears in.)
make[1]: *** [act_comm.o] Error 1
make[1]: Leaving directory `/home/Default/smaugfuss/src'
make: *** [all] Error 2
| | Top |
|
| Posted by
| Greven
Canada (835 posts) Bio
|
| Date
| Reply #48 on Sat 20 Mar 2004 08:33 AM (UTC) |
| Message
| Well, I downloaded smaugfuss, and did this test, to no avail. While I changed it to ACT_SAY instead of ACT_BLUE, to allow the color command to work, it would not accept me putting colors into anything, even from within the game. It looks to me as if the color code is going bad, specifically here: bool ansi = FALSE;
char *sympos = NULL;
/* No descriptor, assume ANSI conversion can't be done. */
if( !d )
ansi = FALSE;
/* But, if we have one, check for a PC and set accordingly. If no PC, assume ANSI can be done. For color logins. */
else
{
ch = d->original ? d->original : d->character;
if( ch )
ansi = ( xIS_SET( ch->act, PLR_ANSI ) );
else
ansi = TRUE;
}
Seems that ansi is being set to false, but my crappy computer keeps bailing out on me, and crashing cygwin, so maybe someone can help from there? |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | | Top |
|
| Posted by
| Devbmx
(50 posts) Bio
|
| Date
| Reply #49 on Tue 23 Mar 2004 03:10 AM (UTC) |
| Message
| | has anyone been able to figure it out? | | 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.
145,097 views.
This is page 4, subject is 4 pages long:
1
2
3
4
It is now over 60 days since the last post. This thread is closed.
Refresh page
top