|
SmaugFUSS - Color Themes - editing the default/adding theme
|
Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Zune
(76 posts) bio
|
| Date |
Mon 05 Sep 2005 04:21 AM (UTC) [ quote
] |
| 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,868 posts) bio
Moderator |
| Date |
Reply #1 on Mon 05 Sep 2005 04:24 AM (UTC) [ quote
] |
| 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) [ quote
] |
| 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) [ quote
] |
| 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,868 posts) bio
Moderator |
| Date |
Reply #4 on Mon 05 Sep 2005 05:07 AM (UTC) [ quote
] |
| 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) [ quote
] |
| 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) [ quote
] |
| 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. :) |
SmaugMuds.org: http://www.smaugmuds.org - The Smaug MUDs Community Center
"The past was erased, the erasure was forgotten, the lie became truth." -- George Orwell, 1984 | top |
|
| Posted by |
Dralnu
USA (277 posts) bio
|
| Date |
Reply #7 on Mon 05 Sep 2005 06:45 PM (UTC) [ quote
] |
| 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) [ quote
] Amended on Wed 27 Feb 2008 02:16 PM (UTC) by Samson
|
| Message |
| http://www.smaugmuds.org/index.php?a=topic&t=1372#p5187 |
SmaugMuds.org: http://www.smaugmuds.org - The Smaug MUDs Community Center
"The past was erased, the erasure was forgotten, the lie became truth." -- George Orwell, 1984 | 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.
3,365 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )