What do these light color values mean? [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
SBF_Dann_Boeing
Groove Walrus
Groove Walrus
Posts: 1529
Joined: Wed Aug 31, 2005 11:33 pm
xbox live or psn: No gamertag set
Location: An Igloo High Upon a Mountain Top

What do these light color values mean? [Solved]

Post 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)
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

RE: Quick Question

Post by Caleb1117 »

Just guessing, I know 3 0f them are red, green, and blue (RGB)
Could the other be alpha?
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

RGB color chart link

Post by AceMastermind »

Here's an RGB color chart for you Dann:
http://www.pitt.edu/~nisg/cis/web/cgi/rgb.html
User avatar
SBF_Dann_Boeing
Groove Walrus
Groove Walrus
Posts: 1529
Joined: Wed Aug 31, 2005 11:33 pm
xbox live or psn: No gamertag set
Location: An Igloo High Upon a Mountain Top

RE: Quick Question

Post by SBF_Dann_Boeing »

ah yes that might be it
User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Building a railway to Coruscant
Contact:

RE: Quick Question

Post by trainmaster611 »

So you can actually change the colors with that line?? :|
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

RE: Quick Question

Post by Caleb1117 »

Yes, indead.
Ipodzanyman
Sith
Sith
Posts: 1304
Joined: Fri Feb 03, 2006 12:16 am
Games I'm Playing :: ME3 Demo
Contact:

RE: Quick Question

Post by Ipodzanyman »

There is also this place:

http://web.njit.edu/~kevin/rgb.txt.html
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Post 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.
User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Building a railway to Coruscant
Contact:

Post by trainmaster611 »

Great I just made a quick green cp for Tean's Classic COnquest :)
YankFan1950

Post 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
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Post 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.
User avatar
SBF_Dann_Boeing
Groove Walrus
Groove Walrus
Posts: 1529
Joined: Wed Aug 31, 2005 11:33 pm
xbox live or psn: No gamertag set
Location: An Igloo High Upon a Mountain Top

Re: RE: Quick Question

Post 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.
User avatar
phazon_elite
Rebel Colonel
Rebel Colonel
Posts: 597
Joined: Tue Jan 16, 2007 9:10 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: I'm sorry Link, I can't give the location. Come back when you're a little...mmmh...RICHER!
Contact:

Post 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
User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Building a railway to Coruscant
Contact:

Post 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] 8)

[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 :?
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Post by Teancum »

The CP colors are hard-coded. I was told so by Psych0fred.
Master Fionwë
Rebel Colonel
Rebel Colonel
Posts: 598
Joined: Wed May 30, 2007 3:33 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: At RCTC
Contact:

Post 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
EGG_GUTS
Master Bounty Hunter
Master Bounty Hunter
Posts: 1626
Joined: Thu Dec 07, 2006 7:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: CANADA!

Post 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 :P
theITfactor
Chief Warrant Officer
Chief Warrant Officer
Posts: 327
Joined: Wed Jun 28, 2006 12:56 pm
Projects :: The Pwnfest and Games Complex
Games I'm Playing :: SWTOR
xbox live or psn: You and I Know
Location: The Old Republic
Contact:

Post by theITfactor »

AceMastermind wrote:Here's an RGB color chart for you Dann:
http://www.pitt.edu/~nisg/cis/web/cgi/rgb.html
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.
Master Fionwë
Rebel Colonel
Rebel Colonel
Posts: 598
Joined: Wed May 30, 2007 3:33 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: At RCTC
Contact:

Post by Master Fionwë »

Ah, I see. Thanks for clearing that up for me. :)
Post Reply