- Joined
- Jan 13, 2008
- Messages
- 2,303
- Reaction score
- 6
- Points
- 38
- Location
- Atlanta, GA, USA, North America
Add another entry to the "list of strange bugs encountered/caused by Zatman." For some reason, any time I set the level of a particle stream on my vessel to something greater than 0, I get a CTD. I've verified that the level variable is receiving the correct value for what I'm doing. Here is the code defining the particle stream, and where level is set and modified:
Thanks for any help you can provide in solving this,
Matt
Code:
void prompad::clbkSetClassCaps(FILEHANDLE cfg)
{
...
exhaust.srcsize = 10;
exhaust.srcrate = 5000;
exhaust.srcspread = 0.25;
exhaust.growthrate = 5;
exhaust.v0 = 500;
exhaust.lifetime = 5;
exhaust.atmslowdown = 2.5;
exhaust.ltype = exhaust.DIFFUSE;
exhaust.levelmap = exhaust.LVL_SQRT;
exhaust.atmsmap = exhaust.ATM_PLOG;
exhaust.amin = 0.005;
exhaust.amax = 0.8;
level = 0;
AddParticleStream (&exhaust,_V(0,-10.5,0),_V(0,0,1),&level);
}
Code:
void Prompad::clbkPreStep(double simt, double simdt, double mjd)
{
launchSequence(simt);
if(stream)
{
pstreamManage();
}
}
Code:
void Prompad::pstreamManage(void)
{
level = (ves->GetAltitude()*-0.0025)+1;
//level = 0.1; [COLOR=Red]//when this is set to 0 (and un-commented, no CTD[/COLOR]
}
Matt