I cant find ***.fx file [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
Dark117

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

Post 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.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

You need to create an fx file

Post 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
Dark117

Post 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.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Visual Munge doesn't create an fx file for you

Post 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
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Post by Xavious »

One question: Why do you need to post screenies?
Hebes24
Sith Master
Sith Master
Posts: 2594
Joined: Sat Jun 03, 2006 5:15 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: In An Epic Space Battle!
Contact:

Post by Hebes24 »

To make sure he wasn't just overlooking it.
Dark117

Post 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
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Creating an fx file

Post 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.
Dark117

Post 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.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Changing the color of rain

Post 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
Last edited by AceMastermind on Sun Nov 26, 2006 5:31 pm, edited 1 time in total.
Dark117

Post by Dark117 »

K thank you ace mastermind :atatpilot:

EDIT
whats with dah added } at the end? do i need to include tht?
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

It was a typo, please disregard it

Post 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".
Hebes24
Sith Master
Sith Master
Posts: 2594
Joined: Sat Jun 03, 2006 5:15 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: In An Epic Space Battle!
Contact:

Post 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....
Dark117

Post 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...
Post Reply