HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

White Units

12-27-2002, 10:45 PM#1
Guest
You know in the world editor, you can make units black, by changing all the colors to 0. Can you do that to make a unit white?
12-27-2002, 11:22 PM#2
Guest
I'm probally not telling you anything here but...

What your adjusting in the WE is tint not color. This means that if the original skin didn't have any "red" based colors in it, adjusting the red tint will have zero effect (whether you set it at 0 or 255). The tint adjustment is simply the subtraction of color from the original skin.

Think of it like this...
What's in the original skin is 100% of the possible color. At the 255 setting, you are getting 100% of all the possible red. Set it to 128 and you are only getting 50% of the available red. Set it to 0 and you get no red. That's why the defaults are set at 255.

Well, if you set all three color tints (red, green, blue) to 0, then you have an absence of all color (i.e. black).

You can, however, implant a new skin into the .w3m file. If you made an all white skin and inserted it, you could get the all white effect you are looking for. My suggestion would be to open the desired skin in paint and keep adjusting the brighteness of the picture until it is near or almost white.

On a side point, since White is the presence of all colors, you could tint this new mostly white skin in WE by subtracting colors. In other words, you create an all white skin and implant it. Then you set the red tint and green tints to 0, leaving the blue tint as 255. This would make the all white model tinted blue (because you subtracted the red and green).
12-27-2002, 11:25 PM#3
Guest
What if you set all the colors to 500?
12-27-2002, 11:32 PM#4
Guest
You can't. 255 is the limit. Blizzard only gave that space for two hex digits. (255 = FF in Hexadecimal)
12-27-2002, 11:44 PM#5
Guest
Oh contrair.
I've done it, and it doesnt work.

Just change UnitMedaData.slk.

Look for the
Red
Green
Blue

When you find the 255 in all of these, and change it to 500
12-27-2002, 11:56 PM#6
Guest
Editing the UnitMetaData.slk won't make a difference. The reason it doesn't work and the reason that WE doesn't allow you to move it past 255 is that any number higher than 255 would require a 3rd hexadigit. In other words, when the program is running and it loads the UnitMetaData.slk into memory, it is in hexadecimal. Blizzard only allowed for two digits. 500 is 1F4 in Hexadecimal. My guess is that the 1 is lost and you are actually getting F4 which is equal to 244. (Close enough to 255 to not make a visual difference) You could test this theory by using 256, which is 100 in Hexadecimal. I imagine that this would make your model black. It's also possible that Blizzard just hardcoded any number above 255 into 255. Regardless, the only way you are going to get a white model is by skin editing.
12-28-2002, 01:15 AM#7
Guest
the game engine will not understand higher values of 255, as its rgb (or bgr =P) can never exceed 255, its the max. In any case, you cant use the color option to make a unit having white color or tint, skinning is the only solution