Page 1 of 1

New day Kamino crashes.

Posted: Fri Jan 07, 2011 8:51 am
by THEWULFMAN
I was making a day, non stormy version of kamino, for my TCW era mod, for random weather, but when i try to play it, it crashes with these errors. any ideas? I added nothing, just changed the .fx file, and the .sky file and added a light in ZE.
Hidden/Spoiler:
Message Severity: 3
C:\Battlefront2\main\RedEngineFL\Memory\RedMemory.cpp(561)
attempted to allocate from invalid heap -1

Message Severity: 3
C:\Battlefront2\main\RedEngineFL\Memory\RedMemory.cpp(538)
Allocating 728 bytes failed - no free blocks left in Heap -1 ()

Re: New day Kamino crashes.

Posted: Fri Jan 07, 2011 9:16 am
by Anakin
what have you changed?? try if you can open the dome.msh with the mshviewer and see the right sky. otherwise i don't know

Re: New day Kamino crashes.

Posted: Fri Jan 07, 2011 10:20 am
by Darth_Spiderpig
Anakin wrote:what have you changed?? try if you can open the dome.msh with the mshviewer and see the right sky. otherwise i don't know
The wrong sky dome mesh wouldn't crash the game with a RedMemory message.

RedMemory always means you try to load more stuff as the game can handle, try to remove some unneeded stuff, like the ocean waves....wait, any chance you put in an incredible amount of water instead of the animated ocean mesh? That could cause trouble, like immense trouble. :runaway:

Re: New day Kamino crashes.

Posted: Fri Jan 07, 2011 11:42 am
by DarthD.U.C.K.
a bit offtopic: does kamino use an animated oceanmesh? i was sure it was water.
anyway, if its really that much water and you changed the .sky-file-settings to something more resource-intensive it could be possible that its simply too much for battlefront now.

Re: New day Kamino crashes.

Posted: Fri Jan 07, 2011 1:10 pm
by THEWULFMAN
well, let us compare.

.fx before
Hidden/Spoiler:
Effect("ColorControl")
{
PS2()
{
Enable(1);
WorldBrightness(0.46);
WorldContrast(0.48);
WorldSaturation(0.65);
}
}

Effect("Wind")
{
Enable(1);
Velocity(1.0, 0.3);
VelocityRange(1.0);
VelocityChangeRate(0.1);
}

Effect("Precipitation")
{
Enable(1);
Type("Streaks");
Range(12.5);
Color(216, 220, 228);
VelocityRange(1.0);
ParticleDensityRange(0.0);
CameraCrossVelocityScale(0.2);
CameraAxialVelocityScale(1.0);

GroundEffect("com_sfx_rainsplash");
GroundEffectSpread(8);

PS2()
{
AlphaMinMax(0.8, 1.0);
ParticleSize(0.06);
ParticleDensity(80.0);
Velocity(8.0);
StreakLength(1.7);
GroundEffectsPerSec(7);
}
XBOX()
{
AlphaMinMax(0.2, 0.3);
ParticleSize(0.02);
ParticleDensity(256.0);
Velocity(9.0);
StreakLength(1.0);
GroundEffectsPerSec(15);
}
PC()
{
AlphaMinMax(0.3, 0.45);
ParticleSize(0.02);
ParticleDensity(256.0);
Velocity(9.0);
StreakLength(1.0);
GroundEffectsPerSec(15);
}
}

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");
}

Effect("Water")
{
// general parameters

Tile(4.0,4.0);
MainTexture("kam1_water_2");

FoamTexture("kam1_water");
FoamTile(5.0,5.0);

// ocean parameters
OceanEnable(1);
WindDirection(0.2,1.0);
WindSpeed(25.0);

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

// PS2 parameters
PS2()
{
Velocity(0.01,0.05);
PhillipsConstant(0.00001);
PatchDivisions(16,16);
LODDecimation(2);

MinDiffuseColor(32, 40, 32, 255);
MaxDiffuseColor(128, 130, 128, 255);
BorderDiffuseColor(160, 160, 160, 255);
SpecularColor(192, 192, 192, 192);
SpeckleSpecularColor(160, 160, 160, 255);
SpeckleAmbientColor(75, 75, 75, 255);
SpeckleTextures("water_specles0", "water_specles1", "water_specles2", "water_specles3");
SpeckleTile(5.0, 5.0);
SpeckleBlendSpeed(4.0);
SpeckleScrollSpeed(0.0,0.0);
SpeckleCoordShift(10.0,10.0);
LightAzimAndElev(1.0,0.0);
}

XBOX()
{
Velocity(0.001,0.005);
PhillipsConstant(0.00001);
PatchDivisions(16,16);
LODDecimation(2);
}

PC()
{
Velocity(0.001,0.005);
PhillipsConstant(0.00001);
PatchDivisions(16,16);
LODDecimation(2);
}

}

LightningBolt("skybolt")
{
Texture("lightning");
Width(30.0);
FadeTime(0.5);
BreakDistance(20.0);
TextureSize(30.0);
SpreadFactor(20.0);
MaxBranches(2.0);
BranchFactor(0.5);
BranchSpreadFactor(8);
BranchLength(80.0);
InterpolationSpeed(0.4);
NumChildren(1);
ChildBreakDistance(15.0);
ChildTextureSize(8.0);
ChildWidth(1.0);
ChildSpreadFactor(10.0);
Color(255,255,255,255);
ChildColor(255,255,255,150);
}

Effect("Blur")
{
PC()
{
Enable(0);
Mode(1)
ConstantBlend(0.44)
DownSizeFactor(0.2500)
}
XBOX()
{
Enable(0);
Mode(1)
ConstantBlend(0.44)
DownSizeFactor(0.2500)
}
}

Effect("hdr")
{
Enable(1)
}
.fx after
Hidden/Spoiler:
Effect("Water")
{
// general parameters

Tile(4.0,4.0);
MainTexture("kam1_water_2");

FoamTexture("kam1_water");
FoamTile(5.0,5.0);

// ocean parameters
OceanEnable(1);
WindDirection(0.2,1.0);
WindSpeed(12.0);

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

// PS2 parameters
PS2()
{
Velocity(0.01,0.05);
PhillipsConstant(0.00001);
PatchDivisions(16,16);
LODDecimation(2);

MinDiffuseColor(32, 40, 32, 255);
MaxDiffuseColor(128, 130, 128, 255);
BorderDiffuseColor(160, 160, 160, 255);
SpecularColor(192, 192, 192, 192);
SpeckleSpecularColor(160, 160, 160, 255);
SpeckleAmbientColor(75, 75, 75, 255);
SpeckleTextures("water_specles0", "water_specles1", "water_specles2", "water_specles3");
SpeckleTile(5.0, 5.0);
SpeckleBlendSpeed(4.0);
SpeckleScrollSpeed(0.0,0.0);
SpeckleCoordShift(10.0,10.0);
LightAzimAndElev(1.0,0.0);
}

XBOX()
{
Velocity(0.001,0.005);
PhillipsConstant(0.00001);
PatchDivisions(16,16);
LODDecimation(2);
}

PC()
{
Velocity(0.001,0.005);
PhillipsConstant(0.00001);
PatchDivisions(16,16);
LODDecimation(2);
}

}

Effect("hdr")
{
Enable(1)
DownSizeFactor(0.25)
NumBloomPasses(3)
MaxTotalWeight(1.0)
GlowThreshold(0.5)

GlowFactor(1.0)


}

Effect("blur")
{
Enable(0);
Mode(1)
ConstantBlend(0.25)
DownSizeFactor(0.25)
}

Effect("Shadow")
{
Enable(1)
BlurEnable(0)
Intensity(0.4)
}

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


SunFlare()
{
Angle(121.000000, -70.000000);
Color(140, 140, 184);
Size(9.0);
FlareOutSize(10.0);
NumFlareOuts(6);
InitialFlareOutAlpha(35);
HaloInnerRing(10, 60, 60, 255, 160);
HaloMiddleRing(20, 140, 140, 255, 80);
HaloOutterRing(40, 210, 210, 255, 0);
SpikeColor(120,120,255,128);
SpikeSize(16.0);
}
.sky before
Hidden/Spoiler:
SkyInfo()
{
Enable(1);
FogColor(0, 0, 0);
FogRange(400.0, 1356.0);

PS2()
{
NearSceneRange(0.8, 60.0, 90.0);
FarSceneRange(800.0);
NearSplitScreenRange(0.8, 60.0, 90.0);
FarSplitScreenRange(0.0);
}
PC()
{
NearSceneRange(60.000000, 200.000000, 80.000000, 250.000000);
FarSceneRange(300.0, 1000.0);
}
XBOX()
{
NearSceneRange(0.8, 60.0, 90.0);
FarSceneRange(800.0);
NearSplitScreenRange(0.8, 60.0, 90.0);
}
}

DomeInfo()
{
Texture("SKY_kam1.tga");
Angle(-90.000000);
Ambient(255.000000, 255.000000, 255.000000);
Softness(1);
SoftnessParam(60);
DomeModel()
{
Geometry("kam1_sky_dome");
}

DomeModel()
{
Geometry("kam1_city");
Offset(80.0);
MovementScale(0.995);
}

}
.sky after
Hidden/Spoiler:
SkyInfo()
{
Enable(1);
FogColor(0, 0, 0);
FogRange(400.0, 1356.0);

PS2()
{
NearSceneRange(0.8, 60.0, 90.0);
FarSceneRange(800.0);
NearSplitScreenRange(0.8, 60.0, 90.0);
FarSplitScreenRange(0.0);
}
PC()
{
NearSceneRange(60.000000, 200.000000, 80.000000, 250.000000);
FarSceneRange(300.0, 1000.0);
}
XBOX()
{
NearSceneRange(0.8, 60.0, 90.0);
FarSceneRange(800.0);
NearSplitScreenRange(0.8, 60.0, 90.0);
}
}

DomeInfo()
{
Texture("sky_tatooine2.tga");
Angle(-90.000000);
Ambient(255.000000, 255.000000, 255.000000);
Softness(1);
SoftnessParam(60);
DomeModel()
{
Geometry("tat2_sky_dome");
}

DomeModel()
{
Geometry("kam1_city");
Offset(80.0);
MovementScale(0.995);
}

}
:|