adding water to the map...i need help

Post everything from general questions, to modding questions, to map WIPs to releases. (SWBF1 only)

Moderator: Moderators

Post Reply
sandcrawler

adding water to the map...i need help

Post 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
User avatar
PR-0927
Old School Staff
Posts: 844
Joined: Fri Dec 31, 2004 9:15 pm
Location: Kent, OH, U.S.A.

Post by PR-0927 »

Is your .req file for your map set up to allow effects? This is needed!!

- Majin Revan
sandcrawler

Post 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"
}

}
Saturn_V
Emperor's Hand
Posts: 487
Joined: Sun Dec 26, 2004 12:11 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Post by Saturn_V »

You need to uncomment the envfx call, that is, remove the -- so that

REQN
{
"envfx"
-- "SDSM"
}

becomes

REQN
{
"envfx"
"SDSM"
}
User avatar
PR-0927
Old School Staff
Posts: 844
Joined: Fri Dec 31, 2004 9:15 pm
Location: Kent, OH, U.S.A.

Post 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
Saturn_V
Emperor's Hand
Posts: 487
Joined: Sun Dec 26, 2004 12:11 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Post 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.
sandcrawler

Post by sandcrawler »

it loads now...but as soon as i hit the spawn button it crashes
Saturn_V
Emperor's Hand
Posts: 487
Joined: Sun Dec 26, 2004 12:11 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Post by Saturn_V »

what changes have you made to the mission lua?
sandcrawler

Post by sandcrawler »

i haven't made any changed to the mission lua ...and i can't find the splog lol..
Darth-Derkie
1st Lieutenant
1st Lieutenant
Posts: 453
Joined: Thu Feb 03, 2005 6:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The Netherlands

Post by Darth-Derkie »

It's here C:\Program Files\LucasArts\Star Wars Battlefront\GameData And it's name is BFront.log not splog....
User avatar
PR-0927
Old School Staff
Posts: 844
Joined: Fri Dec 31, 2004 9:15 pm
Location: Kent, OH, U.S.A.

Post 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
sandcrawler

Post 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
User avatar
PR-0927
Old School Staff
Posts: 844
Joined: Fri Dec 31, 2004 9:15 pm
Location: Kent, OH, U.S.A.

Post by PR-0927 »

The BFront.txt file can be found in your Gamedata folder after using SPTest.exe.

It should work.

- Majin Revan
sandcrawler

Post 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
PaNzErgsp

Post by PaNzErgsp »

Move SP test to your lucas arts/Star Wars Battlefront\GameData folder then try it.
sandcrawler

Post 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
Post Reply