Page 1 of 1

Yavin Water crashes [Solved]

Posted: Sun Jun 13, 2010 10:07 am
by Aman/Pinguin
Heyho,

I'm trying to get water into my new map and went trough every single step more than 10 times but it seems I still missed something. My Map crashes always when I look at the direction of the water and the Bfront2.log shows nothing wrong.

BTC.fx (water part copied from BF2_ModTools\assets\worlds\YAV\world1\yavin1.fx)
Hidden/Spoiler:
[code]Effect("ColorControl")
{
Enable(1);
WorldBrightness(0.5);
WorldContrast(0.5);
WorldSaturation(0.5);
GammaBrightness(0.5);
GammaContrast(0.5);
GammaHue(0.5);
GammaColorBalance(0.5);

}

Effect("Godray")
{
Enable(1);
MaxGodraysInWorld(5000);
MaxGodraysOnScreen(500);
OffsetAngle(0.000000);
DustVelocity(0.0, -0.1, 0.0);
MaxViewDistance(150);
}

Effect("FogCloud")
{
Enable(1);
Texture("fluffy");
Range(85.0, 110.0);
Color(168, 172, 180, 128);
Velocity(3.0, 0.0);
Rotation(0.05);
Height(16.0);
ParticleSize(28.0);
ParticleDensity(90.0);
}

Effect("Water")
{
PatchDivisions(8,8);
Tile(2.0,2.0);

OceanEnable(0);

WaterRingColor(148, 170, 192,255);
WaterWakeColor(192, 192, 192,255);
WaterSplashColor((192, 192, 192,255);

DisableLowRes();

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

RefractionColor(101, 136, 140, 255);
ReflectionColor(150,150,150,150);
UnderwaterColor(128, 130, 128, 64);
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("Blur")
{
Enable(1);
Mode(1)
ConstantBlend(0.3)
DownSizeFactor(0.25)
}

Effect("MotionBlur")
{
Enable(1);
}

Effect("ScopeBlur")
{
Enable(1);
}

SunFlare()
{
Angle(115.000000, -20.000000);
Color(255, 255, 255);
Size(5.0);
FlareOutSize(20.0);
NumFlareOuts(40);
InitialFlareOutAlpha(70);
HaloInnerRing(0.0, 255, 255, 255, 255);
HaloMiddleRing(10.0, 255, 200, 0, 255);
HaloOutterRing(30.0, 255, 127, 0, 0);
SpikeColor(230,230,0,128);
SpikeSize(20.0);
}

[/code][/size]
BTC.req (water part copied from BF2_ModTools\assets\worlds\YAV\world1\yav1.req)
Hidden/Spoiler:
[code]ucft
{
REQN
{
"config"
}

REQN
{
"texture"
"BTP_map"
"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"
"btp_water"
}


REQN
{
"path"
"BTP"
}
REQN
{
"congraph"
"BTP"
}
REQN
{
"envfx"
"BTP"
}
REQN
{
"world"
"BTP"
}
REQN
{
"prop"
"BTP"
}
REQN
{
"class"
"bluelight"
"redlight"
"greenlight"
"whitelight"
}
REQN
{
"config"
"flyerspray"
"walkerstomp"
"hailfire_wake"
}
REQN
{
"lvl"
"BTP_conquest"
}
}[/code][/size]
Settings in ZE
Hidden/Spoiler:
Image
btp_water.tga, water_bumpmap_#.tga, water_normalmap_#.tga and water_specularmask_#.tga are located at BF2_ModTools\data_BTP\Worlds\BTP\effects\PC

I'm kinda frustrated right now so let's hope someone finds my mistake. :wink:

Re: Yavin Water crashes

Posted: Sun Jun 13, 2010 11:20 am
by Maveritchell
You list your texture name as "btp_water.tga," and your folder hierarchy includes "BTP," but your .fx file calls for a "btc_water" and your files are all named "btc_". Make sure your prefixes are correct.

Re: Yavin Water crashes

Posted: Sun Jun 13, 2010 12:11 pm
by Aman/Pinguin
Ouch. Seems I got confused at some point with the 3-Letter-Name with my old map (PTC) and didn't noticed it at all. Thanks Mav'. >.<

Re: Yavin Water crashes

Posted: Sun Jun 13, 2010 12:20 pm
by Maveritchell
Typos always are the worst kind of bug, especially once you get proficient with your tools (as I know you are).