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 ➜ ROM ➜ Running the server ➜ Color Code : Other than Lope's

Color Code : Other than Lope's

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


Posted by Faeral   (3 posts)  Bio
Date Tue 12 Mar 2002 11:12 PM (UTC)
Message
Hey all,

I'm looking to implement color code (other than LOPE's) anyone have any suggestions or color snippets that they might suggest?

Appreciate any info.
Top

Posted by Kalahn   United Kingdom  (138 posts)  Bio
Date Reply #1 on Wed 13 Mar 2002 01:10 PM (UTC)
Message
I don't know of any snippets since I havent had anything to do with ROM for a long time. One thing about whatever colour system you go for, adapt it to use a character other than { or } to prefix colour codes (assuming it doesn't already).

Dawn is in the process of being converted to use `, there are a few reasons for not using { or }:
1. Visual C++ - in Visual C++ you can press ctrl+} to jump between braces, ctrl+shift+} then press alt+f8, and it will reformat the selected section. Unfortunately the algorithm in Visual C++ considers { and } within a string/single quotes as part of the actual C code, so the usefulness of this feature is greatly reduced if your mud code gets a lot of colour code characters embedded within.
2. Scripting language support - if you want to add a scripting language, most of them have a syntactic use for the open and close brace characters. This is the reason I have converted dawn to use `, since I am going to be adding a full scripting language.

Good luck with the colour system whatever you use,

- Kal

Kalahn
Developer of the Dawn of Time codebase
http://www.dawnoftime.org/
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.


11,589 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.