[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  So called 'Crayola' to whole game - Fuss problem?

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

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


Posted by Baelzebub   Vanuatu  (10 posts)  [Biography] bio
Date Mon 29 Mar 2004 02:50 AM (UTC)

Amended on Mon 29 Mar 2004 03:21 AM (UTC) by Baelzebub

Message
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 ;)

Do What Thou Wilt Shall Be The Whole Of The Law.
[Go to top] top

Posted by Greven   Canada  (835 posts)  [Biography] bio
Date Reply #1 on Mon 29 Mar 2004 03:46 AM (UTC)
Message
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.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
[Go to top] top

Posted by Baelzebub   Vanuatu  (10 posts)  [Biography] bio
Date Reply #2 on Mon 29 Mar 2004 04:06 AM (UTC)
Message
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


Do What Thou Wilt Shall Be The Whole Of The Law.
[Go to top] top

Posted by Greven   Canada  (835 posts)  [Biography] bio
Date Reply #3 on Mon 29 Mar 2004 05:02 AM (UTC)
Message
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.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
[Go to top] top

Posted by Baelzebub   Vanuatu  (10 posts)  [Biography] bio
Date Reply #4 on Mon 29 Mar 2004 05:36 AM (UTC)
Message
Can't find post with same problem ;(

Do What Thou Wilt Shall Be The Whole Of The Law.
[Go to top] top

Posted by Greven   Canada  (835 posts)  [Biography] bio
Date Reply #5 on Mon 29 Mar 2004 05:47 AM (UTC)
Message
Check here:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=3948

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
[Go to top] top

Posted by Ithildin   USA  (262 posts)  [Biography] bio
Date Reply #6 on Mon 29 Mar 2004 06:13 AM (UTC)
Message
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.
[Go to top] top

Posted by Baelzebub   Vanuatu  (10 posts)  [Biography] bio
Date Reply #7 on Mon 29 Mar 2004 06:25 AM (UTC)
Message
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

Do What Thou Wilt Shall Be The Whole Of The Law.
[Go to top] top

Posted by Samson   USA  (683 posts)  [Biography] bio
Date Reply #8 on Mon 29 Mar 2004 01:24 PM (UTC)
Message
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.
[Go to top] top

Posted by Baelzebub   Vanuatu  (10 posts)  [Biography] bio
Date Reply #9 on Tue 30 Mar 2004 01:15 AM (UTC)
Message
;) Grabbed it from your site mate ;)
Will regrab and see, cheers for info

Do What Thou Wilt Shall Be The Whole Of The Law.
[Go to top] top

Posted by Baelzebub   Vanuatu  (10 posts)  [Biography] bio
Date Reply #10 on Tue 30 Mar 2004 01:28 AM (UTC)

Amended on Tue 30 Mar 2004 01:30 AM (UTC) by Baelzebub

Message
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 ;/ ;)

Do What Thou Wilt Shall Be The Whole Of The Law.
[Go to top] 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.


24,973 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]