Jump to content

How to Change ELS Lightbar Colors


simplestarwarsfan

(This is a port of the same tutorial I posted a few years back on GPM)

Find and extract the emerglights.png located in the car's .wtd file.

It should look something like this..

emerglights.png

Now. There are 2 areas you need to edit here. The bit with the little mini images of the lightbars and the big colorful things.

emerglightstut1.png

Those..

Now with the lightbar image bit, you need to find your car's lightbar type. i.e. if its useing the Vector then its obviously the one that looks like the Vector.. so you would edit this one..

emerglightstut2.png

But in this case it's not that one but this one...

emerglightstut3.png

..as I am editing FORD CROWN VICTORIA / CVPI-V4.6A ELS-H

Now to editing it. It is very important to note that the color is slightly transparent! So you will need a program like GIMP or Photoshop to do this. Paint (to my knowledge) will NOT WORK!

This one's easy as it is just a rectangle..

First make a new transparent layer. Next take your box/select tool and select the entire bar. Make sure you are currently on the new layer.

tutw.png

Then with the fill/bucket tool select 'fill whole selection' and set the opacity level to about 50% and fill that area with the desired color. Then with the pencil or paintbrush tool go over the black separator lines, but with no opacity! These have to be solid. Oh, and be sure the area is still box selected. Should look like this..

tut2co.png

Now, switch to the original layer, and clear the boxed contents. Should look..

tut3k.png

Do the same thing to the smaller one next to it.

Alright you should be here by now..

tut4.png

Good. Onto this section...

tut5f.png

Now these are the textures that the individual 'bulbs' in the lightbar will have when they are off.

In this case this part of editing is very easy because we only have one color on the lightbar. So most are going to be the same color. If we had different colors we would need to figure out what sections of the bar used what. For example I already know where certain thing go for this car. This should be pretty obvious when you 1st open up the original texture. For this car it like this...

tut6g.png

5 is for the rear secondary's and i'm not sure what 6 is for.

Anyhow this not so hard for this car. You are just going to make 1,2,3,and 4 orange.

Get yo box select tool and select one of em.

tut7k.png

Then will the fill tool, set the opacity to around 50% (this can varies per car and color) and fill that box.

tut8.png

Now for the trick.. with that select tool box still there, right click and go to 'copy visible'.

tut9.png

Then just copy and paste a few time over the others and boom.

tut10f.png

Now say you wanted that back secondary light to be green. Use a similar process.

Use the circle select tool (cause its a circle!) and do the same. Bucket fill with a green at about 75% opacity (only cause we are covering red this time so it takes a little more).

Should get something like this...

tut11l.png

And that is it for the emerglights file!

Save as a .png with any name.

Next is the emerglights_emis.png

Extract the emerglights_emis.png from the .wtd

Open it up!

Should look something like this..

emerglightsemis.png

What this file does is give texture to the individual 'bulbs' when they are on.

Now again this will be easy as our lightbar is all one color. If it were not we'd have to figure out which ones go to which parts of the lightbar. This can be really annoying sometimes. Just remember these were designed with some sense so its not going to be toooo complicated. Oh and those labels are there for a reason.

But we don't have to worry about that!

Because our bar all has the same color we are just going to make all the ones to the right orange.

These..

emistut1.png

With your box select tool, select any of those and fill with the bucket tool with an opacity of about 65% (again this will vary depending on the colors, just experiment)..

emistut3.png

Now, with the box still selected, right click and go to 'copy visible'.

emistut4.png

Then it is just a simple process of copying and pasting that over all of those that i showed we had to make orange.

You can even use a trick to make this go faster. Cover the top row then box select it, copy visible and paste onto the lower two.

emistut5.png

Should end up like this...

emistut6.png

Now since we concluded that we wanted the back secondary's to be green we have to change the top static, generally the secondary's will be one of the statics. So do the same as before but this time only the one and making it green. I suggest a bucket fill opacity of about 75%.

emistut7.png

Oh whoops i missed one.. this one needs to be orange too for some reason.

emistut8.png

Generally you don't need to touch that one.

Thats it!

Save it as a .png with any name.

Finally import these over the ones you extracted from the car's .wtd

Lastly to get the els reflections right edit your els.ini. Depending on the car's name go to its section in the els.ini file. For example say it was just the regular police. Find the section for police...


[ POLICE ]



Active = 1

Halogen_Only = 0

Color_Light1L = 0

Color_Light2L = 0

Color_Light3R = 2

Color_Light4R = 0

Color_Light7L = 3

Color_Light8C = 3

Color_Light9R = 3

Offst_SLights = 0





The primary light are Lights 1 to 4. The secondary lights are 7 to 9.



Since we made the primary's orange we'll set the primarys to amber, the closed to orange. Only red, blue, white, amber, and green are supported. They have corresponding numbers as seen in the reference section of the els.ini (located at the bottom).





// REFERENCE

//

// Active Determines whether the ELS can be enabled on that vehicle / 0 for OFF, 1 for ON

// Halogen_Only Determines whether the model is intended for halogen only lighting patterns

// Offst_SLights Y axis offset of secondary environment lights relative to vehicle

//

// Red 0

// Blue 1

// White 2

// Amber 3

// Green 4





So to set the primarys to yellow we change 1-4 to 3 and to make the secondarys green(since we make em green) set 7-9 to 4. Oh and don't forget that this car is a Halogen.



End result show look like this..



[ POLICE ]



Active = 1

Halogen_Only = 1

Color_Light1L = 3

Color_Light2L = 3

Color_Light3R = 3

Color_Light4R = 3

Color_Light7L = 4

Color_Light8C = 4

Color_Light9R = 4

Offst_SLights = 0

DONE. Lets go test it out.

In-game:

gtaiv2011040222565092.png

gtaiv2011040222571648.png

Questions? Comments? PM or email me (simplestarwarsfan@gmail.com)



User Feedback

Recommended Comments

I got a question, I dont got the changing script, I only got this:

[ AMBULANCE ]
Status = on
File = default_config
 
[ FBI ]
Status = on
File = default_config
 
[ FIRETRUCK ]
Status = on
File = default_config
 
[ NOOSE ]
Status = on
File = default_config
 
[ NSTOCKADE ]
Status = on
File = default_config
 
[ POLICE ]
Status = on
File = default_config
 
[ POLICE2 ]
Status = on
File = default_config
 
[ POLICE3 ] // EFLC
Status = on
File = default_config
 
[ POLICE4 ] // EFLC
Status = on
File = default_config
 
[ POLICEB ] // EFLC
Status = on
File = default_config
 
[ POLPATRIOT ]
Status = on
File = default_config
 
[ PSTOCKADE ]
Status = on
File = default_config

 

Nothing more, please help? :)

Share this comment


Link to comment
Share on other sites

Ok got one question i changed  one color on the emis lights and when i went in game to check it it changed the one i need to for example from red to white but also changed the colors that i didnt want to change how do i fix that can one color be mapped to different spots on the lightbar and be the same color or did i miss something ? the police car iam using is the arizona highway patrol car but on the light bar it has red and clear in the middle of the light bar but it flashes red and then blue on the other side of the light bar i was trying to change the middle red one to white but it changed some of the ones on the red side to whit aswell as the one i needed to change? Any sug would be apprecitated

Share this comment


Link to comment
Share on other sites

I got a question, I dont got the changing script, I only got this:

[ AMBULANCE ]
Status = on
File = default_config
 
[ FBI ]
Status = on
File = default_config
 
[ FIRETRUCK ]
Status = on
File = default_config
 
[ NOOSE ]
Status = on
File = default_config
 
[ NSTOCKADE ]
Status = on
File = default_config
 
[ POLICE ]
Status = on
File = default_config
 
[ POLICE2 ]
Status = on
File = default_config
 
[ POLICE3 ] // EFLC
Status = on
File = default_config
 
[ POLICE4 ] // EFLC
Status = on
File = default_config
 
[ POLICEB ] // EFLC
Status = on
File = default_config
 
[ POLPATRIOT ]
Status = on
File = default_config
 
[ PSTOCKADE ]
Status = on
File = default_config

 

Nothing more, please help? :)

 

 

I got a question, I dont got the changing script, I only got this:

[ AMBULANCE ]
Status = on
File = default_config
 
[ FBI ]
Status = on
File = default_config
 
[ FIRETRUCK ]
Status = on
File = default_config
 
[ NOOSE ]
Status = on
File = default_config
 
[ NSTOCKADE ]
Status = on
File = default_config
 
[ POLICE ]
Status = on
File = default_config
 
[ POLICE2 ]
Status = on
File = default_config
 
[ POLICE3 ] // EFLC
Status = on
File = default_config
 
[ POLICE4 ] // EFLC
Status = on
File = default_config
 
[ POLICEB ] // EFLC
Status = on
File = default_config
 
[ POLPATRIOT ]
Status = on
File = default_config
 
[ PSTOCKADE ]
Status = on
File = default_config

 

Nothing more, please help? :)

 

Thats because u have to make a els folder and put in gta4 main then copy the default config that comes with els and place it in the there once done there rename the default to police then u can change the settings hope this helps

Share this comment


Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×