Author Topic: CandleStick Emitter not work.  (Read 736 times)

Code: [Select]
datablock ItemData(CandleStickItem)
{
category = "Item";
className = "Item";

image = CandleStickImage;
canDrop = false;
};
datablock ParticleData(CandleStickParticle)
{
textureName          = "base/data/particles/cloud";
dragCoefficient      = 1.0;
gravityCoefficient   = -7.0;
inheritedVelFactor   = 0.0;
windCoefficient      = 0.0;
constantAcceleration = 0.0;
lifetimeMS           = 200;
lifetimeVarianceMS   = 0;
spinSpeed     = 0;
spinRandomMin = -90.0;
spinRandomMax =  90.0;
useInvAlpha   = false;

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

sizes[0] = 0.0;
sizes[1] = 0.0;
sizes[2] = 0.09;
sizes[3] = 0.01;

times[0] = 0.0;
times[1] = 0.5;
times[2] = 0.51;
times[3] = 0.7;
};

datablock ParticleEmitterData(CandleStickEmitter)
{
   ejectionPeriodMS = 1;
   periodVarianceMS = 0;
   ejectionVelocity = 0.0;
   ejectionOffset   = 0.0;
   velocityVariance = 0.0;
   thetaMin         = 0;
   thetaMax         = 180;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;

   //lifetimeMS = 5000;
   particles = CandleStickParticle;   

};
datablock ShapeBaseImageData(CandleStickImage)
{
   shapeFile = "./CandleStick.dts";
   emap = true;

   mountPoint = 1;
   stateEmitter[1]                 = "CandleStickEmitter";
   stateEmitterNode[1]             = "muzzlePoint";
   stateEmitterTime[1]             = "0.15";
   stateName[1]                    = "Ready";
   className = "ItemImage";
   item = BowItem;

   melee = false;
   armReady = "1";
   
LightOn = true;
radius = 5;
brightness = 5;
color = "0.8 0.7 0.4 1";

FlareOn = false;
// FlareTP = true;
// Flarebitmap = "base/lighting/corona";
// FlareColor = "1 1 1";
// ConstantSizeOn = false;
// ConstantSize = 1;
// NearSize = 3;
// FarSize = 0.5;
// NearDistance = 10.0;
// FarDistance = 30.0;
// FadeTime = 0.1;
// BlendMode = 0;

AnimColor = false;
AnimBrightness = true;
AnimOffsets = false;
AnimRotation = false;
LinkFlare = false;
LinkFlareSize = false;
MinColor = "1 1 0";
MaxColor = "0 0 1";
MinBrightness = 0.0;
MaxBrightness = 5.0;
MinRadius = 0.1;
MaxRadius = 10;
StartOffset = "-5 0 0";
EndOffset = "5 0 0";
MinRotation = 0;
MaxRotation = 359;

SingleColorKeys = false;
RedKeys = "AWTCFAH";
GreenKeys = "AWTCFAH";
BlueKeys = "AWTCFAH";

BrightnessKeys = "DEDEDFGF";
RadiusKeys = "AZAAAAA";
OffsetKeys = "AZAAAAA";
RotationKeys = "AZAAAAA";

ColorTime = 1.0;
BrightnessTime = 1.0;
RadiusTime = 1.0;
OffsetTime = 1.0;
RotationTime = 1.0;

LerpColor = false;
LerpBrightness = false;
LerpRadius = false;
LerpOffset = false;
LerpRotation = false;

//actionstuff

stateSequence[0] = "ready";

};

I got this error line say:
Error: cannot change namespace parent linkage for Item from ShapeBase to ItemData.
« Last Edit: May 11, 2012, 05:31:27 AM by Cubelands »

Restart Blockland and don't enable any other add-ons than this one when you start a server again.

If that doesn't work, you're reusing object names somewhere in your add-on.

Restart Blockland and don't enable any other add-ons than this one when you start a server again.

If that doesn't work, you're reusing object names somewhere in your add-on.
I did object rename and it show up the default gun color blue. how I am going remove the gun on left hand?

EDIT:

Same result Error: cannot change namespace parent linkage for Item from ShapeBase to ItemData.
« Last Edit: May 11, 2012, 06:41:33 AM by Cubelands »

I did object rename and it show up the default gun color blue. how I am going remove the gun on left hand?

EDIT:
http://i90.photobucket.com/albums/k256/EmperorWinter/Blockland_00110.png
Same result Error: cannot change namespace parent linkage for Item from ShapeBase to ItemData.

Reason for showing up as a gun: The item is invalid or cannot be added to the cache (somehow).
Reason for being in your left hand: mountPoint = 1;

Reason for showing up as a gun: The item is invalid or cannot be added to the cache (somehow).
Reason for being in your left hand: mountPoint = 1;
I have re-do script and I have add candle light and emitter script made by Kaje.
EDIT: I just found out, I forget enable weapon bow.
« Last Edit: May 11, 2012, 11:15:45 AM by Cubelands »