Halo 2 Color Calculator [Converts RGB to Real Colors]

A wealth of applications with which you will need to mod Halo 2.
Post Reply
User avatar
Click16
Posts: 1941
Joined: Mon Dec 31, 2007 4:36 am
Location: United States

Halo 2 Color Calculator [Converts RGB to Real Colors]

Post 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 329 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.
Last edited by Click16 on Sun Jan 31, 2010 7:06 pm, edited 5 times in total.
Image
User avatar
Gary
Posts: 1946
Joined: Thu Feb 14, 2008 10:17 pm
Location: USA, FL
Contact:

Re: Halo 2 Color Calculator

Post by Gary »

Neat, I can see this being handy. Though it is something that should be built into the modding application.
User avatar
troymac1ure
Keeper of Entity
Posts: 1282
Joined: Sat Aug 09, 2008 4:16 am
Location: British Columbia, Canada, eh
Contact:

Re: Halo 2 Color Calculator

Post by troymac1ure »

*Noted
User avatar
OwnZ joO
Posts: 1197
Joined: Sun Dec 09, 2007 4:46 pm

Re: Halo 2 Color Calculator

Post 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.
User avatar
Click16
Posts: 1941
Joined: Mon Dec 31, 2007 4:36 am
Location: United States

Re: Halo 2 Color Calculator

Post by Click16 »

Updated the program with more features and proof pictures. :mrgreen:
Image
User avatar
troymac1ure
Keeper of Entity
Posts: 1282
Joined: Sat Aug 09, 2008 4:16 am
Location: British Columbia, Canada, eh
Contact:

Re: Halo 2 Color Calculator UPDATE

Post 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 :)
User avatar
XZodia
Staff
Posts: 2208
Joined: Sun Dec 09, 2007 2:09 pm
Location: UK
Contact:

Re: Halo 2 Color Calculator UPDATE

Post by XZodia »

troymac1ure wrote:It requires no modification to plugins either :)
How'd you manage that?
Image
JacksonCougar wrote:I find you usually have great ideas.
JacksonCougar wrote:Ah fuck. Why must you always be right? Why.
User avatar
socrates
Posts: 565
Joined: Tue May 27, 2008 9:22 pm
Location: Oklahoma

Re: Halo 2 Color Calculator UPDATE

Post 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.)
User avatar
OwnZ joO
Posts: 1197
Joined: Sun Dec 09, 2007 4:46 pm

Re: Halo 2 Color Calculator UPDATE

Post by OwnZ joO »

Did you just check the name to see if it had color in it?
User avatar
troymac1ure
Keeper of Entity
Posts: 1282
Joined: Sat Aug 09, 2008 4:16 am
Location: British Columbia, Canada, eh
Contact:

Re: Halo 2 Color Calculator UPDATE

Post 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)
User avatar
Click16
Posts: 1941
Joined: Mon Dec 31, 2007 4:36 am
Location: United States

Re: Halo 2 Color Calculator UPDATE

Post by Click16 »

I think it would work better if it was in the plugin. but that is cool... kinda makes my app useless tho. :(
Image
User avatar
Grimdoomer
Admin
Posts: 1835
Joined: Sun Dec 09, 2007 9:09 pm

Re: Halo 2 Color Calculator UPDATE

Post 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
Don't snort the magic, we need it for the network.
User avatar
OwnZ joO
Posts: 1197
Joined: Sun Dec 09, 2007 4:46 pm

Re: Halo 2 Color Calculator UPDATE

Post 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.
User avatar
JacksonCougar
Huurcat
Posts: 2460
Joined: Thu Dec 06, 2007 11:30 pm
Location: Somewhere in Canada

Re: Halo 2 Color Calculator UPDATE

Post 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.
Post Reply