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

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
User avatar
Superm9
Second Lance Corporal
Second Lance Corporal
Posts: 104
Joined: Thu Aug 23, 2007 8:41 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

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

Post 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!
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

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

Post 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.
User avatar
Superm9
Second Lance Corporal
Second Lance Corporal
Posts: 104
Joined: Thu Aug 23, 2007 8:41 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

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

Post 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!
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

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

Post 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.
User avatar
Superm9
Second Lance Corporal
Second Lance Corporal
Posts: 104
Joined: Thu Aug 23, 2007 8:41 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

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

Post 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!
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

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

Post by Sky_216 »

'bout fx - yes. I'll write up a tut for it in next few days.
User avatar
Superm9
Second Lance Corporal
Second Lance Corporal
Posts: 104
Joined: Thu Aug 23, 2007 8:41 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

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

Post 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!
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

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

Post by Maveritchell »

Rainshadow regions are not regions that can be dynamically deactivated - some regions can (like deathregions), but not rainshadow regions.
User avatar
Superm9
Second Lance Corporal
Second Lance Corporal
Posts: 104
Joined: Thu Aug 23, 2007 8:41 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

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

Post by Superm9 »

Curses! :shock:

What would you suggest, then?
Post Reply