Can you change the color of force lightning
Moderator: Moderators
-
darthhalv
- Private First Class
- Posts: 88
- Joined: Sun Dec 05, 2010 8:40 am
- Projects :: No Mod project currently.
Can you change the color of force lightning
Hi I am working on a mod and i want to change the color of force lightning to red. Can this be done. 
- IronMan_MKII
- Private Third Class
- Posts: 47
- Joined: Tue Jan 19, 2010 10:18 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Germany, Berlin
Re: Can you change the color of force lightning
...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.
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.
-
Fusion
- Gametoast Staff

- Posts: 2551
- Joined: Sat Jun 24, 2006 4:16 pm
Re: Can you change the color of force lightning
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.
Mini-modderating others on this site is just as bad as posting a thread in the wrong forum, by the way.
- SAMofBIA
- Major General

- Posts: 649
- Joined: Tue Jun 15, 2010 3:38 pm
- Projects :: Nothing....nothing at all.
- xbox live or psn: No gamertag set
- Location: MIA and not stopping in often anymore.
Re: Can you change the color of force lightning
i believe you can through the use of partical editor.
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Can you change the color of force lightning
Particle Editor can't handle the lightning effect. You have to open it up in Notepad and edit the RGB values manually.
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Can you change the color of force lightning
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.
- SAMofBIA
- Major General

- Posts: 649
- Joined: Tue Jun 15, 2010 3:38 pm
- Projects :: Nothing....nothing at all.
- xbox live or psn: No gamertag set
- Location: MIA and not stopping in often anymore.
Re: Can you change the color of force lightning
that is very interesting! i wonder how they made the effect in the first place then.... anyway nice to know for future references!
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Can you change the color of force lightning
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.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!
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Can you change the color of force lightning
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).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.
-
darthhalv
- Private First Class
- Posts: 88
- Joined: Sun Dec 05, 2010 8:40 am
- Projects :: No Mod project currently.
Re: Can you change the color of force lightning
I can't change the color through the efx-file... I dont even know wich file to edit..
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Can you change the color of force lightning
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.
-
darthhalv
- Private First Class
- Posts: 88
- Joined: Sun Dec 05, 2010 8:40 am
- Projects :: No Mod project currently.
Re: Can you change the color of force lightning
I decided to stop playing this game but a few days ago I started playing againFiodis 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:
-
modmaster13
- General

- Posts: 777
- Joined: Wed Aug 18, 2010 4:23 pm
- xbox live or psn: KrypticcElementt
- Location: Twitter @_KrypticElement
- Contact:
Re: Can you change the color of force lightning
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.
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.
-
darthhalv
- Private First Class
- Posts: 88
- Joined: Sun Dec 05, 2010 8:40 am
- Projects :: No Mod project currently.
Re: Can you change the color of force lightning
Couldn't edit the file myself... Any ideas
Hidden/Spoiler:
- skelltor
- Sith

- Posts: 1431
- Joined: Fri Dec 11, 2009 6:24 pm
- Projects :: BFSM
- xbox live or psn: skelltor95
- Location: minisnowta
- Contact:
Re: Can you change the color of force lightning
Color(130,170,255,250);
ChildColor(140,180,255,100);
Its these two lines the fourth set of numbers is alpha.
ChildColor(140,180,255,100);
Its these two lines the fourth set of numbers is alpha.
-
darthhalv
- Private First Class
- Posts: 88
- Joined: Sun Dec 05, 2010 8:40 am
- Projects :: No Mod project currently.
Re: Can you change the color of force lightning
Do you have any idea what to changeskelltor wrote:Color(130,170,255,250);
ChildColor(140,180,255,100);
Its these two lines the fourth set of numbers is alpha.
- skelltor
- Sith

- Posts: 1431
- Joined: Fri Dec 11, 2009 6:24 pm
- Projects :: BFSM
- xbox live or psn: skelltor95
- Location: minisnowta
- Contact:
Re: Can you change the color of force lightning
I would try either 255, 0, 0, 255 or 255, 0, 0, 0 probobly the first one
-
darthhalv
- Private First Class
- Posts: 88
- Joined: Sun Dec 05, 2010 8:40 am
- Projects :: No Mod project currently.
Re: Can you change the color of force lightning
Still the same color...skelltor wrote:I would try either 255, 0, 0, 255 or 255, 0, 0, 0 probobly the first one
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);-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Can you change the color of force lightning
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.
-
darthhalv
- Private First Class
- Posts: 88
- Joined: Sun Dec 05, 2010 8:40 am
- Projects :: No Mod project currently.
Re: Can you change the color of force lightning
I just edited the com_sfx_lightning.fx file in the dataMAP/common/effects folder and saved it 
