Page 1 of 1

Loading a different .FX/.prp file - two questions

Posted: Mon Apr 27, 2009 7:44 pm
by Superm9
Hello all,

I have two slightly different questions reguarding loading a different .fx and/or a different .prp file within the same Data_MODID folder:

1. Is it possible to load a different .fx file partway through a map (e.g., have a campaign script where the .fx file that starts out has rain in it, but on the completion of a certain objective it loads a different .fx file that doesn't have rain in it, and it stops raining).

2. Is it possible to load a different .fx and/or a different .prp file between maps? (e.g, have the clone wars era have super dense foliage and be raining, and have the GCW era have a different .prp file and a different .fx file (which might give it less dense foliage and no rain).

If either of these two options are possible (or both), please post explainations/how-tos.

Thanks!

Re: Loading a different .FX/.prp file - two questions

Posted: Mon Apr 27, 2009 7:49 pm
by Frisbeetarian
1. Regardless of whether you are able to do exactly that, you could just active a big rain shadow region over the whole map to make it stop raining.
2. I'm pretty sure, but I can't give you a step by step how-to.

Re: Loading a different .FX/.prp file - two questions

Posted: Tue Apr 28, 2009 6:22 am
by Superm9
1. Thanks! That will give me the same effect that I want. To activate/disable the Rainshadow region within the .LUA, what command would I use - DisableRegion/ActivateRegion?

2. The main thing that I want with this question is whether or not I can have one era of the map be raining, with dense foliage, and the next era be snowing, with less dense foliage - therefore I can't just activate a rain shadow like the first question. Any ideas on how to do this?

Thanks!

Re: Loading a different .FX/.prp file - two questions

Posted: Tue Apr 28, 2009 7:20 am
by Sky_216
Fx different between eras is a definite yes (I use random fx, but the same principle applies).
Foliage I'll have to look into, in theory it should work in exactly the same way. I'll report back when it's been tested.

Re: Loading a different .FX/.prp file - two questions

Posted: Thu Apr 30, 2009 4:52 pm
by Superm9
Any updates? Is enableRegion/DisableRegion the right pair of LUA commands to use in order to enable/disable the rainshadow region? Has anyone come up with a method of loading a different .fx file with each LUA file (the .prp question isn't as important)?

Thanks!

Re: Loading a different .FX/.prp file - two questions

Posted: Thu Apr 30, 2009 5:28 pm
by Sky_216
'bout fx - yes. I'll write up a tut for it in next few days.

Re: Loading a different .FX/.prp file - two questions

Posted: Tue May 05, 2009 3:35 pm
by Superm9
Has anyone actually tested using DeactivateRegion on a rainshadow region partway through a map (to turn the rain back on)? Because I tried it, and it didn't do anything...

Any thoughts?

Thanks!

Re: Loading a different .FX/.prp file - two questions

Posted: Tue May 05, 2009 3:52 pm
by Maveritchell
Rainshadow regions are not regions that can be dynamically deactivated - some regions can (like deathregions), but not rainshadow regions.

Re: Loading a different .FX/.prp file - two questions

Posted: Wed May 06, 2009 6:31 am
by Superm9
Curses! :shock:

What would you suggest, then?