Page 1 of 1
How do I add rain? (FAQ)
Posted: Mon Feb 18, 2008 5:07 pm
by tnt_1992
how do add rain?
Adding rain to your map
Posted: Mon Feb 18, 2008 5:25 pm
by Taivyx
1) Browse to BF2_ModTools\assets\worlds\KAM\world1
2) Copy kamino1.fx
3) Paste it into BF2_ModTools\data_ABC\worlds\ABC\world1
4) Rename kamino1.fx to ABC.fx (replace ABC with your 3 letter modID)
5) OPTIONAL: Open it up with wordpad.
These sections of defining values and functions are pretty easy to understand, but just for further reference, this is the code that calls for rain:
Code: Select all
Effect("Precipitation")
{
Enable(1);
Type("Streaks");
Range(12.5);
Color(216, 220, 228);
VelocityRange(1.0);
ParticleDensityRange(0.0);
CameraCrossVelocityScale(0.2);
CameraAxialVelocityScale(1.0);
GroundEffect("com_sfx_rainsplash");
GroundEffectSpread(8);
PS2()
{
AlphaMinMax(0.8, 1.0);
ParticleSize(0.06);
ParticleDensity(80.0);
Velocity(8.0);
StreakLength(1.7);
GroundEffectsPerSec(7);
}
XBOX()
{
AlphaMinMax(0.2, 0.3);
ParticleSize(0.02);
ParticleDensity(256.0);
Velocity(9.0);
StreakLength(1.0);
GroundEffectsPerSec(15);
}
PC()
{
AlphaMinMax(0.3, 0.45);
ParticleSize(0.02);
ParticleDensity(256.0);
Velocity(9.0);
StreakLength(1.0);
GroundEffectsPerSec(15);
}
}
You can safely omit the
XBOX and
PS2 blocks from the code above.
If you don't want the rain effect to show up inside your buildings or whatever then you'll need to set up rainshadow regions in ZeroEditor but you should not rotate them or else they may not work ingame.
Re: weather
Posted: Mon Feb 18, 2008 5:54 pm
by elfie
how do you change the rain color?
Re: weather
Posted: Mon Feb 18, 2008 5:57 pm
by tnt_1992
thx
do u have to add anything to the req
or lua?
i did what u said nothing happend
is it possialbe to add a sandstorm
Don't triplepost. The edit button is there for a reason. Thanks! -Staff
Re: weather
Posted: Mon Feb 18, 2008 8:35 pm
by elfie
Code: Select all
is it possialbe to add a sandstorm
you have to add dust in ZE using the geonosis assets. I put a sandstorm in my geonosis map.
http://www.gametoast.com/forums/viewtop ... 29&t=13072
Re: weather
Posted: Wed Feb 20, 2008 12:32 am
by tnt_1992
i did what u said to do with the rain and it didnt work. do i have to add any thing to the lua or req or ze???
Re: weather
Posted: Wed Feb 20, 2008 12:43 am
by woner11
Get a log for your map. That may explain what's going on with the rain. You might also have a simple typo. Recheck everything.

Re: weather
Posted: Wed Feb 20, 2008 12:47 am
by tnt_1992
every thing looks ok in the fx file
Re: weather
Posted: Wed Feb 20, 2008 11:44 pm
by woner11
Post a log. That might have something and post your fx. You might just not have recognized your typo.
Re: weather
Posted: Wed Feb 20, 2008 11:53 pm
by tnt_1992
i got it working just after i posted my last post. thx for the help.
Re: How do add rain? [Solved]
Posted: Mon May 17, 2010 5:03 am
by ZappelClone
uhm....i did exactly what you told me to like a 1000 times and my map is still crashing..i have absolutely no idea why.
i took the kamino1.fx put it in my world1 folder...renamed it to "TST.fx" munged and when i try to load the map it crashes.(actually iam not sure about the munge since you didnt mention one to be required)
anyway my mungelog says something like this:
Munging TST.req
0 Files moved.
Munging TST.req
The system cannot find the declared path.
0 Files moved.
the rest looks alright to me....any ideas? (btw iam actually german so i translated the log just incase it didnt turn out being the same style the original english mungelog is in...you now know why

)
EDIT: solved..i deleted everything else in the .fx except for the rain properties.
the rain is now ingame but without sound...but i guess the sound wasnt included in this tut though.
Re: How do add rain? [Solved]
Posted: Mon May 17, 2010 2:35 pm
by genaral_mitch
Read the rules, man.
Re: How do add rain? [Solved]
Posted: Mon May 17, 2010 5:23 pm
by AQT
^Topics in the SWBF2 Modding forum remain unlocked for a reason. ZappelClone did the right thing to bump a topic that covers the same problem as his, rather than creating a new one (meaing he used the Search function).
Re: How do add rain? (FAQ)
Posted: Tue May 18, 2010 2:54 pm
by genaral_mitch
Whoops, didn't see that.
Re: How do I add rain? (FAQ)
Posted: Sat Jul 10, 2010 5:54 pm
by Culvar
Do rain and fog mix? If I add them both to my .fx my map crashes. If I remove rain It'll work though.
Re: How do I add rain? (FAQ)
Posted: Sat Jul 02, 2011 2:26 pm
by ARCTroopaNate
When we munge what do we select? Thanks in advance.
Re: How do I add rain? (FAQ)
Posted: Sat Jul 02, 2011 2:43 pm
by Darth_Spiderpig
Common.
Re: How do I add rain? (FAQ)
Posted: Sat Jul 02, 2011 3:24 pm
by CalvaryCptMike
ARCTroopaNate wrote:When we munge what do we select? Thanks in advance.
Darth_Spiderpig wrote:Common.
Wait,

you don't need to munge with common checked, for
changes to the Worlds folder you don't need any of those boxes checked. Just run Visual Munge,
uncheck "Common" and munge away!

Re: How do I add rain? (FAQ)
Posted: Mon Jul 04, 2011 6:09 am
by Marth8880
CalvaryCptMike wrote:ARCTroopaNate wrote:When we munge what do we select? Thanks in advance.
Darth_Spiderpig wrote:Common.
Wait,

you don't need to munge with common checked, for
changes to the Worlds folder you don't need any of those boxes checked. Just run Visual Munge,
uncheck "Common" and munge away!

It certainly saves quite a large amount of time to munge without the
Common check box checked because the shaders and localization always take forever to munge.
Re: How do I add rain? (FAQ)
Posted: Sat May 20, 2017 7:46 pm
by Wolffe1138
What about the sound for the rain I got thunder sounds just not the rain, anyone mind helping?