Go Back   RunUO - Ultima Online Emulation > RunUO > Modification Suggestions

Modification Suggestions This is where you can suggest a modifcation to RunUO!

Reply
 
Thread Tools Display Modes
Old 08-09-2006, 01:01 AM   #1 (permalink)
Forum Expert
 
BeneathTheStars's Avatar
 
Join Date: Jul 2005
Location: (South)Tip o' Texas
Posts: 1,294
Send a message via AIM to BeneathTheStars Send a message via MSN to BeneathTheStars
Default Console Colors

It would be great to be able to change the console Warning/Error colors from a script outside the core.
BeneathTheStars is offline   Reply With Quote
Old 08-09-2006, 08:09 AM   #2 (permalink)
RunUO Forum Moderator
 
daat99's Avatar
 
Join Date: Dec 2004
Location: Israel
Age: 27
Posts: 8,163
Send a message via ICQ to daat99 Send a message via AIM to daat99
Default

Quote:
Originally Posted by BeneathTheStars
It would be great to be able to change the console Warning/Error colors from a script outside the core.
Sure it's possible, just look into how it's done in c# and there you go
__________________
I always try to help
Sometimes, I don't know how....

My Web Page
Forum Rules
-------------------------------------------------------------
Extensive OWLTR System | Token System | World Teleporters
-------------------------------------------------------------
daat99 is offline   Reply With Quote
Old 08-09-2006, 08:37 AM   #3 (permalink)
Master of the Internet
 
Join Date: Aug 2003
Posts: 5,688
Default

The easiest thing is to modify the core scriptcompiler.cs. Change this line in the Display method around line 450 and then recompile the core.

Code:
					Utility.PushColor( ConsoleColor.DarkRed );
I personally find Red to be much easier to see

Code:
					Utility.PushColor( ConsoleColor.Red );
(edit)

oh, and warning color is set a little bit earlier in the same method, so you can mod that as you like as well.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline   Reply With Quote
Old 08-09-2006, 01:42 PM   #4 (permalink)
Forum Expert
 
BeneathTheStars's Avatar
 
Join Date: Jul 2005
Location: (South)Tip o' Texas
Posts: 1,294
Send a message via AIM to BeneathTheStars Send a message via MSN to BeneathTheStars
Default

Yes, i know how to change console colors by recompiling the core. It would just be nice to have not to.
BeneathTheStars is offline   Reply With Quote
Old 08-09-2006, 03:03 PM   #5 (permalink)
RunUO Forum Moderator
 
daat99's Avatar
 
Join Date: Dec 2004
Location: Israel
Age: 27
Posts: 8,163
Send a message via ICQ to daat99 Send a message via AIM to daat99
Default

Quote:
Originally Posted by BeneathTheStars
Yes, i know how to change console colors by recompiling the core. It would just be nice to have not to.
You can send manuall console "error message" with any color that you want without recompiling it.
__________________
I always try to help
Sometimes, I don't know how....

My Web Page
Forum Rules
-------------------------------------------------------------
Extensive OWLTR System | Token System | World Teleporters
-------------------------------------------------------------
daat99 is offline   Reply With Quote
Old 08-09-2006, 03:32 PM   #6 (permalink)
Master of the Internet
 
Join Date: Aug 2003
Posts: 5,688
Default

you could add a command line option that allows you to specify error message color if you want that kind of flexibility.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline   Reply With Quote
Old 08-13-2006, 02:37 AM   #7 (permalink)
Forum Newbie
 
Join Date: Nov 2003
Posts: 41
Default

while on the subject, which (exact) file is typically considered the "core"?
GPXtC02 is offline   Reply With Quote
Old 08-13-2006, 04:20 AM   #8 (permalink)
RunUO Forum Moderator
 
daat99's Avatar
 
Join Date: Dec 2004
Location: Israel
Age: 27
Posts: 8,163
Send a message via ICQ to daat99 Send a message via AIM to daat99
Default

Quote:
Originally Posted by GPXtC02
while on the subject, which (exact) file is typically considered the "core"?
In RunUO 1.0.0 it's the server.exe file (should be in RunUO 2.0 RC1 as well unless they renamed it).
__________________
I always try to help
Sometimes, I don't know how....

My Web Page
Forum Rules
-------------------------------------------------------------
Extensive OWLTR System | Token System | World Teleporters
-------------------------------------------------------------
daat99 is offline   Reply With Quote
Old 09-28-2006, 08:27 PM   #9 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

Quote:
Originally Posted by daat99
You can send manuall console "error message" with any color that you want without recompiling it.
You can also change the console background color if you really want to have an attention grabber.
__________________
David Forum Moderator
The RunUO.com Forum Moderator Team

Forum Rules and Guidelines
RunUO Forum Search Engine
Download RunUO 2.0 RC2
David is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5