Page 1 of 2
Can you change the color of force lightning
Posted: Thu Dec 16, 2010 7:32 am
by darthhalv
Hi I am working on a mod and i want to change the color of force lightning to red. Can this be done.

Re: Can you change the color of force lightning
Posted: Thu Dec 16, 2010 8:07 am
by IronMan_MKII
...OK i see you are new so please read the rules.
You cant just write a new topic with a question in this section where mods there are in progress are present.
If you have questions then please visit the swbf modding section.
@Staff:
Delete this topic please.
Re: Can you change the color of force lightning
Posted: Thu Dec 16, 2010 1:01 pm
by Fusion
No, I don't think I will delete this topic. I think I'll move it to the modding forum.
Mini-modderating others on this site is just as bad as posting a thread in the wrong forum, by the way.
Re: Can you change the color of force lightning
Posted: Thu Dec 16, 2010 4:22 pm
by SAMofBIA
i believe you can through the use of partical editor.
Re: Can you change the color of force lightning
Posted: Thu Dec 16, 2010 5:29 pm
by Fiodis
Particle Editor can't handle the lightning effect. You have to open it up in Notepad and edit the RGB values manually.
Re: Can you change the color of force lightning
Posted: Thu Dec 16, 2010 9:52 pm
by AceMastermind
com_sfx_lightning.fx happens to be one of those ODF/fx hybrids or simply an effect built with ODF-like properties, this type of effect is not compatible with Particle Editor.
Re: Can you change the color of force lightning
Posted: Thu Dec 16, 2010 10:15 pm
by SAMofBIA
that is very interesting! i wonder how they made the effect in the first place then.... anyway nice to know for future references!
Re: Can you change the color of force lightning
Posted: Fri Dec 17, 2010 7:52 am
by Fiodis
SAMofBIA wrote:that is very interesting! i wonder how they made the effect in the first place then.... anyway nice to know for future references!
You may as well wonder how they got certain odf lines to do certain things. The mod tools we have are not the same as those the developers used; they're a simplified version with a multitude of steps cut out for us.
Re: Can you change the color of force lightning
Posted: Fri Dec 17, 2010 11:19 am
by Maveritchell
Fiodis wrote:You may as well wonder how they got certain odf lines to do certain things. The mod tools we have are not the same as those the developers used; they're a simplified version with a multitude of steps cut out for us.
Without getting too far off-topic (and apologies to the OP), but the Mod Tools we have are probably exactly what the developers had - there's no reason to waste time developing a new set of tools to distribute as mod tools. We don't have all the assets, and we don't have the original code source, but our tools are the same (they probably also used several third-party tools, like XSI or Visual Studio, but all their in-house tools we likely have).
Re: Can you change the color of force lightning
Posted: Fri Apr 22, 2011 4:38 pm
by darthhalv
I can't change the color through the efx-file... I dont even know wich file to edit..
Re: Can you change the color of force lightning
Posted: Fri Apr 22, 2011 5:02 pm
by Fiodis
Why post a question and then wait several months before expanding on it? At any rate, you have the answer to your new question a couple posts up:
AceMastermind wrote:com_sfx_lightning.fx happens to be one of those ODF/fx hybrids or simply an effect built with ODF-like properties, this type of effect is not compatible with Particle Editor.
Re: Can you change the color of force lightning
Posted: Fri Apr 22, 2011 5:22 pm
by darthhalv
Fiodis wrote:Why post a question and then wait several months before expanding on it? At any rate, you have the answer to your new question a couple posts up:
I decided to stop playing this game but a few days ago I started playing again

Re: Can you change the color of force lightning
Posted: Sat Apr 23, 2011 10:02 am
by modmaster13
My suggestion is to find and open com_sfx_lightning.fx, look for "color" or something similar, If there are 3 different numbers (EX: 255, 255, 255) in order to change it to red, it must be "255, 0, 0".
Try it out. If you don't understand what i'm telling you, just post the com_sfx_lightning.fx and I'll take a look and guide you through this problem.

Re: Can you change the color of force lightning
Posted: Sun Apr 24, 2011 4:09 pm
by darthhalv
Couldn't edit the file myself... Any ideas
Re: Can you change the color of force lightning
Posted: Sun Apr 24, 2011 4:14 pm
by skelltor
Color(130,170,255,250);
ChildColor(140,180,255,100);
Its these two lines the fourth set of numbers is alpha.
Re: Can you change the color of force lightning
Posted: Sun Apr 24, 2011 4:18 pm
by darthhalv
skelltor wrote:Color(130,170,255,250);
ChildColor(140,180,255,100);
Its these two lines the fourth set of numbers is alpha.
Do you have any idea what to change

?
Re: Can you change the color of force lightning
Posted: Sun Apr 24, 2011 4:24 pm
by skelltor
I would try either 255, 0, 0, 255 or 255, 0, 0, 0 probobly the first one
Re: Can you change the color of force lightning
Posted: Sun Apr 24, 2011 4:53 pm
by darthhalv
skelltor wrote:I would try either 255, 0, 0, 255 or 255, 0, 0, 0 probobly the first one
Still the same color...
Code: Select all
LightningBolt("com_sfx_lightning")
{
Texture("com_sfx_lightning");
Width(0.5);
FadeTime(0.6);
BreakDistance(1.0);
SpreadFactor(0.8);
InterpolationSpeed(5.0);
MaxBranches(3);
NumChildren(3);
BranchFactor(0.15);
ChildWidth(0.4);
ChildTextureSize(2.0);
ChildSpreadFactor(1.0);
TextureSize(3.5);
Color(255,0,0,255);
ChildColor(255,0,0,255);
Re: Can you change the color of force lightning
Posted: Sun Apr 24, 2011 5:08 pm
by AQT
If it's still the same color after you clearly changed it, then how exactly are you using this file? Are you using it in a custom side? In this case, did you rename the file or not? Are you making a custom ingame.lvl with it? In this case, did you copy over the new .lvl into your map's addon directory and reference it your LUA files? Explain.
Re: Can you change the color of force lightning
Posted: Sun Apr 24, 2011 5:20 pm
by darthhalv
I just edited the com_sfx_lightning.fx file in the dataMAP/common/effects folder and saved it
