Custom lightning effects [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
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Custom lightning effects [Solved]

Post by Fiodis »

I recently edited the Force Lightning effect in Notepad to use a different texture and some other small changes. In-game, the effect doesn't show up, and I get this (which I think is related):

Code: Select all

Message Severity: 3
.\Source\HUDManager.cpp(619)
HUD unable to find HUD element type 0x16ce484a
Any fix?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Custom lightning effects

Post by AQT »

Does this force lightning effect have the same name as the stock one? Rename it too something else if it does. Is the .fx file in your side's effects folder and not Common\effects? Move it to your side's effects folder if it isn't already there.
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: Custom lightning effects

Post by Fiodis »

It has a different name, and it is in my side's effects folder. Do I need a custom ingame.lvl?
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Custom lightning effects

Post by kinetosimpetus »

What is the filename, and the first few lines in the file?
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: Custom lightning effects

Post by Fiodis »

com_sfx_hypnotize:
Hidden/Spoiler:
[code]LightningBolt("com_sfx_lightning")
{
Texture("com_sfx_flames1");
Width(0.5);
FadeTime(0.6);
BreakDistance(1.0);
SpreadFactor(0.8);
InterpolationSpeed(5.0);
MaxBranches(5);
NumChildren(5);
BranchFactor(0.15);
ChildWidth(0.4);
ChildTextureSize(2.0);
ChildSpreadFactor(1.0);
TextureSize(3.5);
Color(235,200,50,255);
ChildColor(235,200,50,255);
}
[/code]
[/size]
I have the necesary tga in the effects folder as well.
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Custom lightning effects

Post by kinetosimpetus »

Hidden/Spoiler:
[code]LightningBolt("com_sfx_hypnotize")
{
Texture("com_sfx_flames1");
Width(0.5);
FadeTime(0.6);
BreakDistance(1.0);
SpreadFactor(0.8);
InterpolationSpeed(5.0);
MaxBranches(5);
NumChildren(5);
BranchFactor(0.15);
ChildWidth(0.4);
ChildTextureSize(2.0);
ChildSpreadFactor(1.0);
TextureSize(3.5);
Color(235,200,50,255);
ChildColor(235,200,50,255);
}
[/code]
[/size]
try that
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: Custom lightning effects

Post by Fiodis »

:oops:

How could I have missed that.... It's working fine now, thanks.
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Custom lightning effects

Post by kinetosimpetus »

Hey, I missed it the first 5 or 7 tries... Glad to help. Intriguing file name too ',: ) for an unconventional weap?
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: Custom lightning effects [Solved]

Post by Fiodis »

Aye. Switches the team of an enemy unit, starts a timer, and at the end of the timer switches the unit back.
Post Reply