Page 1 of 1

Halo 2 Color Calculator [Converts RGB to Real Colors]

Posted: Tue Jan 19, 2010 2:27 am
by Click16
Image

If you see color values in Entity, odds are that they will not be like regular color values (#'s 0 - 255) It would be more like 0 - 1, consisting of decimals. Well, this app will allow you to get a regular RGB value and convert it into a Halo 2 RGB value. While most of you like to do the math in your head, or on a piece of paper, this will be a lot quicker. Just open it up, type in the values and boom, done.

Image

The program allows you to take regular H2 color data and convert it into regular RGB color data and the other way around.

Features:
An easy-to-use User Interface
Preview panes for your colors
Color picker
Help features
Backwards converting (Converting from RGB to H2 and back)
File saving (Saves the color values present in the application)
Added more help topics
"Show on Top of all Other Windows" check box.
Saving color settings for both RGB and Halo 2, along with being able to load the colors from a text doc.

Mirror 1:
Halo 2 Color Converter.rar
Halo 2 Color Calculator
(46.08 KiB) Downloaded 420 times
Pictures:

Before:
Image
- Entity Sky Tag with intensified fog, but not edited

Image
- In-Game shot of intensified fog, but not edited

After:
Image
- Entity Sky tag with edited fog

Image
- In-Game shot of edited fog

The pictures above aren't of the latest up-to-date version. Download the attachment to see the newest version.

Re: Halo 2 Color Calculator

Posted: Tue Jan 19, 2010 2:33 am
by Gary
Neat, I can see this being handy. Though it is something that should be built into the modding application.

Re: Halo 2 Color Calculator

Posted: Tue Jan 19, 2010 2:34 am
by troymac1ure
*Noted

Re: Halo 2 Color Calculator

Posted: Tue Jan 19, 2010 4:40 am
by OwnZ joO
I actually wanted to add a data type like this for my meta editor, but I don't know anything about the different color types in halo 2. Also wanted to do an Angle type and a placement type, with i j and k stuff in a different way than just random numbers.

Re: Halo 2 Color Calculator

Posted: Tue Jan 19, 2010 10:18 pm
by Click16
Updated the program with more features and proof pictures. :mrgreen:

Re: Halo 2 Color Calculator UPDATE

Posted: Thu Jan 21, 2010 9:38 am
by troymac1ure
Fully implemented:
Image

The only "bug" that I can see is the way it handles alpha values. It changes the alpha value to 1 and auto-converts the RGB values to match the modified alpha. So the colors shouldn't change, but values will.

It requires no modification to plugins either :)

Re: Halo 2 Color Calculator UPDATE

Posted: Thu Jan 21, 2010 12:46 pm
by XZodia
troymac1ure wrote:It requires no modification to plugins either :)
How'd you manage that?

Re: Halo 2 Color Calculator UPDATE

Posted: Thu Jan 21, 2010 1:14 pm
by socrates
XD Troy that is almost exactly what I was hoping you would do when you posted "Noted"
my other thought was you were going to make a dropdown in the tools menu that would open Click's app XD
anyways, that shows up anytime you've got color values? neat useful visual changer's like this could be very useful for other
aspects as well, Lights mb? idk effects on shaders? (diffuse specularity etc.)

Re: Halo 2 Color Calculator UPDATE

Posted: Thu Jan 21, 2010 5:22 pm
by OwnZ joO
Did you just check the name to see if it had color in it?

Re: Halo 2 Color Calculator UPDATE

Posted: Thu Jan 21, 2010 6:54 pm
by troymac1ure
OwnZ joO wrote:Did you just check the name to see if it had color in it?
It checks for (convert to lowercase) " r", " g", " b" and " a" (if it exists). They must be consecutive and if so, the color wheel appears and updates the text boxes (or vise-versa). So this will work with anything like "Color R", "Tint G", "Bitch B", etc. (I think I may also have it check for red, green, blue as well for extra compatibility)
This could pose a problem if you have three boxes in a row named something like:
Big Banannas
Fast Running
Lower Ground

where all those strings in a row.

Just ran it again after posting and found a bug with it. Need to check and see if it's in the Alpha portion of the code (it was a late add-in)

Re: Halo 2 Color Calculator UPDATE

Posted: Thu Jan 21, 2010 7:02 pm
by Click16
I think it would work better if it was in the plugin. but that is cool... kinda makes my app useless tho. :(

Re: Halo 2 Color Calculator UPDATE

Posted: Thu Jan 21, 2010 7:15 pm
by Grimdoomer
troymac1ure wrote:
OwnZ joO wrote:Did you just check the name to see if it had color in it?
It checks for (convert to lowercase) " r", " g", " b" and " a" (if it exists). They must be consecutive and if so, the color wheel appears and updates the text boxes (or vise-versa). So this will work with anything like "Color R", "Tint G", "Bitch B", etc. (I think I may also have it check for red, green, blue as well for extra compatibility)
This could pose a problem if you have three boxes in a row named something like:
Big Banannas
Fast Running
Lower Ground

where all those strings in a row.

Just ran it again after posting and found a bug with it. Need to check and see if it's in the Alpha portion of the code (it was a late add-in)
I would use fields in plugins. Here are the types h2 uses for colors:

Code: Select all

rgb color
argb color
real rgb color
real argb color
real hsv color
real ahsv color

Re: Halo 2 Color Calculator UPDATE

Posted: Fri Jan 22, 2010 2:26 am
by OwnZ joO
Yeah i figured it had to do something with the name. I wanted to add color field types to the plugins after i saw altimat do it with his app.

Re: Halo 2 Color Calculator UPDATE

Posted: Fri Jan 22, 2010 3:09 am
by JacksonCougar
I got bored one day so I played around with an idea of making meta controls not hard-coded. Worked very well. A user could program a control in C#, make it a library, then import it and link it to a plugin type: like Color.