Water

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
Thire
Major
Major
Posts: 510
Joined: Mon Jun 26, 2006 2:27 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Water

Post by Thire »

I'm doing something wrong, I try and I try, but water doesn't seem to show up in my map. :(

I'm not really sure what the problem is, this is my first map, so I couldn't know a whole lot anyway. Please forgive me for saying this, but I don't want to have people asking what I'm doing step-by-step, I just want a decent tutorial on how to add water please. :(
Because my map needs to be covered in it.
t551
General
General
Posts: 791
Joined: Sat Jul 16, 2005 3:23 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: Water

Post by t551 »

Go to http://www.swbffiles.com, and search for tutorial in the swbf1 section. You will find a file called star wars battlefront tutorial, download it and open the .chm file. One of the topics covered in it is adding water to maps. The tutorial itse'f is for SWBF 1, but the principle should be the same.
Guest

RE: Water

Post by Guest »

hey dude, dont get confused, the link he gave you does not work! the correct link is: http://starwarsbattlefront.filefront.com/ Go to that, then click Browse files archive down at the bottom of Star Wars Battlefront Files Latest 30 Files this Week, then click on Star Wars Battlefront, then Tutorials, then the last file is Star Wars Battlefront Modding Tutorial. Download it, and your done.

P.S. The Water tutorial can be found in the Advanced section of the Tutorial. :wink:
t551
General
General
Posts: 791
Joined: Sat Jul 16, 2005 3:23 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: Water

Post by t551 »

Oooops. I did not actually mean for that to be a link. Sorry.
Thire
Major
Major
Posts: 510
Joined: Mon Jun 26, 2006 2:27 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Thire »

I downloaded it, and then tried opening it, and it said something like, action canceled. So, I don't want to have to download anything else. I just want someone to tell me, how to add water the proper way into my Starwars Battlefront 2 map.
t551
General
General
Posts: 791
Joined: Sat Jul 16, 2005 3:23 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by t551 »

Here is the section from the tutorial on adding water:

Adding Water (Different Methods)
By Jawa Killer, Dragonum and Rippentuck
For this tutorial I will use the water of Kashyyyk: Docks (kas2).Of course it can be other maps used as the base file.

Ok, at first you have to open your modid.req data (DataModID/worlds/ModID.req). Here you have to set your water textures!
Search down the column for:

REQN {
"texture"
"platform=pc"

and just put this part of kas2.req (Assets/Shipped Worlds/Kashyyyk) in:

(ATTENTION!!!!!! DON'T COPY THE TEXT BELOW! COPY IT FROM kas2.req BECAUSE ALL MUST BE IN THE RIGHT ORDER!!!!!!)

"water_bumpmap_0"
"water_bumpmap_1"
"water_bumpmap_2"
"water_bumpmap_3"
"water_bumpmap_4"
"water_bumpmap_5"
"water_bumpmap_6"
"water_bumpmap_7"
"water_bumpmap_8"
"water_bumpmap_9"
"water_bumpmap_10"
"water_bumpmap_11"
"water_bumpmap_12"
"water_bumpmap_13"
"water_bumpmap_14"
"water_bumpmap_15"

"water_normalmap_0"
"water_normalmap_1"
"water_normalmap_2"
"water_normalmap_3"
"water_normalmap_4"
"water_normalmap_5"
"water_normalmap_6"
"water_normalmap_7"
"water_normalmap_8"
"water_normalmap_9"
"water_normalmap_10"
"water_normalmap_11"
"water_normalmap_12"
"water_normalmap_13"
"water_normalmap_14"
"water_normalmap_15"

"water_specularmask_0"
"water_specularmask_1"
"water_specularmask_2"
"water_specularmask_3"
"water_specularmask_4"
"water_specularmask_5"
"water_specularmask_6"
"water_specularmask_7"
"water_specularmask_8"
"water_specularmask_9"
"water_specularmask_10"
"water_specularmask_11"
"water_specularmask_12"
"water_specularmask_13"
"water_specularmask_14"
"water_specularmask_15"
"water_specularmask_16"
"water_specularmask_17"
"water_specularmask_18"
"water_specularmask_19"
"water_specularmask_20"
"water_specularmask_21"
"water_specularmask_22"
"water_specularmask_23"
"water_specularmask_24"

Ok. Then scroll down to this section:

REQN {
"envfx"
-- "ModID"
}

This section calls the envfx (environment effects) and is called ModID.fx which has not been created at this time. So what to do??
Right! We need another .fx file to know what it does. We took Kashyyyk as the sample map so we have to go in the world folder of Kashyyyk (Assets/Shipped Worlds/Kashyyyk/World2)
and search for the kas2.fx file...got it? Ok, open it and look at what it does. If you don't understand, no problem. It's not necessary for now.
We don't have to change anything in this file, so we can just copy it into our world folder. But we aren't finish just yet.
You have this file in your folder and have to rename it because your ModID is not kas2 right? Rename the kas2.fx into ModID.fx.
Ok! Now open ModID.fx and scroll down to this section:

PC()
{
Tile(2.0,2.0);
MainTexture("kas2_water.tga");
LODDecimation(1);
RefractionColor(5, 217, 255, 255);
ReflectionColor(57,90,138,255);
UnderwaterColor(61, 124, 144, 128);
FresnelMinMax(0.3,0.6);
FarSceneRange(1500)

The file needs a texture called kas2_water.tga!
Now go to the Kashyyyk world folder and search for this .tga and copy it into your world folder!
Ok before you can say "YES! I GOT IT!", we have to copy the other necessary files!
Go to assets/shipped worlds/kashyyyk/effects and take all files with "water" in its name except waterspout.fx. For example these files:

water_specularmask_15.tga
water_normalmap_14.tga
water_normalmap_13.tga.option

Ok? ALL FILES ARE GOLDEN! Now you have to place your water using ZeroEdit:

1. Click on the section Water between Texture and Foliage
2. You see on the left side a box with fields to change. Make these changes:
width = "1" and depth = "1"
Layer = "1"
u vel = "0.02" and v vel = "0.02" (This helps to modify it for waves, if required)
u rept = "1" and v rept = "1"
texture = blank (Don't fill anything in there)
color = 0, 0, 200
alpha = 255 (Alpha is the transparency of the water. 0 = Invisible, 255 = Completely Visible)
glow = off
Add water as you would terrain or texture. Save world, munge and try it out!
Thire
Major
Major
Posts: 510
Joined: Mon Jun 26, 2006 2:27 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Thire »

Yes, but I've never modded for the BF1 game, I just want to know how to do it in BF2.

Not BF1, please.
User avatar
Dragonum
2nd Lieutenant
2nd Lieutenant
Posts: 405
Joined: Tue Nov 16, 2004 4:08 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Dragonum »

Thire wrote:Yes, but I've never modded for the BF1 game, I just want to know how to do it in BF2.

Not BF1, please.
its the same way for swbf2!
Thire
Major
Major
Posts: 510
Joined: Mon Jun 26, 2006 2:27 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Thire »

Dragonum wrote:
Thire wrote:Yes, but I've never modded for the BF1 game, I just want to know how to do it in BF2.

Not BF1, please.
its the same way for swbf2!
Oh it is?

I'm really sorry for that confusion then, I'm going over that now, but where do I get the water from? What level? I have to use one of the shipped levels right? I need my water to be nice and clear, do I get it from Naboo? Does that mean it will be dark? Or will it change according to lighting? :?

I'm so confused with these mod-tools!
Yocki

Post by Yocki »

why dont you do the same thing as i did? i added the kaskyyyk FX file and added all the kashyyyks folders(odf, effects, munged...)

I was also having this problem and i thought it was very dificult to add water to maps... but then i realized that was very simple...:D
Thire
Major
Major
Posts: 510
Joined: Mon Jun 26, 2006 2:27 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Thire »

Yocki wrote:why dont you do the same thing as i did? i added the kaskyyyk FX file and added all the kashyyyks folders(odf, effects, munged...)

I was also having this problem and i thought it was very dificult to add water to maps... but then i realized that was very simple...:D
Kashyyk FX file? What's that, and where is it?
Yocki

Post by Yocki »

is in the wolrd folder.
Post Reply