Can you change the color of force lightning

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

darthhalv
Private First Class
Posts: 88
Joined: Sun Dec 05, 2010 8:40 am
Projects :: No Mod project currently.
Games I'm Playing :: starwarsbattlefront2

Can you change the color of force lightning

Post 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. :D
User avatar
IronMan_MKII
Private Third Class
Posts: 47
Joined: Tue Jan 19, 2010 10:18 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany, Berlin

Re: Can you change the color of force lightning

Post 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.
Fusion
Gametoast Staff
Gametoast Staff
Posts: 2551
Joined: Sat Jun 24, 2006 4:16 pm

Re: Can you change the color of force lightning

Post 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.
User avatar
SAMofBIA
Major General
Major General
Posts: 649
Joined: Tue Jun 15, 2010 3:38 pm
Projects :: Nothing....nothing at all.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: MIA and not stopping in often anymore.

Re: Can you change the color of force lightning

Post by SAMofBIA »

i believe you can through the use of partical editor.
User avatar
Fiodis
Master of the Force
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

Post by Fiodis »

Particle Editor can't handle the lightning effect. You have to open it up in Notepad and edit the RGB values manually.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Can you change the color of force lightning

Post 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.
User avatar
SAMofBIA
Major General
Major General
Posts: 649
Joined: Tue Jun 15, 2010 3:38 pm
Projects :: Nothing....nothing at all.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: MIA and not stopping in often anymore.

Re: Can you change the color of force lightning

Post 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!
User avatar
Fiodis
Master of the Force
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

Post 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.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Can you change the color of force lightning

Post 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).
darthhalv
Private First Class
Posts: 88
Joined: Sun Dec 05, 2010 8:40 am
Projects :: No Mod project currently.
Games I'm Playing :: starwarsbattlefront2

Re: Can you change the color of force lightning

Post by darthhalv »

I can't change the color through the efx-file... I dont even know wich file to edit..
User avatar
Fiodis
Master of the Force
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

Post 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.
darthhalv
Private First Class
Posts: 88
Joined: Sun Dec 05, 2010 8:40 am
Projects :: No Mod project currently.
Games I'm Playing :: starwarsbattlefront2

Re: Can you change the color of force lightning

Post 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 :?
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

Re: Can you change the color of force lightning

Post 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. :cpu:
darthhalv
Private First Class
Posts: 88
Joined: Sun Dec 05, 2010 8:40 am
Projects :: No Mod project currently.
Games I'm Playing :: starwarsbattlefront2

Re: Can you change the color of force lightning

Post by darthhalv »

Couldn't edit the file myself... Any ideas :)
Hidden/Spoiler:
LightningBolt("com_sfx_lightning")
{
Texture("com_sfx_lightning");
Width(0.5);
FadeTime(0.6);
BreakDistance(1.0);
SpreadFactor(0.9);
InterpolationSpeed(5.0);
MaxBranches(3);
NumChildren(3);
BranchFactor(0.15);
ChildWidth(0.4);
ChildTextureSize(2.0);
ChildSpreadFactor(1.0);
TextureSize(3.5);
Color(130,170,255,250);
ChildColor(140,180,255,100);
}
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: Can you change the color of force lightning

Post by skelltor »

Color(130,170,255,250);
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.
Games I'm Playing :: starwarsbattlefront2

Re: Can you change the color of force lightning

Post 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 :D ?
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: Can you change the color of force lightning

Post by skelltor »

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.
Games I'm Playing :: starwarsbattlefront2

Re: Can you change the color of force lightning

Post 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);
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Can you change the color of force lightning

Post 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.
darthhalv
Private First Class
Posts: 88
Joined: Sun Dec 05, 2010 8:40 am
Projects :: No Mod project currently.
Games I'm Playing :: starwarsbattlefront2

Re: Can you change the color of force lightning

Post by darthhalv »

I just edited the com_sfx_lightning.fx file in the dataMAP/common/effects folder and saved it :?
Post Reply