So called 'Crayola' to whole game - Fuss problem?

Posted by Baelzebub on Mon 29 Mar 2004 02:50 AM — 11 posts, 39,803 views.

Vanuatu #0
Hey all.
Haven't coded smaug for about 2 years due to rl crap ;)
Just started tinkering about with it again and installed the usual suspects as far as snippets go for Fuss hotboot etc. and decided to fix the color for whole game thing i.e.
chat &rcrap...should be in red but of course in Smaug1.4a you had to do the #define thing in mud.h and comment it out in comm.c
Problem is either i have turned into a vegtable (V. Likely;)
Or i am just missing something, been looking at color.c, comm.c and act_comm.c all day...and getting homocidal.
Love FUSS so far nice job Samson, long overdue overhaul, not taking anything away from Orion and his Codebase either ;)
Anyways, any help or just a slap-down or whatever much appreciated from any/all that can help.
p.s. searched throug the help forums but all i can find is help on prompt and changing the color of the standard text color

If i didn't explain me problem right my bad ;)
Amended on Mon 29 Mar 2004 03:21 AM by Baelzebub
Canada #1
The color code in smaugfuss, allows you to set the default for what AT_GOSSIP(should be the one used in chat, I think) is. You can change it in color.c for the default, or you can allow each player to set it using the color command. If you want to force a specific color, then you need something like:

set_char_color(AT_RED, d->character);

That should work.
Vanuatu #2
Sorry, guess i didn't explain myself good after all ;)
I meant so you can have
chat &rhey &ydong&pboy
show up as (red)hey (yellow)dong(pink)boy

Canada #3
There was a post a few days back about this problem, and I wa able to narrow it down to one spot, I'd look at that.
Vanuatu #4
Can't find post with same problem ;(
Canada #5
Check here:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=3948
USA #6
once i switched over to fuss i haven't had a problem with color. one thing i had a problem with only was when i tried to put in a snippet asking for ansi color at the very beginning. that snippet wasn't made for FUSS color codes. Samson did a great job with the color. i never have color bleeds and i only need to put one letter to switch colors. I'm not really sure why you would have a problem with it.
Vanuatu #7
That makes 2 of us ;)

The code that Greven posted :

/* 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;
}
The only thing i have been able to accertain is that changing !d into ch at least make the & symbol appear if you type say &yhey &ryou
instead of just seeing hey you
Sorry is 12:30 am here and need to be at work in 4 hours ;/
As far as fixing it so you can have multiple colours in one line i am at loss atm, will need to re-look later i guess
USA #8
The code you've posted here is not right - you've got the copy of FUSS that had the screwed up color code. This was corrected several weeks back and Nick should have the updated copy posted here. You should probably download it again and use the color.c and color.h files from that and see if the problem persists.
Vanuatu #9
;) Grabbed it from your site mate ;)
Will regrab and see, cheers for info
Vanuatu #10
Nice one Samson, new one works like a charm :)
Musta had the old code sitting around on me HD
Just need to re-install snippets again now ;/ ;)