Author Topic: Script not Execing  (Read 667 times)

I created a script with a bunch of particles and projectiles in it. Everytime I start a game, it exec the script but the particles dont work. There were no console errors of any sort in the effects. When the game loads I have to exec("add-ons/script_StratoFX/server.cs"); in console again. help?

Y'have to put the particles in their own folder.
Code: [Select]
add-ons/Particle_StratoFX/server.cs & Particle_StratoFX.cs & description.txt & (all of the particle images)I'm not so sure. I was never any good at this stuff anyway.

It uses the blockland base/data/particles particles. It works when I exec it ingame

Crap-on?
or it could be improper packaging.

Pah you don't know what you're talking about.

Pah you don't know what you're talking about.
He spurts out crap information.

I got that when I tried to port TheGeek's Chainsaw from v8. Remake the particles differently.


Make sure they aren't calling something that is under them in the particle.
Example:
Code: [Select]
datablock ParticleEmitterData(DefaultParticleEmitter)
{
   ejectionPeriodMS = 1;
   periodVarianceMS = 0;
   ejectionVelocity = 0.0;
   velocityVariance = 0.0;
   ejectionOffset   = 0.0;
   thetaMin         = 0;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "DefaultParticle";
};
datablock ParticleData(DefaultParticle)
{
dragCoefficient      = 3;
gravityCoefficient   = -0.0;
inheritedVelFactor   = 0.0;
constantAcceleration = 0.0;
lifetimeMS           = 625;
lifetimeVarianceMS   = 55;
textureName          = "base/data/particles/cloud";
spinSpeed = 10.0;
spinRandomMin = -500.0;
spinRandomMax = 500.0;
colors[0]     = "1.0 1.0 0.0 1.0";
colors[1]     = "1.0 1.0 0.0 1.0";
sizes[0]      = 0.15;
sizes[1]      = 0.25;

useInvAlpha = false;
};
« Last Edit: November 01, 2009, 04:08:41 PM by Jimmg »

Check for console errors.

Check for console errors.

If he explained the scenario properly in the first post, Jimmg already posted the correct answer.