Page 1 of 1

I cant find ***.fx file [Solved]

Posted: Sun Nov 26, 2006 2:00 pm
by Dark117
Ive been PMing Hebes24 and he told me to add this into my ***.fx file located in BF2_Modtools/Data_***/Worlds/***/World1
Hidden/Spoiler:
[code]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);
}
}[/code]
I went into that directory to add the code above for rain and couldent find ***.fx (I know that *** means ModId). I simply cannot find the ***.fx file to place the rain code in. Hebes told me to Uncheak the box in folder options that said hide known file extentions. So i did so. I closed the folder and re-opened, even with that box uncheaked i couldent find the ***.fx file. Please help me.

Problem: The main Problem is thati cant find the ***.fx file to place the code for rain in. Would appreciate help. Thnaks in advance.

*ill post screenies later*

EDIT
Heres screenies i promised.

http://img161.imageshack.us/img161/3427 ... nfxhd9.jpg

http://img116.imageshack.us/img116/1619 ... nfxux7.jpg

http://img383.imageshack.us/img383/2200 ... nfxgm2.jpg

http://img383.imageshack.us/img383/1193 ... nfxoa3.jpg

oo and p/s is the ***.fx file created after munging and then its in there? or is it supposed to be there right now and i just cant see it / find it. Would appreciate some help.

You need to create an fx file

Posted: Sun Nov 26, 2006 2:21 pm
by AceMastermind
You will have to create an "ABC.fx" file if you don't have one and copy the necessary info into it.

*ABC = example modID

Posted: Sun Nov 26, 2006 2:30 pm
by Dark117
AceMastermind wrote:You will have to create an "ABC.fx" file if you don't have one...
Does the ***.fx file contain any information originaly, why dont i have one, so just make a notepad file and then rename the file extention to .fx and then open it in notepad and copy the rain code into it and then save it? (ill make sure it is in the correct folder.)
Is it akward for this to happen. Is it normal? Will it effect my map in anyway? Thanks for the help guys.
i might just stop crying but im not getting out of the corner if you know what i mean untill i understand the situation and how this will effect my map. This is hard on me.

Appreciate the help Ace.

Visual Munge doesn't create an fx file for you

Posted: Sun Nov 26, 2006 2:48 pm
by AceMastermind
The default template doesn't create an .fx file in anyone's "world1" folder.
You can just copy an ".fx" file from another folder somewhere, rename it to "ABC.fx" and delete everything in it, then copy the info into it that you need and put that "ABC.fx" file in your "world1" folder.

*ABC = example modID

Posted: Sun Nov 26, 2006 3:57 pm
by Xavious
One question: Why do you need to post screenies?

Posted: Sun Nov 26, 2006 4:10 pm
by Hebes24
To make sure he wasn't just overlooking it.

Posted: Sun Nov 26, 2006 5:04 pm
by Dark117
Thanks for the help everyone. Hebes, make sure you get your info right next time. You were mostly right but dont freak me out about the ***.fx file. Lol. Thanks everyone. Now just to find a .fx file somewhere... Wish you would give me a location i can grab one. Unless renaming the file extention to .fx owuld help...

Thnaks again everyone. :D

PS-Hebes- Nice new avatar =P

Creating an fx file

Posted: Sun Nov 26, 2006 5:14 pm
by AceMastermind
Dark117 wrote:Unless renaming the file extention to .fx owuld help...
Yes, you can just copy a file and change the file extension.

Posted: Sun Nov 26, 2006 5:17 pm
by Dark117
yeah i did that, now i have another question...

Effect("Precipitation")
{
Enable(1);
Type("Streaks");
Range(12.5);
Color(216, 220, 228);

that is part of the command line, i belive that color determines the coler of the rain, those 3 i belive are red green and ... wat is it? oo yeah blue.... and at those gammas make the rain transparent... Now lets sayi went red rain... i know i edited the color part of the scrip fr sure :roll: but i have a question, will it work? and also am i doing it right... and how would i do it =D i need to know this so i dont mess up.

Remember i want RED rain :twisted:

sry to be a pain in the ar's. (lol)


EDIT
I think i oculd figure out the number to make it red in any color pallete but i dont wanna mess it up.


EDIT2
apperently with some research i think the red hue i want is:
R-255
G-29
B-29

so then apperently the command line would be:

Effect("Precipitation")
{
Enable(1);
Type("Streaks");
Range(12.5);
Color(255, 29, 29);


Sorry bout' all the posts. Would that be correct? and would it work in-game.

Changing the color of rain

Posted: Sun Nov 26, 2006 5:26 pm
by AceMastermind
Dark117 wrote:Effect("Precipitation")
{
Enable(1);
Type("Streaks");
Range(12.5);
Color(216, 220, 228);


Remember i want RED rain
Try this, and if it doesn't work or doesn't look right then just uncomment the original line and delete or comment the custom line.

Code: Select all

Effect("Precipitation") 
{ 
Enable(1); 
Type("Streaks"); 
Range(12.5); 
//Color(216, 220, 228); 
Color(178, 34, 34);
You can find other colors here:
http://www.pitt.edu/~nisg/cis/web/cgi/rgb.html

Posted: Sun Nov 26, 2006 5:27 pm
by Dark117
K thank you ace mastermind :atatpilot:

EDIT
whats with dah added } at the end? do i need to include tht?

It was a typo, please disregard it

Posted: Sun Nov 26, 2006 5:37 pm
by AceMastermind
Dark117 wrote:whats with dah added } at the end? do i need to include tht?
No you don't need it, i removed it in my "edit".

Posted: Sun Nov 26, 2006 5:39 pm
by Hebes24
Yes, you need that. It closes the rain effect info, the one before it closes the PC section. :wink:

EDIT: never mind what I said about the extra bracket, I interpreted your question wrong

BTW, I said you could just make the file yourself....

Posted: Sun Nov 26, 2006 5:43 pm
by Dark117
true hebes... lol. But you never said i needed too... lol =D its okie. okie dokie.
in the original code there no } after color, its comes after the whole rain stuff.
In aces post after the 2 color lines he added a }
//color
color
} <------ That } incase you were wondering.


EDIT
O never mind, i just saw hebes's edit... Lol

Thanks guys...