Page 1 of 1
What do these light color values mean? [Solved]
Posted: Mon Jun 18, 2007 9:15 pm
by SBF_Dann_Boeing
Ok for a laser ordnance, what does each value represent in
LightColor = 0 0 255 255"
(0 0 225 255 makes blue, I want to make green)
RE: Quick Question
Posted: Mon Jun 18, 2007 9:23 pm
by Caleb1117
Just guessing, I know 3 0f them are red, green, and blue (RGB)
Could the other be alpha?
RGB color chart link
Posted: Mon Jun 18, 2007 9:26 pm
by AceMastermind
RE: Quick Question
Posted: Mon Jun 18, 2007 9:26 pm
by SBF_Dann_Boeing
ah yes that might be it
RE: Quick Question
Posted: Mon Jun 18, 2007 9:31 pm
by trainmaster611
So you can actually change the colors with that line??

RE: Quick Question
Posted: Mon Jun 18, 2007 9:35 pm
by Caleb1117
Yes, indead.
RE: Quick Question
Posted: Mon Jun 18, 2007 10:42 pm
by Ipodzanyman
Posted: Tue Jun 19, 2007 3:39 am
by MercuryNoodles
I believe it does change the color, but only in that it changes the lighting effect, which you'll see in dark areas. The GlowColor value, of course, changes the glow effect on the edges of the bolt. You'll still need to call the tga with the color you want to get the color the way you really want it, AFAIK.
Posted: Tue Jun 19, 2007 6:31 am
by trainmaster611
Great I just made a quick green cp for Tean's Classic COnquest

Posted: Tue Jun 19, 2007 7:51 am
by YankFan1950
the last value is for alpha and "laser shadow" as i call it. In a dark room or an area with dark lighting with a high 4th number probably 200-255 you'll see (high-medium lighting on) a glow on the ground or objects that is your laser's color and it will move with your laser like the laser's color will reflect to the ground and the nearby objects. With a medium 4th number (between 100-199) will casue a not as sharp haze but still subtle enough that it looks cool. and with a number of 0-99 there really isn't any color at all unless the room is pitch black but that wouldn't make for a good map then.
Hope this answers your question.
YaNkFaN
Posted: Tue Jun 19, 2007 8:57 am
by Teancum
Yup, the format is
RED / GREEN / BLUE / ALPHA
0 0 255 255 is a completely opaque blue color. 0 is the minimum and 255 is the highest value.
Re: RE: Quick Question
Posted: Tue Jun 19, 2007 3:11 pm
by SBF_Dann_Boeing
trainmaster611 wrote:So you can actually change the colors with that line??

yes, the light that is, u must reskin the laser for a different laser texture.
Posted: Tue Jun 19, 2007 6:46 pm
by phazon_elite
trainmaster611 wrote:Great I just made a quick green cp for Tean's Classic COnquest

Did you test it? I've tried it before, but it doesn't work...
- EP-782
Posted: Tue Jun 19, 2007 8:14 pm
by trainmaster611
Yeah I did but that doesn't make any sense, isn't it supposed to munge in the changes? I saw it say in the Munge output that it read it. I wonder what the problem could be, unless..... [runs off to do something top secret]
[EDIT]:
Ok here's what I did, instead of changing the file inside of the data_ABC/Common/odfs folder, I went straight to the BF2_Modtools/data/common/odfs folder and replaced the blue cp with the green one there.
My hope was that maybe the initial munge to create the data_ABC folder was what decided the properties of the cp. But it still came out blue.
What I am guessing is that the cp color has already been pre-programmed into the game and the data_ABC/common folder is just used as a reference when modding. It doesn't actually change anything.
Therefore, the only possible way to change it is to hex-edit

Posted: Tue Jun 19, 2007 8:45 pm
by Teancum
The CP colors are hard-coded. I was told so by Psych0fred.
Posted: Wed Jun 20, 2007 8:30 pm
by Master Fionwë
Off topic, but I continue to hear about Psych0fred, what he's made and told people, but who is he? not to be rude or anything
Posted: Wed Jun 20, 2007 8:53 pm
by EGG_GUTS
psych0fred is a really good modeler and scripter and BF2 editing to sum it up. I haven't seen him around, but his models are every where. Dwarf Spider droid - psych0fred, HAG - psych0fred, ATXT - psych0fred, K-wing - psych0fred, Tie defender - psych0fred. You get the picture, I hope

Posted: Wed Jun 20, 2007 8:59 pm
by theITfactor
For precisely the colors you want I advise you use Photoshop, randomly fill a square with a random color, then press ctrl U and colorize it to the exact color you want. In the upper right it will tell you what the RGB is for that color you made.
This is also handy for when I'm trying to find a color I saw in game, I can just screenshot, paste into CS2 and then find the RGB, where I can then search for it in the files.
Posted: Wed Jun 20, 2007 9:05 pm
by Master Fionwë
Ah, I see. Thanks for clearing that up for me.
