Game Development Community

ParticleEmitter Datablock problems

by Lukas Joergensen · in Torque Game Engine · 04/07/2009 (3:01 pm) · 2 replies

My console prints this when running the game i have tried everything that came on my mind and i'm totally lost ;)

//-------------------------- 4/7/2009 -- 23:45:55 -----
Compiling GameOne/server/projectile.cs...
GameOne/server/projectile.cs Line: 12 - parse error
>>> Advanced script error report. Line 12.
>>> Some error context, with ## on sides of error halt:
projectileShapeName = "~/data/shapes/Projectiles/Projectile.dts";
Explosion = SpellExplosion;
particleEmitter = ProjectileEmitter; //Finish soon
armingDelay = 0;
lifetime = 5000;
fadeDelay = 4800;
isBallistic = false;
}
datablock ParticleEmitterData(ProjectileEmitter)
##{##
ejectionPeriodMS = 20;
periodVarianceMS = 5;
ejectionVelocity = 0.25;
velocityVariance = 0.10;
thetaMin = 0.0;
thetaMax = 180;
particles = ProjectileParticles;
}
datablock ParticleData(ProjectileParticles)
{
textureName = "~/data/shapes/particles/spark";
>>> Error report complete.

Compiling main.cs...

GameOne - 2 scripts(s), 1 error(s)


#1
04/07/2009 (4:34 pm)
It looks like you didn't end your previous datablock with a semi-colon
datablock DataBlockType(DatablockName)
{ 
    // datablock body
}; // Don't forget to "end" your datablock declaration.
#2
04/07/2009 (11:08 pm)
##Edit##
Oh lol read wrong well i will try that ^^ 1kk thanks for answer ^^