Game Development Community

T3D 1.1 beta 3 - DefaultEmitter Console Spam w/fix [LOGGED] - RESOLVED

by Steve Acaster · in Torque 3D Professional · 09/21/2010 (12:39 am) · 7 replies

In my ongoing crusade against the godless horrors of console spam ...

ParticleEmitterData(DefaultEmitter) unable to find particle datablock: DefaultParticle
ParticleEmitterData(DefaultEmitter) unable to find any particle datablocks
12: Register object failed for object DefaultEmitter of class ParticleEmitterData.

... can be put to the sword by changing game/core/art/datablocks/defaultparticle.cs to this:
//added - make sure ParticleData is in front of ParticleEmitterData or it won't work!
datablock ParticleData(DefaultParticle)
{
   textureName = "core/art/defaultParticle";
   dragCoeffiecient = 0;
   gravityCoefficient = 0;
   inheritedVelFactor = 0.499022;
   constantAcceleration = 0.0;
   lifetimeMS = 1313;
   lifetimeVarianceMS = 1312;
   useInvAlpha = true;
   spinRandomMin = -360;
   spinRandomMax = 360;
   spinSpeed = 1;

   colors[0] = "0.992126 0.00787402 0.0314961 1";
   colors[1] = "1 0.834646 0 0.645669";
   colors[2] = "1 0.299213 0 0.330709";
   colors[3] = "0.732283 1 0 0";
   
   sizes[0] = 0;
   sizes[1] = 0.497467;
   sizes[2] = 0.73857;
   sizes[3] = 0.997986;
   
   times[0] = 0.0;
   times[1] = 0.247059;
   times[2] = 0.494118;
   times[3] = 1;
   
   animTexName = "core/art/defaultParticle";
   
   dragCoefficient = "0.498534";
};
//stock below
datablock ParticleEmitterData(DefaultEmitter)
{
   ejectionPeriodMS = "50";
   ejectionVelocity = "1";
   velocityVariance = "0";
   ejectionOffset = "0.2";
   thetaMax = "40";
   particles = "DefaultParticle";
   blendStyle = "ADDITIVE";
   softParticles = "0";
   softnessDistance = "1000";
};

As it says in the comment; make sure ParticleData is above ParticleEmitterData or it won't work.

08 APRIL 2011 - FIXED IN 1.1 PREVIEW

now if I could only work out what's causeing [Material::mapMaterial] - Cannot map unnamed Material ...


#1
09/21/2010 (2:08 am)
@Steve, are there any materials in B3 that have just blank names (i.e., Material() instead of Material(nameofmaterial))? Cause if there are, they won't work, and it would be causing that error.
#2
09/21/2010 (2:25 am)
Hmmm, it might be TerrainMaterial() causing that then ...
#3
09/21/2010 (6:43 pm)
Logged as TQA-1133 for QA to verify.
#4
09/21/2010 (9:13 pm)
Ahh... good ole dependency order problem... something so simple yet so commonly troublesome.

Quote:
ongoing crusade against the godless horrors of console spam ...
Very funny... although I feel that same horror!
#5
04/13/2011 (5:23 pm)
Fixed in 1.1 Final and Preview.
#6
09/29/2011 (6:44 pm)
Not fixed. Still getting this error in Final. I think it might be due to imposters.
#7
09/30/2011 (3:48 am)
Quote:now if I could only work out what's causeing [Material::mapMaterial] - Cannot map unnamed Material ...

This is definitely caused by imposters.

Fix (not really): Disable all imposters ;P

I have searched for a solution for this, searching the code for the Cannot map material... warning, and ended up by an assert as far as I recall, but at that time it was to much work for only getting rid of this warning.

EDIT: And yes, it still exists in T3D 1.1 Final