Author Topic: having problems with new car  (Read 676 times)

i made a car and it has major problems
when it turns the whole vehicle gets on two wheels (the side its turning on)
and i cant paint it (yes i went into the server.cs and made paintable = true but it wont let me paint it no matter what.
 can i please get some help ASAP


maybe paintable = 1;?


neither worked...
here's .cs
seems like the whole script is a fail
Code: [Select]
//Car
datablock AudioProfile(fastImpactSound)
{
   filename    = "./sound/fastimpact.WAV";
   description = AudioDefault3d;
   preload = true;
};
datablock AudioProfile(slowImpactSound)
{
   filename    = "./sound/slowimpact.wav";
   description = AudioDefault3d;
   preload = true;
};

datablock WheeledVehicleTire(CarTire)
{
   // Tires act as springs and generate lateral and longitudinal
   // forces to move the vehicle. These distortion/spring forces
   // are what convert wheel angular velocity into forces that
   // act on the rigid body.
   shapeFile = "./Cartire.dts";

mass = 10;
    radius = 1;
    staticFriction = 8;
   kineticFriction = 18;
   restitution = 0.5;

   // Spring that generates lateral tire forces
   lateralForce = 18000;
   lateralDamping = 4000;
   lateralRelaxation = 0.01;

   // Spring that generates longitudinal tire forces
   longitudinalForce = 14000;
   longitudinalDamping = 2000;
   longitudinalRelaxation = 0.01;
};

datablock WheeledVehicleData(CarVehicle)
{
category = "Vehicles";
displayName = " ";
shapeFile = "./Car.dts"; //"~/data/shapes/skivehicle.dts"; //
emap = true;
minMountDist = 3;
  
   numMountPoints = 4;
   mountThread[0] = "sit";
   mountThread[1] = "sit";
   mountThread[2] = "sit";
   mountThread[3] = "sit";





maxDamage = 200.00;
destroyedLevel = 200.00;
energyPerDamagePoint = 160;
speedDamageScale = 1.04;
collDamageThresholdVel = 20.0;
collDamageMultiplier   = 0.02;

massCenter = "0 0 -1";
   //massBox = "2 5 1";

maxSteeringAngle = 0.7785;  // Maximum steering angle, should match animation
integration = 4;           // Force integration time: TickSec/Rate
tireEmitter = CarTireEmitter; // All the tires use the same dust emitter

// 3rd person camera settings
cameraRoll = false;         // Roll the camera with the vehicle
cameraMaxDist = 13;         // Far distance from vehicle
cameraOffset = 7.5;        // Vertical offset from camera mount point
cameraLag = 0.0;           // Velocity lag of camera
cameraDecay = 0.75;        // Decay per sec. rate of velocity lag
cameraTilt = 0.4;
   collisionTol = 0.1;        // Collision distance tolerance
   contactTol = 0.1;

useEyePoint = false;

defaultTire = CarTire;
defaultSpring = CarSpring;
flatTire = CarFlatTire;
flatSpring = CarFlatSpring;

   numWheels = 4;

// Rigid Body
mass = 800;
density = 6.0;
drag = 1.6;
bodyFriction = 0.6;
bodyRestitution = 0.6;
minImpactSpeed = 10;        // Impacts over this invoke the script callback
softImpactSpeed = 10;       // Play SoftImpact Sound
hardImpactSpeed = 15;      // Play HardImpact Sound
groundImpactMinSpeed    = 10.0;

// Engine
engineTorque = 5000; //4000;       // Engine power
engineBrake = 8000;         // Braking when throttle is 0
brakeTorque = 80000;        // When brakes are applied
maxWheelSpeed = 50;        // Engine scale by current speed / max speed


rollForce = 900;
yawForce = 600;
pitchForce = 1000;
rotationalDrag = 0.2;
// Energy
maxEnergy = 100;
jetForce = 3000;
minJetEnergy = 30;
jetEnergyDrain = 2;

   isSled = false;


splash = CarSplash;
splashVelocity = 4.0;
splashAngle = 67.0;
splashFreqMod = 300.0;
splashVelEpsilon = 0.60;
bubbleEmitTime = 1.4;
splashEmitter[0] = CarFoamDropletsEmitter;
splashEmitter[1] = CarFoamEmitter;
splashEmitter[2] = CarBubbleEmitter;
mediumSplashSoundVelocity = 10.0;  
hardSplashSoundVelocity = 20.0;  
exitSplashSoundVelocity = 5.0;

softImpactSound = slowImpactSound;
hardImpactSound = fastImpactSound;
justcollided = 0;

   uiName = "Car";
rideable = true;
lookUpLimit = 0.65;
lookDownLimit = 0.45;

paintable = 1;
  
   damageEmitter[0] = CarBurnEmitter;
damageEmitterOffset[0] = "0.0 0.0 0.0 ";
damageLevelTolerance[0] = 0.99;

   damageEmitter[1] = CarBurnEmitter;
damageEmitterOffset[1] = "0.0 0.0 0.0 ";
damageLevelTolerance[1] = 1.0;

   numDmgEmitterAreas = 1;

   initialExplosionProjectile = CarExplosionProjectile;
   initialExplosionOffset = 0;         //offset only uses a z value for now

   burnTime = 4000;

   finalExplosionProjectile = CarFinalExplosionProjectile;
   finalExplosionOffset = 0.5;          //offset only uses a z value for now


   minRunOverSpeed    = 10;   //how fast you need to be going to run someone over (do damage)
   runOverDamageScale = 10;   //when you run over someone, speed * runoverdamagescale = damage amt
   runOverPushScale   = 1.2; //how hard a person you're running over gets pushed

   minContrailSpeed = 30;
};

datablock AudioProfile(CarExplosionSound)
{
   filename    = "./sound/jeepExplosion.wav";
   description = AudioDefault3d;
   preload = true;
};
//----------------------------------------------------------------------------
// Splash
//----------------------------------------------------------------------------
datablock ParticleData(CarSplashMist)
{
   dragCoefficient      = 2.0;
   gravityCoefficient   = -0.05;
   inheritedVelFactor   = 0.0;
   constantAcceleration = 0.0;
   lifetimeMS           = 400;
   lifetimeVarianceMS   = 100;
   useInvAlpha          = false;
   spinRandomMin        = -90.0;
   spinRandomMax        = 500.0;
   textureName          = "base/data/particles/cloud";
   colors[0]     = "0.7 0.8 1.0 1.0";
   colors[1]     = "0.7 0.8 1.0 0.5";
   colors[2]     = "0.7 0.8 1.0 0.0";
   sizes[0]      = 2.5;
   sizes[1]      = 2.5;
   sizes[2]      = 5.0;
   times[0]      = 0.0;
   times[1]      = 0.5;
   times[2]      = 1.0;
};

datablock ParticleEmitterData(CarSplashMistEmitter)
{
   ejectionPeriodMS = 5;
   periodVarianceMS = 0;
   ejectionVelocity = 3.0;
   velocityVariance = 2.0;
   ejectionOffset   = 1.0;
   thetaMin         = 85;
   thetaMax         = 85;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvances = false;
   lifetimeMS       = 250;
   particles = "CarSplashMist";

   uiName = "Car Splash Mist";
   emitterNode = FifthEmitterNode;
};


datablock ParticleData(CarBubbleParticle)
{
   dragCoefficient      = 0.0;
   gravityCoefficient   = -0.50;
   inheritedVelFactor   = 0.0;
   constantAcceleration = 0.0;
   lifetimeMS           = 400;
   lifetimeVarianceMS   = 100;
   useInvAlpha          = false;
   textureName          = "base/data/particles/cloud";
   colors[0]     = "0.7 0.8 1.0 0.4";
   colors[1]     = "0.7 0.8 1.0 0.4";
   colors[2]     = "0.7 0.8 1.0 0.0";
   sizes[0]      = 0.1;
   sizes[1]      = 0.3;
   sizes[2]      = 0.3;
   times[0]      = 0.0;
   times[1]      = 0.5;
   times[2]      = 1.0;
};

datablock ParticleEmitterData(CarBubbleEmitter)
{
   ejectionPeriodMS = 1;
   periodVarianceMS = 0;
   ejectionVelocity = 2.0;
   ejectionOffset   = 1.5;
   velocityVariance = 0.5;
   thetaMin         = 0;
   thetaMax         = 80;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvances = false;
   particles = "CarBubbleParticle";

   uiName = "Car Bubbles";
   emitterNode = FifthEmitterNode;
};

datablock ParticleData(CarFoamParticle)
{
   dragCoefficient      = 2.0;
   gravityCoefficient   = 1;
   inheritedVelFactor   = 0.0;
   constantAcceleration = 0.0;
   lifetimeMS           = 400;
   lifetimeVarianceMS   = 100;
   useInvAlpha          = false;
   spinRandomMin        = -90.0;
   spinRandomMax        = 500.0;
   textureName          = "base/data/particles/cloud";
   colors[0]     = "0.7 0.8 1.0 0.20";
   colors[1]     = "0.7 0.8 1.0 0.20";
   colors[2]     = "0.7 0.8 1.0 0.00";
   sizes[0]      = 1.2;
   sizes[1]      = 1.4;
   sizes[2]      = 2.6;
   times[0]      = 0.0;
   times[1]      = 0.5;
   times[2]      = 1.0;
};

datablock ParticleEmitterData(CarFoamEmitter)
{
   ejectionPeriodMS = 20;
   periodVarianceMS = 0;
   ejectionVelocity = 3.0;
   velocityVariance = 1.0;
   ejectionOffset   = 0.75;
   thetaMin         = 85;
   thetaMax         = 85;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvances = false;
   particles = "CarFoamParticle";

   uiName = "Car Foam";
   emitterNode = GenericEmitterNode;
};


datablock ParticleData( CarFoamDropletsParticle )
{
   dragCoefficient      = 1;
   gravityCoefficient   = 0.2;
   inheritedVelFactor   = 0.2;
   constantAcceleration = -0.0;
   lifetimeMS           = 600;
   lifetimeVarianceMS   = 0;
   textureName          = "base/data/particles/cloud";
   colors[0]     = "0.7 0.8 1.0 1.0";
   colors[1]     = "0.7 0.8 1.0 0.5";
   colors[2]     = "0.7 0.8 1.0 0.0";
   sizes[0]      = 0.8;
   sizes[1]      = 0.3;
   sizes[2]      = 0.0;
   times[0]      = 0.0;
   times[1]      = 0.5;
   times[2]      = 1.0;
};

datablock ParticleEmitterData( CarFoamDropletsEmitter )
{
   ejectionPeriodMS = 7;
   periodVarianceMS = 0;
   ejectionVelocity = 2;
   velocityVariance = 1.0;
   ejectionOffset   = 1.0;
   thetaMin         = 60;
   thetaMax         = 80;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvances = false;
   orientParticles  = true;
   particles = "CarFoamDropletsParticle";

   uiName = "Car Foam Droplets";
   emitterNode = GenericEmitterNode;
};


datablock ParticleData( CarSplashParticle )
{
   dragCoefficient      = 1;
   gravityCoefficient   = 0.2;
   inheritedVelFactor   = 0.2;
   constantAcceleration = -0.0;
   lifetimeMS           = 600;
   lifetimeVarianceMS   = 0;
   textureName          = "base/data/particles/cloud";
   colors[0]     = "0.7 0.8 1.0 1.0";
   colors[1]     = "0.7 0.8 1.0 0.5";
   colors[2]     = "0.7 0.8 1.0 0.0";
   sizes[0]      = 0.5;
   sizes[1]      = 0.5;
   sizes[2]      = 0.5;
   times[0]      = 0.0;
   times[1]      = 0.5;
   times[2]      = 1.0;
};

datablock ParticleEmitterData( CarSplashEmitter )
{
   ejectionPeriodMS = 1;
   periodVarianceMS = 0;
   ejectionVelocity = 3;
   velocityVariance = 1.0;
   ejectionOffset   = 0.0;
   thetaMin         = 60;
   thetaMax         = 80;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvances = false;
   orientParticles  = true;
   lifetimeMS       = 100;
   particles = "CarSplashParticle";

   uiName = "Car Splash";
   emitterNode = TenthEmitterNode;
};


///////////////////////////////////////////////////////////////////


datablock ParticleData(CarTireParticle)
{
   textureName          = "base/data/particles/chunk";

   dragCoefficient      = 0.0;
   gravityCoefficient   = 2.0;
   windCoefficient      = 0.0;

   inheritedVelFactor   = 0.0;
   constantAcceleration = 0.0;

   lifetimeMS           = 800;
   lifetimeVarianceMS   = 300;

   colors[0]     = "0 0 0 1"; //"0.46 0.36 0.26 1.0";
   colors[1]     = "0 0 0 0"; //"0.46 0.46 0.36 0.0";
   sizes[0]      = 0.25;
   sizes[1]      = 0.0;

   useInvAlpha = true;
};

datablock ParticleEmitterData(CarTireEmitter)
{
   ejectionPeriodMS = 3;
   periodVarianceMS = 0;

   ejectionVelocity = 5;
   velocityVariance = 3.0;

   ejectionOffset   = 0.10;
   thetaMin         = 10;
   thetaMax         = 30;
   phiReferenceVel  = 0;
   phiVariance      = 360;

   overrideAdvances = false;
   particles = "CarTireParticle";
};


datablock ParticleData(CarBurnParticle)
{
textureName          = "base/data/particles/cloud";
dragCoefficient      = 0.0;
gravityCoefficient   = -1.0;
inheritedVelFactor   = 0.0;
windCoefficient      = 0;
constantAcceleration = 3.0;
lifetimeMS           = 1200;
lifetimeVarianceMS   = 100;
spinSpeed     = 0;
spinRandomMin = -90.0;
spinRandomMax =  90.0;
useInvAlpha   = false;

colors[0] = "1   1   0.3 0.0";
colors[1] = "1   1   0.3 1.0";
colors[2] = "0.6 0.0 0.0 0.0";

sizes[0] = 0.0;
sizes[1] = 2.0;
sizes[2] = 1.0;

times[0] = 0.0;
times[1] = 0.2;
times[2] = 1.0;
};

datablock ParticleEmitterData(CarBurnEmitter)
{
   ejectionPeriodMS = 14;
   periodVarianceMS = 4;
   ejectionVelocity = 0;
   ejectionOffset   = 1.00;
   velocityVariance = 0.0;
   thetaMin         = 30;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;

   //lifetimeMS = 5000;
   particles = CarBurnParticle;  

   uiName = "Car Fire";
};


datablock ParticleData(CarTireDebrisTrailParticle)
{
dragCoefficient = 3.0;
windCoefficient = 0.0;
gravityCoefficient = -0.5;
inheritedVelFactor = 0.0;
constantAcceleration = 0.0;
lifetimeMS = 500;
lifetimeVarianceMS = 150;
spinSpeed = 10.0;
spinRandomMin = -50.0;
spinRandomMax = 50.0;
useInvAlpha = true;
animateTexture = false;
//framesPerSec = 1;

textureName = "base/data/particles/cloud";
//animTexName = "~/data/particles/cloud";

// Interpolation variables
colors[0] = "0.0 0.0 0.0 0.0";
colors[1] = "0.0 0.0 0.0 0.250";
   colors[2] = "0.0 0.0 0.0 0.0";

sizes[0] = 1.50;
sizes[1] = 2.50;
   sizes[2] = 3.50;

times[0] = 0.0;
times[1] = 0.1;
   times[2] = 1.0;
};

datablock ParticleEmitterData(CarTireDebrisTrailEmitter)
{
   ejectionPeriodMS = 90;
   periodVarianceMS = 0;
   ejectionVelocity = 0.0;
   velocityVariance = 0.0;
   ejectionOffset   = 1.0;
   thetaMin         = 0;
   thetaMax         = 0;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "CarTireDebrisTrailParticle";
};

datablock DebrisData(CarTireDebris)
{
   emitters = "CarTireDebrisTrailEmitter";

shapeFile = "./Cartire.dts";
lifetime = 2.0;
minSpinSpeed = -400.0;
maxSpinSpeed = 200.0;
elasticity = 0.5;
friction = 0.2;
numBounces = 3;
staticOnMaxBounce = true;
snapOnMaxBounce = false;
fade = true;

gravModifier = 2;
};

datablock ParticleData(CarExplosionParticle)
{
dragCoefficient = 3.0;
windCoefficient = 0.0;
gravityCoefficient = -0.5;
inheritedVelFactor = 0.0;
constantAcceleration = 0.0;
lifetimeMS = 1900;
lifetimeVarianceMS = 300;
spinSpeed = 10.0;
spinRandomMin = -50.0;
spinRandomMax = 50.0;
useInvAlpha = true;
animateTexture = false;
//framesPerSec = 1;

textureName = "base/data/particles/cloud";
//animTexName = "~/data/particles/cloud";

// Interpolation variables
colors[0] = "0.9 0.3 0.2 0.9";
colors[1] = "0.0 0.0 0.0 0.0";
sizes[0] = 4.0;
sizes[1] = 10.0;
times[0] = 0.0;
times[1] = 1.0;
};

datablock ParticleEmitterData(CarExplosionEmitter)
{
   ejectionPeriodMS = 7;
   periodVarianceMS = 0;
   lifeTimeMS   = 21;
   ejectionVelocity = 8;
   velocityVariance = 1.0;
   ejectionOffset   = 0.0;
   thetaMin         = 0;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "CarExplosionParticle";

   uiName = "Car Explosion";
   emitterNode = TenthEmitterNode;
};

datablock ParticleData(CarExplosionParticle2)
{
dragCoefficient = 0.1;
windCoefficient = 0.0;
gravityCoefficient = 2.0;
inheritedVelFactor = 0.0;
constantAcceleration = 0.0;
lifetimeMS = 1000;
lifetimeVarianceMS = 500;
spinSpeed = 10.0;
spinRandomMin = -50.0;
spinRandomMax = 50.0;
useInvAlpha = true;
animateTexture = false;
//framesPerSec = 1;

textureName = "base/data/particles/chunk";
//animTexName = "~/data/particles/cloud";

// Interpolation variables
colors[0] = "1.0 1.0 0.0 1.0";
colors[1] = "1.0 0.0 0.0 0.0";
sizes[0] = 0.5;
sizes[1] = 0.5;
times[0] = 0.0;
times[1] = 1.0;
};

datablock ParticleEmitterData(CarExplosionEmitter2)
{
   ejectionPeriodMS = 1;
   periodVarianceMS = 0;
   lifetimeMS       = 7;
   ejectionVelocity = 15;
   velocityVariance = 5.0;
   ejectionOffset   = 0.0;
   thetaMin         = 0;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "CarExplosionParticle2";

   uiName = "Car Explosion 2";
   emitterNode = TenthEmitterNode;
};


datablock ParticleData(CarExplosionParticle3)
{
dragCoefficient = 0.1;
windCoefficient = 0.0;
gravityCoefficient = 2.0;
inheritedVelFactor = 0.0;
constantAcceleration = 0.0;
lifetimeMS = 1000;
lifetimeVarianceMS = 500;
spinSpeed = 10.0;
spinRandomMin = -50.0;
spinRandomMax = 50.0;
useInvAlpha = true;
animateTexture = false;
//framesPerSec = 1;

textureName = "base/data/particles/star1";
//animTexName = "~/data/particles/cloud";

// Interpolation variables
colors[0] = "1.0 1.0 0.0 1.0";
colors[1] = "1.0 0.0 0.0 0.0";
sizes[0] = 20.0;
sizes[1] = 1.0;
times[0] = 0.0;
times[1] = 1.0;
};
thats the first half of .cs

here's second half:
Code: [Select]
datablock ParticleEmitterData(CarExplosionEmitter3)
{
   ejectionPeriodMS = 1;
   periodVarianceMS = 0;
   lifetimeMS       = 50;
   ejectionVelocity = 15;
   velocityVariance = 5.0;
   ejectionOffset   = 0.0;
   thetaMin         = 0;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "CarExplosionParticle3";

   uiName = "Car Explosion 3";
   emitterNode = FourtiethEmitterNode;
};

datablock ExplosionData(CarExplosion)
{
   //explosionShape = "";
   lifeTimeMS = 150;

   soundProfile = CarExplosionSound;

   emitter[0] = CarExplosionEmitter;
   emitter[1] = CarExplosionEmitter2;
   //particleDensity = 30;
   //particleRadius = 1.0;

   debris = CarTireDebris;
   debrisNum = 3;
   debrisNumVariance = 0;
   debrisPhiMin = 0;
   debrisPhiMax = 360;
   debrisThetaMin = 40;
   debrisThetaMax = 85;
   debrisVelocity = 14;
   debrisVelocityVariance = 3;

   faceViewer     = true;
   explosionScale = "1 1 1";

   shakeCamera = true;
   camShakeFreq = "7.0 8.0 7.0";
   camShakeAmp = "1.0 1.0 1.0";
   camShakeDuration = 0.5;
   camShakeRadius = 15.0;

   // Dynamic light
   lightStartRadius = 14;
   lightEndRadius = 3;
   lightStartColor = "0.9 0.3 0.1";
   lightEndColor = "0 0 0";

   //impulse
   impulseRadius = 10;
   impulseForce = 500;

   //radius damage
   radiusDamage        = 30;
   damageRadius        = 3.5;
};

datablock ParticleData(CarDebrisTrailParticle)
{
dragCoefficient = 3.0;
windCoefficient = 0.0;
gravityCoefficient = -0.5;
inheritedVelFactor = 0.0;
constantAcceleration = 0.0;
lifetimeMS = 600;
lifetimeVarianceMS = 150;
spinSpeed = 10.0;
spinRandomMin = -50.0;
spinRandomMax = 50.0;
useInvAlpha = true;
animateTexture = false;
//framesPerSec = 1;

textureName = "base/data/particles/cloud";
//animTexName = "~/data/particles/cloud";

// Interpolation variables
colors[0] = "0.0 0.0 0.0 0.5";
colors[1] = "0.0 0.0 0.0 1.0";
   colors[2] = "0.0 0.0 0.0 0.0";

sizes[0] = 2.0;
sizes[1] = 5.0;
   sizes[2] = 5.0;

times[0] = 0.0;
times[1] = 0.1;
   times[2] = 1.0;
};

datablock ParticleEmitterData(CarDebrisTrailEmitter)
{
   ejectionPeriodMS = 15;
   periodVarianceMS = 0;
   ejectionVelocity = 8;
   velocityVariance = 1.0;
   ejectionOffset   = 1.0;
   thetaMin         = 40;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "CarDebrisTrailParticle";

   uiName = "Car Debris Trail";
   emitterNode = FifthEmitterNode;
};


datablock ParticleData(CarFinalExplosionParticle)
{
dragCoefficient = 1.0;
windCoefficient = 0.0;
gravityCoefficient = -0.5;
inheritedVelFactor = 0.0;
constantAcceleration = 0.0;
lifetimeMS = 1900;
lifetimeVarianceMS = 1000;
spinSpeed = 10.0;
spinRandomMin = -50.0;
spinRandomMax = 50.0;
useInvAlpha = true;
animateTexture = false;
//framesPerSec = 1;

textureName = "base/data/particles/cloud";
//animTexName = "~/data/particles/cloud";

// Interpolation variables
colors[0] = "0.0 0.0 0.0 0.5";
colors[1] = "0.0 0.0 0.0 1.0";
   colors[2] = "0.0 0.0 0.0 0.0";

sizes[0] = 5.0;
sizes[1] = 10.0;
   sizes[2] = 5.0;

times[0] = 0.0;
times[1] = 0.1;
   times[2] = 1.0;
};

datablock ParticleEmitterData(CarFinalExplosionEmitter)
{
   ejectionPeriodMS = 7;
   periodVarianceMS = 0;
   lifeTimeMS    = 21;
   ejectionVelocity = 8;
   velocityVariance = 1.0;
   ejectionOffset   = 0.0;
   thetaMin         = 10;
   thetaMax         = 40;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "CarFinalExplosionParticle";

   uiName = "Car Final Explosion";
   emitterNode = TwentiethEmitterNode;
};

datablock ParticleData(CarFinalExplosionParticle2)
{
dragCoefficient = 3.0;
windCoefficient = 0.0;
gravityCoefficient = 0.0;
inheritedVelFactor = 0.0;
constantAcceleration = 0.0;
lifetimeMS = 1000;
lifetimeVarianceMS = 500;
spinSpeed = 10.0;
spinRandomMin = -500.0;
spinRandomMax = 500.0;
useInvAlpha = false;
animateTexture = false;
//framesPerSec = 1;

textureName = "base/data/particles/cloud";
//animTexName = "~/data/particles/cloud";

// Interpolation variables
colors[0] = "1.0 0.5 0.0 1.0";
colors[1] = "1.0 0.0 0.0 0.0";
sizes[0] = 1.5;
sizes[1] = 2.5;
times[0] = 0.0;
times[1] = 1.0;
};

datablock ParticleEmitterData(CarFinalExplosionEmitter2)
{
   ejectionPeriodMS = 1;
   periodVarianceMS = 0;
   lifetimeMS       = 15;
   ejectionVelocity = 30;
   velocityVariance = 5.0;
   ejectionOffset   = 0.0;
   thetaMin         = 85;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "CarFinalExplosionParticle2";

   uiName = "Car Final Explosion 2";
   emitterNode = TenthEmitterNode;
};



datablock ParticleData(CarFinalExplosionParticle3)
{
dragCoefficient = 13.0;
windCoefficient = 0.0;
gravityCoefficient = 0.0;
inheritedVelFactor = 0.0;
constantAcceleration = 0.0;
lifetimeMS = 100;
lifetimeVarianceMS = 50;
spinSpeed = 10.0;
spinRandomMin = -500.0;
spinRandomMax = 500.0;
useInvAlpha = false;
animateTexture = false;
//framesPerSec = 1;

textureName = "base/data/particles/star1";
//animTexName = "~/data/particles/cloud";

// Interpolation variables
colors[0] = "1.0 0.5 0.0 1.0";
colors[1] = "1.0 0.0 0.0 0.0";
sizes[0] = 15;
sizes[1] = 0.5;

times[0] = 0.0;
times[1] = 1.0;
};

datablock ParticleEmitterData(CarFinalExplosionEmitter3)
{
   ejectionPeriodMS = 1;
   periodVarianceMS = 0;
   lifetimeMS       = 15;
   ejectionVelocity = 30;
   velocityVariance = 5.0;
   ejectionOffset   = 0.0;
   thetaMin         = 85;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "CarFinalExplosionParticle3";   

   uiName = "Car Final Explosion 3";
   emitterNode = TenthEmitterNode;
};




datablock WheeledVehicleSpring(CarSpring)
{
   // Wheel suspension properties
   length = 0.2; // Suspension travel
   force = 6000; //3000; // Spring force
   damping = 800; //600; // Spring damping
   antiSwayForce = 6; //3; // Lateral anti-sway force
};

AddDamageType("CarExplosion",   '<bitmap:add-ons/ci/carExplosion> %1',    '%2 <bitmap:add-ons/ci/carExplosion> %1');
datablock ProjectileData(CarExplosionProjectile)
{
   directDamage        = 0;
   radiusDamage        = 0;
   damageRadius        = 0;
   explosion           = CarExplosion;

   directDamageType  = $DamageType::CarExplosion;
   radiusDamageType  = $DamageType::CarExplosion;

   explodeOnDeath = 1;

   armingDelay         = 0;
   lifetime            = 10;
};

datablock DebrisData(CarDebris)
{
   emitters = "CarDebrisTrailEmitter";

shapeFile = "./Car.dts";
lifetime = 3.0;
minSpinSpeed = -500.0;
maxSpinSpeed = 500.0;
elasticity = 0.5;
friction = 0.2;
numBounces = 1;
staticOnMaxBounce = true;
snapOnMaxBounce = false;
fade = true;

gravModifier = 2;
};







datablock ExplosionData(CarFinalExplosion)
{
   //explosionShape = "";
   lifeTimeMS = 150;

   soundProfile = CarExplosionSound;
   
   emitter[0] = CarFinalExplosionEmitter3;
   emitter[1] = CarFinalExplosionEmitter2;

   particleEmitter = CarFinalExplosionEmitter;
   particleDensity = 20;
   particleRadius = 1.0;

   debris = CarDebris;
   debrisNum = 1;
   debrisNumVariance = 0;
   debrisPhiMin = 0;
   debrisPhiMax = 360;
   debrisThetaMin = 0;
   debrisThetaMax = 20;
   debrisVelocity = 18;
   debrisVelocityVariance = 3;

   faceViewer     = true;
   explosionScale = "1 1 1";

   shakeCamera = true;
   camShakeFreq = "7.0 8.0 7.0";
   camShakeAmp = "10.0 10.0 10.0";
   camShakeDuration = 0.75;
   camShakeRadius = 15.0;

   // Dynamic light
   lightStartRadius = 0;
   lightEndRadius = 20;
   lightStartColor = "0.45 0.3 0.1";
   lightEndColor = "0 0 0";

   //impulse
   impulseRadius = 15;
   impulseForce = 1000;
   impulseVertical = 2000;

   //radius damage
   radiusDamage        = 30;
   damageRadius        = 8.0;

   //burn the players?
   playerBurnTime = 5000;

};

datablock ProjectileData(CarFinalExplosionProjectile)
{
   directDamage        = 0;
   radiusDamage        = 0;
   damageRadius        = 0;
   explosion           = CarFinalExplosion;

   directDamageType  = $DamageType::CarExplosion;
   radiusDamageType  = $DamageType::CarExplosion;

   explodeOnDeath = 1;

   armingDelay         = 0;
   lifetime            = 10;
};

datablock ParticleData(CarSmokeParticle)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.5;
inheritedVelFactor   = 0.2;
constantAcceleration = 0.0;
lifetimeMS           = 525;
lifetimeVarianceMS   = 55;
textureName          = "base/data/particles/cloud";
spinSpeed = 10.0;
spinRandomMin = -500.0;
spinRandomMax = 500.0;
colors[0]     = "0.5 0.5 0.5 0.9";
colors[1]     = "0.5 0.5 0.5 0.0";
sizes[0]      = 0.15;
sizes[1]      = 0.15;

useInvAlpha = false;
};
datablock ParticleEmitterData(CarSmokeEmitter)
{
   ejectionPeriodMS = 3;
   periodVarianceMS = 0;
   ejectionVelocity = 1.0;
   velocityVariance = 1.0;
   ejectionOffset   = 0.0;
   thetaMin         = 0;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "CarSmokeParticle";
};
activatepackage(CarFire);
function Carvehicle::onadd(%this,%obj)
{
parent::onadd(%this,%obj);

%obj.setWheelTire(0, CarTire);
%obj.setWheelTire(1, CarTire);
%obj.setWheelTire(2, Cartire);
%obj.setWheelTire(3, Cartire);




%obj.setWheelSpring(0, CarSpring);
%obj.setWheelSpring(1, CarSpring);
%obj.setWheelSpring(2, CarSpring);
%obj.setWheelSpring(3, CarSpring);




%obj.setWheelSteering(0,1);
%obj.setWheelSteering(1,1);
%obj.setWheelSteering(2,0);
%obj.setWheelSteering(3,0);


%obj.setWheelPowered(0,true);
      %obj.setWheelPowered(1,true);
%obj.setWheelPowered(2,true);
%obj.setWheelPowered(3,true);





   
}




please help me fix it

Looks like this belongs in Coding Help.
Sorry for pointless post here D:

here's second half:
Code: [Select]
datablock ParticleEmitterData(CarExplosionEmitter3)
{
   ejectionPeriodMS = 1;
   periodVarianceMS = 0;
   lifetimeMS       = 50;
   ejectionVelocity = 15;
   velocityVariance = 5.0;
   ejectionOffset   = 0.0;
   thetaMin         = 0;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "CarExplosionParticle3";

   uiName = "Car Explosion 3";
   emitterNode = FourtiethEmitterNode;
};

datablock ExplosionData(CarExplosion)
{
   //explosionShape = "";
   lifeTimeMS = 150;

   soundProfile = CarExplosionSound;

   emitter[0] = CarExplosionEmitter;
   emitter[1] = CarExplosionEmitter2;
   //particleDensity = 30;
   //particleRadius = 1.0;

   debris = CarTireDebris;
   debrisNum = 3;
   debrisNumVariance = 0;
   debrisPhiMin = 0;
   debrisPhiMax = 360;
   debrisThetaMin = 40;
   debrisThetaMax = 85;
   debrisVelocity = 14;
   debrisVelocityVariance = 3;

   faceViewer     = true;
   explosionScale = "1 1 1";

   shakeCamera = true;
   camShakeFreq = "7.0 8.0 7.0";
   camShakeAmp = "1.0 1.0 1.0";
   camShakeDuration = 0.5;
   camShakeRadius = 15.0;

   // Dynamic light
   lightStartRadius = 14;
   lightEndRadius = 3;
   lightStartColor = "0.9 0.3 0.1";
   lightEndColor = "0 0 0";

   //impulse
   impulseRadius = 10;
   impulseForce = 500;

   //radius damage
   radiusDamage        = 30;
   damageRadius        = 3.5;
};

datablock ParticleData(CarDebrisTrailParticle)
{
dragCoefficient = 3.0;
windCoefficient = 0.0;
gravityCoefficient = -0.5;
inheritedVelFactor = 0.0;
constantAcceleration = 0.0;
lifetimeMS = 600;
lifetimeVarianceMS = 150;
spinSpeed = 10.0;
spinRandomMin = -50.0;
spinRandomMax = 50.0;
useInvAlpha = true;
animateTexture = false;
//framesPerSec = 1;

textureName = "base/data/particles/cloud";
//animTexName = "~/data/particles/cloud";

// Interpolation variables
colors[0] = "0.0 0.0 0.0 0.5";
colors[1] = "0.0 0.0 0.0 1.0";
   colors[2] = "0.0 0.0 0.0 0.0";

sizes[0] = 2.0;
sizes[1] = 5.0;
   sizes[2] = 5.0;

times[0] = 0.0;
times[1] = 0.1;
   times[2] = 1.0;
};

datablock ParticleEmitterData(CarDebrisTrailEmitter)
{
   ejectionPeriodMS = 15;
   periodVarianceMS = 0;
   ejectionVelocity = 8;
   velocityVariance = 1.0;
   ejectionOffset   = 1.0;
   thetaMin         = 40;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "CarDebrisTrailParticle";

   uiName = "Car Debris Trail";
   emitterNode = FifthEmitterNode;
};


datablock ParticleData(CarFinalExplosionParticle)
{
dragCoefficient = 1.0;
windCoefficient = 0.0;
gravityCoefficient = -0.5;
inheritedVelFactor = 0.0;
constantAcceleration = 0.0;
lifetimeMS = 1900;
lifetimeVarianceMS = 1000;
spinSpeed = 10.0;
spinRandomMin = -50.0;
spinRandomMax = 50.0;
useInvAlpha = true;
animateTexture = false;
//framesPerSec = 1;

textureName = "base/data/particles/cloud";
//animTexName = "~/data/particles/cloud";

// Interpolation variables
colors[0] = "0.0 0.0 0.0 0.5";
colors[1] = "0.0 0.0 0.0 1.0";
   colors[2] = "0.0 0.0 0.0 0.0";

sizes[0] = 5.0;
sizes[1] = 10.0;
   sizes[2] = 5.0;

times[0] = 0.0;
times[1] = 0.1;
   times[2] = 1.0;
};

datablock ParticleEmitterData(CarFinalExplosionEmitter)
{
   ejectionPeriodMS = 7;
   periodVarianceMS = 0;
   lifeTimeMS    = 21;
   ejectionVelocity = 8;
   velocityVariance = 1.0;
   ejectionOffset   = 0.0;
   thetaMin         = 10;
   thetaMax         = 40;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "CarFinalExplosionParticle";

   uiName = "Car Final Explosion";
   emitterNode = TwentiethEmitterNode;
};

datablock ParticleData(CarFinalExplosionParticle2)
{
dragCoefficient = 3.0;
windCoefficient = 0.0;
gravityCoefficient = 0.0;
inheritedVelFactor = 0.0;
constantAcceleration = 0.0;
lifetimeMS = 1000;
lifetimeVarianceMS = 500;
spinSpeed = 10.0;
spinRandomMin = -500.0;
spinRandomMax = 500.0;
useInvAlpha = false;
animateTexture = false;
//framesPerSec = 1;

textureName = "base/data/particles/cloud";
//animTexName = "~/data/particles/cloud";

// Interpolation variables
colors[0] = "1.0 0.5 0.0 1.0";
colors[1] = "1.0 0.0 0.0 0.0";
sizes[0] = 1.5;
sizes[1] = 2.5;
times[0] = 0.0;
times[1] = 1.0;
};

datablock ParticleEmitterData(CarFinalExplosionEmitter2)
{
   ejectionPeriodMS = 1;
   periodVarianceMS = 0;
   lifetimeMS       = 15;
   ejectionVelocity = 30;
   velocityVariance = 5.0;
   ejectionOffset   = 0.0;
   thetaMin         = 85;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "CarFinalExplosionParticle2";

   uiName = "Car Final Explosion 2";
   emitterNode = TenthEmitterNode;
};



datablock ParticleData(CarFinalExplosionParticle3)
{
dragCoefficient = 13.0;
windCoefficient = 0.0;
gravityCoefficient = 0.0;
inheritedVelFactor = 0.0;
constantAcceleration = 0.0;
lifetimeMS = 100;
lifetimeVarianceMS = 50;
spinSpeed = 10.0;
spinRandomMin = -500.0;
spinRandomMax = 500.0;
useInvAlpha = false;
animateTexture = false;
//framesPerSec = 1;

textureName = "base/data/particles/star1";
//animTexName = "~/data/particles/cloud";

// Interpolation variables
colors[0] = "1.0 0.5 0.0 1.0";
colors[1] = "1.0 0.0 0.0 0.0";
sizes[0] = 15;
sizes[1] = 0.5;

times[0] = 0.0;
times[1] = 1.0;
};

datablock ParticleEmitterData(CarFinalExplosionEmitter3)
{
   ejectionPeriodMS = 1;
   periodVarianceMS = 0;
   lifetimeMS       = 15;
   ejectionVelocity = 30;
   velocityVariance = 5.0;
   ejectionOffset   = 0.0;
   thetaMin         = 85;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "CarFinalExplosionParticle3";   

   uiName = "Car Final Explosion 3";
   emitterNode = TenthEmitterNode;
};




datablock WheeledVehicleSpring(CarSpring)
{
   // Wheel suspension properties
   length = 0.2; // Suspension travel
   force = 6000; //3000; // Spring force
   damping = 800; //600; // Spring damping
   antiSwayForce = 6; //3; // Lateral anti-sway force
};

AddDamageType("CarExplosion",   '<bitmap:add-ons/ci/carExplosion> %1',    '%2 <bitmap:add-ons/ci/carExplosion> %1');
datablock ProjectileData(CarExplosionProjectile)
{
   directDamage        = 0;
   radiusDamage        = 0;
   damageRadius        = 0;
   explosion           = CarExplosion;

   directDamageType  = $DamageType::CarExplosion;
   radiusDamageType  = $DamageType::CarExplosion;

   explodeOnDeath = 1;

   armingDelay         = 0;
   lifetime            = 10;
};

datablock DebrisData(CarDebris)
{
   emitters = "CarDebrisTrailEmitter";

shapeFile = "./Car.dts";
lifetime = 3.0;
minSpinSpeed = -500.0;
maxSpinSpeed = 500.0;
elasticity = 0.5;
friction = 0.2;
numBounces = 1;
staticOnMaxBounce = true;
snapOnMaxBounce = false;
fade = true;

gravModifier = 2;
};







datablock ExplosionData(CarFinalExplosion)
{
   //explosionShape = "";
   lifeTimeMS = 150;

   soundProfile = CarExplosionSound;
   
   emitter[0] = CarFinalExplosionEmitter3;
   emitter[1] = CarFinalExplosionEmitter2;

   particleEmitter = CarFinalExplosionEmitter;
   particleDensity = 20;
   particleRadius = 1.0;

   debris = CarDebris;
   debrisNum = 1;
   debrisNumVariance = 0;
   debrisPhiMin = 0;
   debrisPhiMax = 360;
   debrisThetaMin = 0;
   debrisThetaMax = 20;
   debrisVelocity = 18;
   debrisVelocityVariance = 3;

   faceViewer     = true;
   explosionScale = "1 1 1";

   shakeCamera = true;
   camShakeFreq = "7.0 8.0 7.0";
   camShakeAmp = "10.0 10.0 10.0";
   camShakeDuration = 0.75;
   camShakeRadius = 15.0;

   // Dynamic light
   lightStartRadius = 0;
   lightEndRadius = 20;
   lightStartColor = "0.45 0.3 0.1";
   lightEndColor = "0 0 0";

   //impulse
   impulseRadius = 15;
   impulseForce = 1000;
   impulseVertical = 2000;

   //radius damage
   radiusDamage        = 30;
   damageRadius        = 8.0;

   //burn the players?
   playerBurnTime = 5000;

};

datablock ProjectileData(CarFinalExplosionProjectile)
{
   directDamage        = 0;
   radiusDamage        = 0;
   damageRadius        = 0;
   explosion           = CarFinalExplosion;

   directDamageType  = $DamageType::CarExplosion;
   radiusDamageType  = $DamageType::CarExplosion;

   explodeOnDeath = 1;

   armingDelay         = 0;
   lifetime            = 10;
};

datablock ParticleData(CarSmokeParticle)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.5;
inheritedVelFactor   = 0.2;
constantAcceleration = 0.0;
lifetimeMS           = 525;
lifetimeVarianceMS   = 55;
textureName          = "base/data/particles/cloud";
spinSpeed = 10.0;
spinRandomMin = -500.0;
spinRandomMax = 500.0;
colors[0]     = "0.5 0.5 0.5 0.9";
colors[1]     = "0.5 0.5 0.5 0.0";
sizes[0]      = 0.15;
sizes[1]      = 0.15;

useInvAlpha = false;
};
datablock ParticleEmitterData(CarSmokeEmitter)
{
   ejectionPeriodMS = 3;
   periodVarianceMS = 0;
   ejectionVelocity = 1.0;
   velocityVariance = 1.0;
   ejectionOffset   = 0.0;
   thetaMin         = 0;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "CarSmokeParticle";
};
activatepackage(CarFire);
function Carvehicle::onadd(%this,%obj)
{
parent::onadd(%this,%obj);

%obj.setWheelTire(0, CarTire);
%obj.setWheelTire(1, CarTire);
%obj.setWheelTire(2, Cartire);
%obj.setWheelTire(3, Cartire);




%obj.setWheelSpring(0, CarSpring);
%obj.setWheelSpring(1, CarSpring);
%obj.setWheelSpring(2, CarSpring);
%obj.setWheelSpring(3, CarSpring);




%obj.setWheelSteering(0,1);
%obj.setWheelSteering(1,1);
%obj.setWheelSteering(2,0);
%obj.setWheelSteering(3,0);


%obj.setWheelPowered(0,true);
      %obj.setWheelPowered(1,true);
%obj.setWheelPowered(2,true);
%obj.setWheelPowered(3,true);





   
}




please help me fix it

Just curious can you post a pic of the car