Multiple world effects of the same type?
Moderator: Moderators
-
MetalcoreRancor
- Brigadier General

- Posts: 628
- Joined: Thu Jun 07, 2007 11:13 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Multiple world effects of the same type?
Yeah, I tried searching but couldn't find anything.
2 questions.
First is there a list of available types of effects for .fx, like precipitation or wind?
And question numero dose, is it POSSIBLE to have more then one effect running at a time?
I havent been able to run 2 precipitations or fogclouds.
2 questions.
First is there a list of available types of effects for .fx, like precipitation or wind?
And question numero dose, is it POSSIBLE to have more then one effect running at a time?
I havent been able to run 2 precipitations or fogclouds.
- trainmaster611
- Sith Lord

- Posts: 1779
- Joined: Thu Aug 24, 2006 5:22 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Building a railway to Coruscant
- Contact:
Re: Just a couple of questions about .fx effects
For number two, yeah its possible. The way I do it is I open the two FX files that I want to combine. Then I copy and paste the corresponding sections from one FX to the next. THen you open it in PE and do any cleaning up you need to do.
Just so you know what I mean by sections of an FX file
File is atat_explosion (its a BF1 effect but it is in BF2 also under a different name
The bolded area is a section. Each FX file file is actually made up of several different effects put together. What you're doing is your taking out one of those individual effects and copying it over to your other FX file.
Individual effects begin by the line ParticleEmitter("Whatever") and they end with the last } above the next ParticleEmitter line which signals the beginning of a new effect.
In this case, the individual effect bolded is ParticleEmitter("Explosion"). THe following effect is ParticleEmitter("Flames").
If you wanted to copy the explosion to another FX file, copy everything from ParticleEmitter("Explosion") to the } symbol right above ParticleEmitter("Flames"). Then paste that section at the end of your other FX file.
I know its an explosion but the same principles apply.
Does that make sense?
Just so you know what I mean by sections of an FX file
File is atat_explosion (its a BF1 effect but it is in BF2 also under a different name
Hidden/Spoiler:
Individual effects begin by the line ParticleEmitter("Whatever") and they end with the last } above the next ParticleEmitter line which signals the beginning of a new effect.
In this case, the individual effect bolded is ParticleEmitter("Explosion"). THe following effect is ParticleEmitter("Flames").
If you wanted to copy the explosion to another FX file, copy everything from ParticleEmitter("Explosion") to the } symbol right above ParticleEmitter("Flames"). Then paste that section at the end of your other FX file.
I know its an explosion but the same principles apply.
Does that make sense?
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Just a couple of questions about .fx effects
Train, he's not talking about particle effects, he's talking about sky .fx. And to answer the questions, no, I don't think there's a list out there (just look through the stock worlds' .fx files), and yes, you can add more than one .fx to the sky (look at the kamino1.fx for example).
-
MetalcoreRancor
- Brigadier General

- Posts: 628
- Joined: Thu Jun 07, 2007 11:13 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Just a couple of questions about .fx effects
Yes, I was reffering to the world's .fx, but that doesnt answer my question, unless I can add new effects via naming it like LightningBolt("skybolt")
I'm trying to throw in 2 felucia spores working at once, and a few different fog clouds going at once.
I'm trying to throw in 2 felucia spores working at once, and a few different fog clouds going at once.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Just a couple of questions about .fx effects
You can't rename the effects just to duplicate them; looking at them it appears as though they're strings that represent a certain kind of effect.
And a Felucia spore isn't a world .fx, (I'm not exactly sure what effect you're talking about, but it's not in the .fx file) so I would assume that it can be attached to an object and placed as many times as you want. Likewise, the fog in the .fx file represents the fog over the entire map. If you want specific areas of fog, you should probably just add in props with fog affects attached.
And a Felucia spore isn't a world .fx, (I'm not exactly sure what effect you're talking about, but it's not in the .fx file) so I would assume that it can be attached to an object and placed as many times as you want. Likewise, the fog in the .fx file represents the fog over the entire map. If you want specific areas of fog, you should probably just add in props with fog affects attached.
-
MetalcoreRancor
- Brigadier General

- Posts: 628
- Joined: Thu Jun 07, 2007 11:13 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Just a couple of questions about .fx effects
This would be the Spores.
Effect("Precipitation")
{
Enable(1);
Type("Quads");
Texture("dag1_mist");
ParticleSize(0.15);
Color(215, 255, 225);
Range(15.0);
Velocity(-1.3);
VelocityRange(1);
PS2()
{
ParticleDensity(18.0);
}
XBOX()
{
ParticleDensity(20.0);
}
PC()
{
ParticleDensity(100.0);
}
ParticleDensityRange(10.0);
CameraCrossVelocityScale(0.5);
CameraAxialVelocityScale(1.0);
AlphaMinMax(0.5, 0.9);
RotationRange(25);
}
I've got them floating upwards.
What I want to do is add another that will be going downwards, with a different tga to have it look different.
Also I tried adding dagobah mist but that didnt work since I dont know how
Effect("Precipitation")
{
Enable(1);
Type("Quads");
Texture("dag1_mist");
ParticleSize(0.15);
Color(215, 255, 225);
Range(15.0);
Velocity(-1.3);
VelocityRange(1);
PS2()
{
ParticleDensity(18.0);
}
XBOX()
{
ParticleDensity(20.0);
}
PC()
{
ParticleDensity(100.0);
}
ParticleDensityRange(10.0);
CameraCrossVelocityScale(0.5);
CameraAxialVelocityScale(1.0);
AlphaMinMax(0.5, 0.9);
RotationRange(25);
}
I've got them floating upwards.
What I want to do is add another that will be going downwards, with a different tga to have it look different.
Also I tried adding dagobah mist but that didnt work since I dont know how
-
BountyHunterV
Re: Just a couple of questions about .fx effects
good...this was another one of the things i was potentially worried aboutMaveritchell wrote:and yes, you can add more than one .fx to the sky (look at the kamino1.fx for example).
okay, so lets say i want to add both rain and snow to my map...do i just copy the .fx files from both mygeeto and kamino and put them together in my world's .fx file? and then of course there is splitting them up into regions...
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Just a couple of questions about .fx effects
To be honest, when I posted that, I was unclear on what you were asking. In light of knowing that you want to add say, two types of precipitation, I don't know if that's possible.
-
MetalcoreRancor
- Brigadier General

- Posts: 628
- Joined: Thu Jun 07, 2007 11:13 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Just a couple of questions about .fx effects
Oh. Bummer.
I guess I'll just have to keep trying and wait for someone who does know to post here in the mean time.
For the record, you can find my WIP topic labelled The Crazy Zone, for reference as to what Ive done.
I guess I'll just have to keep trying and wait for someone who does know to post here in the mean time.
For the record, you can find my WIP topic labelled The Crazy Zone, for reference as to what Ive done.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Just a couple of questions about .fx effects
Not sure what you're waiting for, since you said yourself that you couldn't do it. Like I said, it probably has to do with the fact that the different .fx are represented by specific strings, so that putting in two effects just makes the later effect overwrite the first.
-
BountyHunterV
Re: Just a couple of questions about .fx effects
crash, there goes my dream...
rain in the water zone, snow in the ice zone, lava embers in the fire zone, felucia fungal spores in the forest zone...ah well
rain in the water zone, snow in the ice zone, lava embers in the fire zone, felucia fungal spores in the forest zone...ah well
-
t551
- General

- Posts: 791
- Joined: Sat Jul 16, 2005 3:23 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Just a couple of questions about .fx effects
To just have two precipitations everywhere, and maybe in zones, try renaming the second precipitation to "Precipitation1" or something.
It may or may not work, it's just that "Precipitation" is probably not a constant type, since it's in quotes, which usually denotes a String variable.
Then again, I may just be crazy. Really what it all comes down to is that you can only go as far as you experiment. Change different things to see if you can get it to work, or at least fool the engine into making it work.
It may or may not work, it's just that "Precipitation" is probably not a constant type, since it's in quotes, which usually denotes a String variable.
Then again, I may just be crazy. Really what it all comes down to is that you can only go as far as you experiment. Change different things to see if you can get it to work, or at least fool the engine into making it work.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Just a couple of questions about .fx effects
That's what I was saying. Renaming it would probably just create something that the game wouldn't recognize, since it only recognizes the string "Precipitation" as having the properties of precipitation. But sure, try it if you haven't already. I was under the impression that you had.t551 wrote:It may or may not work, it's just that "Precipitation" is probably not a constant type, since it's in quotes, which usually denotes a String variable.
-
Caleb1117
- 2008 Most Original Avatar
- Posts: 3096
- Joined: Sun Aug 20, 2006 5:55 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: X-Fire: caleb1117 ಠ_ಠ
Re: Just a couple of questions about .fx effects
He did try that, and AFAIK it dodn't work.
-
Penguin
- Jedi Admin

- Posts: 2541
- Joined: Sun Mar 05, 2006 12:00 am
- Location: Australia
Re: Just a couple of questions about .fx effects
That's also what I said to him on Xfire, great minds think alike o.OMaveritchell wrote:That's what I was saying. Renaming it would probably just create something that the game wouldn't recognize, since it only recognizes the string "Precipitation" as having the properties of precipitation. But sure, try it if you haven't already. I was under the impression that you had.t551 wrote:It may or may not work, it's just that "Precipitation" is probably not a constant type, since it's in quotes, which usually denotes a String variable.
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Just a couple of questions about .fx effects
I'm just throwing this out there(I haven't tried it), but what if you tried listing 2 different effects under the same effect string like this(using 2 different "FogCloud" effects as example)
Hidden/Spoiler:
-
MetalcoreRancor
- Brigadier General

- Posts: 628
- Joined: Thu Jun 07, 2007 11:13 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Just a couple of questions about .fx effects
I just tried it, and got this thanks to xfire.
Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<ExceptionReport Version="4">
<Application Build="28220" Command=""C:\Program Files\LucasArts\Star Wars Battlefront II\GameData\BattlefrontII.exe" "/>
<OperatingSystem Type="2"><Version Major="5" Minor="1" Build="2600"/></OperatingSystem>
<Exception Code="C0000005" Address="0067B09D"><Module Section="0001" Offset="0027A09D" FileName="C:\Program Files\LucasArts\Star Wars Battlefront II\GameData\BattlefrontII.exe"/></Exception>
<Registers EAX="00006653" EBX="F4000000" ECX="000013AD" EDX="00006653" ESI="064A1B49" EDI="03070000" CS="001B" EIP="0067B09D" SS="0023" ESP="0869FF74" EBP="07B70030" DS="0023" ES="0023" FS="003B" GS="0000" Flags="00010203"/>
<BackTrace>
<Frame ProgramCounter="0067B09D" StackAddress="0869FF74" FrameAddress="07B70030">
<Module Section="0001" Offset="0027A09D" FileName="C:\Program Files\LucasArts\Star Wars Battlefront II\GameData\BattlefrontII.exe"/>
</Frame>
</BackTrace>
</ExceptionReport>- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Just a couple of questions about .fx effects
I'm almost afraid to ask what you did, but what did you try, and what is this "message", and what does Xfire have to do with world fx?
If you mean you tried what I suggested, were there any errors in the munge log or bfront2.log, did your game crash, can you give me more info to work with.
If you mean you tried what I suggested, were there any errors in the munge log or bfront2.log, did your game crash, can you give me more info to work with.
-
MetalcoreRancor
- Brigadier General

- Posts: 628
- Joined: Thu Jun 07, 2007 11:13 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: Just a couple of questions about .fx effects
Message Severity: 3
c:\battlefront2\main\pebblefl\common\PblConfig.h(30)
PblConfig: invalid config; 'DATA' chunk expected
chunk.GetId() == _ID( 'D', 'A', 'T', 'A' )
Message Severity: 3
c:\battlefront2\main\pebblefl\common\PblConfig.h(35)
PblConfig: invalid config; 'DATA' chunk with invalid string table
m_uiNumArgs*4 + uiStringTableLen <= CONFIG_MAX_DATA_ARGS*4
Bingo.
-Edit-
Here is the code I used in .fx
c:\battlefront2\main\pebblefl\common\PblConfig.h(30)
PblConfig: invalid config; 'DATA' chunk expected
chunk.GetId() == _ID( 'D', 'A', 'T', 'A' )
Message Severity: 3
c:\battlefront2\main\pebblefl\common\PblConfig.h(35)
PblConfig: invalid config; 'DATA' chunk with invalid string table
m_uiNumArgs*4 + uiStringTableLen <= CONFIG_MAX_DATA_ARGS*4
Bingo.
-Edit-
Here is the code I used in .fx
Code: Select all
Effect("Precipitation")
{
Enable(1);
Type("Quads");
Texture("fx_pollen");
Color(215, 255, 225);
Range(15.0);
Velocity(1.3);
VelocityRange(1);
GroundEffect("com_sfx_weap_incinerate_ord");
GroundEffectSpread(12);
PS2()
{
ParticleDensity(18.0);
}
XBOX()
{
ParticleDensity(20.0);
}
PC()
{
ParticleDensity(50.0);
GroundEffectsPerSec(5);
ParticleSize(0.05);
Velocity(2.3);
StreakLength(3.0);
}
ParticleDensityRange(10.0);
CameraCrossVelocityScale(0.5);
CameraAxialVelocityScale(1.0);
AlphaMinMax(0.5, 0.9);
RotationRange(25);
}
{
Enable(1);
Type("Quads");
Texture("fx_pollen");
Color(215, 255, 225);
Range(15.0);
Velocity(1.3);
VelocityRange(1);
GroundEffect("com_sfx_weap_incinerate_ord");
GroundEffectSpread(12);
PS2()
{
ParticleDensity(18.0);
}
XBOX()
{
ParticleDensity(20.0);
}
PC()
{
ParticleDensity(50.0);
GroundEffectsPerSec(5);
ParticleSize(0.05);
Velocity(2.3);
StreakLength(3.0);
}
ParticleDensityRange(10.0);
CameraCrossVelocityScale(0.5);
CameraAxialVelocityScale(1.0);
AlphaMinMax(0.5, 0.9);
RotationRange(25);
}- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Just a couple of questions about .fx effects
OK, so we know you can't have more than 1 of the same fx string, and we also know only 1 data chunk is allowed per string.
Now you could try putting the 2 fx in the same data chunk under the same fx string and see if that works.
In other words, you could try removing the first closing bracket and the second opening bracket, then munge and try it.
You might also be able to remove the second Enable(1); line, since both fx are in the same chunk, they might both be enabled from the first one.
*Once again i'm just throwing out stuff you could experiment with.
Now you could try putting the 2 fx in the same data chunk under the same fx string and see if that works.
In other words, you could try removing the first closing bracket and the second opening bracket, then munge and try it.
You might also be able to remove the second Enable(1); line, since both fx are in the same chunk, they might both be enabled from the first one.
*Once again i'm just throwing out stuff you could experiment with.
