Page 1 of 1

adding water to the map...i need help

Posted: Sun Feb 06, 2005 8:56 pm
by sandcrawler
i'm trying to add the water from kamino to my map but it keeps crashing...

my .fx file is:
Effect("Wind")
{
Enable(1);
Velocity(1.0, 0.3);
VelocityRange(1.0);
VelocityChangeRate(0.1);
}

Effect("Water")
{

// general parameters
PatchDivisions(8,8);
Tile(2.0,2.0);

// ocean parameters
OceanEnable(0);

// water event parameters
WaterRingColor(148, 170, 192,255);
WaterWakeColor(192, 192, 192,255);
WaterSplashColor((192, 192, 192,255);

DisableLowRes();

Velocity(0.01,0.02);
MainTexture("kam1_water_2.tga");
LODDecimation(1);

RefractionColor(101, 136, 140, 255);
ReflectionColor(150,150,150,150);
UnderwaterColor(242, 101, 34, 128);
FresnelMinMax(0.2,0.7)

//NormalMapTextures("water_normalmap_",16,8.0);
//BumpMapTextures("water_bumpmap_",16,8.0);
//SpecularMaskTextures("water_specularmask_",25, 2.0);
SpecularMaskTile(4.0,4.0);
SpecularMaskScrollSpeed(0.0,0.0);


}
Effect("Lightning")
{
Enable(1);
Color(255, 255, 255);
SunlightFadeFactor(0.1);
SkyDomeDarkenFactor(0.4);
BrightnessMin(1.0);
FadeTime(0.2);
TimeBetweenFlashesMinMax(3.0, 5.0);
TimeBetweenSubFlashesMinMax(0.01, 0.5);
NumSubFlashesMinMax(2, 5);
HorizonAngleMinMax(30, 60);
SoundCrack("kam_amb_thunder");
SoundSubCrack("kam_amb_thundersub");
}

and the lines i added to the .req file are:
REQN
{
"texture"
"kam1_water_2.tga"
}

The water load in the editor but when i mundge and go to test it it crashes

Posted: Sun Feb 06, 2005 10:11 pm
by PR-0927
Is your .req file for your map set up to allow effects? This is needed!!

- Majin Revan

Posted: Sun Feb 06, 2005 10:43 pm
by sandcrawler
umm i'm not sure this is my .req file

ucft
{
REQN
{
"texture"
"kam1_water_2.tga"
}
REQN
{
"config"
}

REQN
{
"class"
}

REQN
{
"texture"
"SDSM_map"
}


REQN
{
"texture"
"platform=pc"

}

REQN
{
"path"
"SDSM"
}
REQN
{
"congraph"
"SDSM"
}
REQN
{
"envfx"
-- "SDSM"
}
REQN
{
"world"
"SDSM"
}
REQN
{
"prop"
-- "SDSM"
}
REQN
{
"boundary"
"SDSM"
}
REQN
{
"config"
-- "flyerspray"
-- "walkerstomp"
-- "hailfire_wake"
-- "dustwake"
}

}

Posted: Sun Feb 06, 2005 11:26 pm
by Saturn_V
You need to uncomment the envfx call, that is, remove the -- so that

REQN
{
"envfx"
-- "SDSM"
}

becomes

REQN
{
"envfx"
"SDSM"
}

Posted: Sun Feb 06, 2005 11:27 pm
by PR-0927
REQN
{
"envfx"
-- "SDSM"
}

Take out the "--" infront of your ModID. Also, your .reqfile...needs more in it. Look at the Kamino .req file as a reference. You need all of those "water_bumpmap" and "water_spec" files listed and placed in your Effects folder.

- Majin Revan

Posted: Sun Feb 06, 2005 11:32 pm
by Saturn_V
"You need all of those "water_bumpmap" and "water_spec" files listed and placed in your Effects folder"

Well, in this case Sandcrawler has commented them out in the fx file... they are not used and so they do not need to be copied to the Effects folder.

Posted: Mon Feb 07, 2005 12:26 am
by sandcrawler
it loads now...but as soon as i hit the spawn button it crashes

Posted: Mon Feb 07, 2005 1:04 am
by Saturn_V
what changes have you made to the mission lua?

Posted: Mon Feb 07, 2005 12:10 pm
by sandcrawler
i haven't made any changed to the mission lua ...and i can't find the splog lol..

Posted: Mon Feb 07, 2005 12:23 pm
by Darth-Derkie
It's here C:\Program Files\LucasArts\Star Wars Battlefront\GameData And it's name is BFront.log not splog....

Posted: Mon Feb 07, 2005 12:40 pm
by PR-0927
Actually, it is BFront.txt, not BFront.log. I think you need the "water_bumpmap" and "water_spec" files. I used them. It makes the water look better. And, it may make it work.

Or, it could be an error unrelated to adding water. Is your map larger than 256 x 256 by any chance?

- Majin Revan

Posted: Tue Feb 08, 2005 12:23 am
by sandcrawler
ok i still can't find that file lol...and i'm pretty sure its the water because the map worked before i added it...i'm gona go and try to get it to work on a diffrent map now...to see if i can get it to work lol

Posted: Tue Feb 08, 2005 12:34 pm
by PR-0927
The BFront.txt file can be found in your Gamedata folder after using SPTest.exe.

It should work.

- Majin Revan

Posted: Tue Feb 08, 2005 8:01 pm
by sandcrawler
lol thats proly why i can't find it... SPtest.exe dosen't work says bink.dll is missing =\ i went into BF and fround it though lol

Posted: Tue Feb 08, 2005 11:18 pm
by PaNzErgsp
Move SP test to your lucas arts/Star Wars Battlefront\GameData folder then try it.

Posted: Tue Feb 08, 2005 11:47 pm
by sandcrawler
ok it works now thanks...i ran it and this is the error log it gave.

Opened logfile BFront.log 2005-02-08 1906

Message Severity: 2
.\movie\RedMovie.cpp(467)
Segment 0x750e1643 does not exist in movie 0xb86e8e36

Message Severity: 2
.\movie\RedMovie.cpp(467)
Segment 0xd9865a03 does not exist in movie 0xb86e8e36

Message Severity: 2
.\movie\RedMovie.cpp(467)
Segment 0x750e1643 does not exist in movie 0xb86e8e36