Author Topic: Bowcaster error  (Read 599 times)

What do i need to change in the explosion emitter name

Code: [Select]
Loading Add-On: Pack_LEGOweapons (CRC:-267364181)
Add-Ons/Pack_LEGOweapons/Weapon_wcb.cs Line: 135 - Syntax error.
>>> Some error context, with ## on sides of error halt:
   ejectionOffset   = 0.0;

   thetaMin         = 0;

   thetaMax         = 50;

   phiReferenceVel  = 0;

   phiVariance      = 360;

   overrideAdvance = false;

   particles = "wcbtrailparticle";



   uiName = "LEGO Bowcaster Trail";



datablock ParticleData(##w##cbExplosionParticle)

{

^dragCoefficient      = 8;

^gravityCoefficient   = 1;

^inheritedVelFactor   = 0.2;

^constantAcceleration = 0.0;

^lifetimeMS           = 700;

^lifetimeVarianceMS   = 400;

^textureName          = "base/data/particles/cloud";

^spinSpeed^^= 10.0;
>>> Error report complete.

ADD-ON "Pack_LEGOweapons" CONTAINS SYNTAX ERRORS

Oh duh, forgot thee }; after trail data, checking if it works.

edit:now i have this error

Code: [Select]
Loading Add-On: Pack_LEGOweapons (CRC:636520225)
Add-Ons/Pack_LEGOweapons/Weapon_wcb.cs Line: 330 - Syntax error.
>>> Some error context, with ## on sides of error halt:
^stateName[1]                     = "Ready";

^stateTransitionOnTriggerDown[1]  = "chargeopt";

^stateAllowImageChange[1]         = true;

^stateSequence[1]^= "Ready";



^stateName[2]^^^= "chargeopt";

^stateTransitionOnTriggerUp[2]^= "fire"

^stateTransitionOnTimeout^##=## "chargeready";^

^stateTimeoutvalue[2]^^= 3.0



^stateName[3]                    = "Fire";

^stateTransitionOnTimeout[3]     = "Reload";

^stateTimeoutValue[3]            = 0.3;

^stateFire[3]                    = true;

^stateAllowImageChange[3]        = false;
>>> Error report complete.

ADD-ON "Pack_LEGOweapons" CONTAINS SYNTAX ERRORS

omg i cant believe i didnt notice the missing number
/sloppy scripting
« Last Edit: August 06, 2009, 12:59:13 AM by Dalek »

Missing a semi-colon after "fire".

what does this mean
Code: [Select]
Executing Add-Ons/Pack_LEGOweapons/Weapon_wcb.cs.
ParticleEmitterData(wcbshotEmitter) velocityVariance > ejectionVelocity
ParticleEmitterData(wcbchargedEmitter) velocityVariance > ejectionVelocity
ParticleEmitterData(wcbtrailEmitter) velocityVariance > ejectionVelocity
WARNING: AddDamageType() - wcb file "add-ons/Pack_LEGOweapons/CI_wcb.png" does not exist!
Object 'wcbShot3Sound' is not a member of the 'AudioProfile' data block class
55 datablocks added

Your velocityVariance is higher than the ejectionVelocity on wcbshotEmitter, wcbchargedEmitter, and wcbtrailEmitter.
The icon CI_wcb.png doesn't exist, this is the kill icon in the chat.
In some datablock, possibly the image, you appointed to wcbShot3Sound when it may not be an AudioProfile yet even exist.

Your velocityVariance is higher than the ejectionVelocity on wcbshotEmitter, wcbchargedEmitter, and wcbtrailEmitter.
The icon CI_wcb.png doesn't exist, this is the kill icon in the chat.
In some datablock, possibly the image, you appointed to wcbShot3Sound when it may not be an AudioProfile yet even exist.

Thank you