How i add water -1 reply

Please wait...

1z2x3c

The forums staffers think I'm Cool

50 XP

5th September 2006

0 Uploads

160 Posts

0 Threads

#1 12 years ago

:confused: How do i add water:confused: if i try to my game just crashes when i try to play:bawl:




AceMastermind

Star Wars 4 Life

50 XP

13th July 2006

0 Uploads

73 Posts

0 Threads

#2 12 years ago

How to add water to your map(ponds, lakes, rivers....etc): NOTE: "ABC" IS ONLY AN EXAMPLE OF A modID, your 3 letter name may be different. We will use the water of Kashyyyk: Docks (kas2), of course it can be other maps used as the base file that also contain water. First you have to open your "ABC.req" file (data_ABC/worlds/ABC/world1/ABC.req),in that file is where you have to set your water textures! Open kas2.req (Assets/Worlds/Kas/world2) and scroll down the column for: REQN { "texture" "platform=pc" and just copy this part of kas2.req (Assets/Worlds/Kas/world2) and paste it in your ABC.req under "textures", then save it. "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" Open the file(ABC.req) again and scroll down to this section in your ABC.req: REQN { "envfx" -- "ABC" } This section calls the envfx (environment effects) and is called ABC.fx which has not been created yet. We need another .fx file to know what it does. We used Kashyyyk as the sample map so we have to go in the world folder of Kashyyyk (Assets/Worlds/Kas/World2) and search for the kas2.fx file, then copy it and paste it into your data_ABC/worlds/ABC/world1 folder. Now you have kas2.fx in your folder and have to rename it because your ModID(ABC) is not kas2 right? Rename the kas2.fx file to ABC.fx. Now open your ABC.fx file 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 (Assets/Worlds/Kas/world2) folder and search for this .tga and copy it into your data_ABC/worlds/ABC/world1 folder! You also have to copy the other necessary files! Go to assets/worlds/kas/effects/PC, and copy the whole "PC" folder which contains all of the files required for water to work, and paste it into your data_ABC/worlds/ABC/world1 folder! Now you have to place water on your map using ZeroEditor: 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 <------unused Add water as you would terrain or texture. Save world, munge and try it out!