Register forum user name Search FAQ

Gammon Forum

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 ➜ SmaugFUSS - Color Themes - editing the default/adding theme

SmaugFUSS - Color Themes - editing the default/adding theme

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


Posted by Zune   (76 posts)  Bio
Date Mon 05 Sep 2005 04:21 AM (UTC)
Message
Using SMAUG-Fuss, I have the color code included. It gives me two default themes, "AFK" and "SMAUG".

I'm very intent on adding a new theme and making it the default color scheme for my MUD. How would I go about doing this?
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #1 on Mon 05 Sep 2005 04:24 AM (UTC)
Message
I'm pretty sure there's a const struct in color.h that has them all defined. I saw this asked before, try a search. I'll check around myself.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Zune   (76 posts)  Bio
Date Reply #2 on Mon 05 Sep 2005 04:36 AM (UTC)
Message
Searching. I'll get back to you.
Top

Posted by Zune   (76 posts)  Bio
Date Reply #3 on Mon 05 Sep 2005 04:44 AM (UTC)
Message
Searching the forums, the answers to changing default colors seem to refer to SMAUG and the color.dat (or colors.dat) file in the system directory.

Unfortunately, smaugFUSS doesn't come with a colors.dat file (at least in the system directory). It has its own color code, in the form of color.c and color.h (or colors.c and colors.h). These seem to control a system of colors in which any player can define his own colors using a "color" command online.

The situation is this, and forgive me if I'm just repeating: there are two "themes", which are bundles of color settings. These are AFK and SMAUG. I don't want to use either.

I need to find somewhere in the code to set the defaults, or at least to create a new color theme in addition to the existing two. My preference? To create an additional theme AND make it the default.

Thanks. :)
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #4 on Mon 05 Sep 2005 05:07 AM (UTC)
Message
Here it is, in color.c
/* All defaults are set to Alsherok default scheme, if you don't
like it, change it around to suite your own needs - Samson */
const sh_int default_set [MAX_COLORS] =

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Zune   (76 posts)  Bio
Date Reply #5 on Mon 05 Sep 2005 05:45 AM (UTC)
Message
This code incorporates a "savetheme" command to make your own themes, as an immortal. They are saved and available MUDwide. The only problem is making it the default one.

I've tried editing the colors listed and saving that file, Zeno, but when I compiled it it did nothing. I even did a second compile and deleted the color.o object file, thinking that might help. Dunno.

I guess I'm just going to go the route, at this point, of using an mpforce room program at the newbie area to force the player to set his color theme to the "default" named theme that I made using the aforementioned "savetheme" command. I wish I could make it the default that you start with, but I just can't find any success with it.

Thanks for your help, mate.
Top

Posted by Samson   USA  (683 posts)  Bio
Date Reply #6 on Mon 05 Sep 2005 05:13 PM (UTC)
Message
Ah, well, there's an idea I guess. Make the code set a default theme if a file named "default" exists. That should be relatively easy to put in. :)
Top

Posted by Dralnu   USA  (277 posts)  Bio
Date Reply #7 on Mon 05 Sep 2005 06:45 PM (UTC)
Message
Adding in the color.dat file and using it would be interesting. Use a system similar to skills.dat in that:

#BEGIN
name default~
series of color value, their name, and where they are used
#END

#BEGIN
name smaug~
same here
#END

ect.

and, if lacking such a file, it would go to a hardcoded default setting (which you already can change through the code)

Maybe a snippet would be easy enough to make for this?

And no, I'm not volinteering(sp?), as I'm having enough trouble with can_see. lol.
Top

Posted by Samson   USA  (683 posts)  Bio
Date Reply #8 on Mon 05 Sep 2005 08:41 PM (UTC)

Amended on Wed 27 Feb 2008 02:16 PM (UTC) by Samson

Message
http://www.smaugmuds.org/index.php?a=topic&t=1372#p5187
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.


30,129 views.

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

Go to topic:           Search the forum


[Go to top] top

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