Author Topic: Datablock doesn't work  (Read 1594 times)

Ok, so I'm making a weapon (most likely to be private), called the M6 Galilean Nonlinear Rifle. So i was loading it and it keeps on having script errors, as the script was from the original SpartanLaser (hence it being private), All have been easily fixed until now, as it (the Blockland console window) references a datablock that, well, isn't there. I've searched the server.cs file with the program and it doesn't exist. It says like it doesnt belong in the AudioProfile datablock or it doesn't exist or something.

Any Ideas?
« Last Edit: April 04, 2011, 04:14:54 PM by Midway Sentinel »

ok, here is the error
« Last Edit: April 04, 2011, 04:14:41 PM by Midway Sentinel »

bump for the fact i cant test it until i resolve this problem

You should practice your scripting if you can't understand what you did wrong there and if you don't know how to fix it
« Last Edit: April 04, 2011, 05:15:28 PM by Zloff »

its just that i don't know what to fix here

That picture says your errors. Now go fix them.

the thing is, there isn't a "M6GalileanBulletHitSound" in the script, so i cant fix it

...You obviously don't know what you're doing...

It's saying that it cannot find that sound profile, but it requires it. I'm guessing you have "M6whatever" in the projectile explosion datablock as the explosion sound, but you haven't created a sound profile for it. Look through other weapon scripts, usually those sound things are at the top of the page.

ok, ill try it, thanks

edit: man, i dont know what this guy did, but a crap load of the values are WAY above their maximums
« Last Edit: April 04, 2011, 05:13:34 PM by Midway Sentinel »

current errors that are stopping me and their command lines

ParticleEmitterData<M6GalileanFlashEmitter> velocityVariance > ejectionVelocity
datablock ParticleEmitterData(M6GalileanFlashEmitter)
Code: [Select]
{
   ejectionPeriodMS = 6000;
   periodVarianceMS = 0;
   ejectionVelocity = 0.0;
   velocityVariance = 1.0;
   ejectionOffset   = 0.0;
   thetaMin         = 0;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "M6GalileanFlashParticle";

   uiName = "M6 Galilean Flash";
};

ParticleEmitterData<M6GalileanSmokeEmitter> velocityVariance > ejectionVelocity
Code: [Select]
datablock ParticleEmitterData(M6GalileanSmokeEmitter)
{
   ejectionPeriodMS = 1;
   periodVarianceMS = 0;
   ejectionVelocity = 0.0;
   velocityVariance = 1.0;
   ejectionOffset   = 0.0;
   thetaMin         = 0;
   thetaMax         = 180;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "M6GalileanSmokeParticle";

   uiName = "M6 Galilean Smoke";
};

ParticleEmitterData<M6GalileanExplosionEmitter> periodVariance >= period
Code: [Select]
datablock ParticleEmitterData(M6GalileanExplosionEmitter)
{
   ejectionPeriodMS = 1;
   periodVarianceMS = 50;
   ejectionVelocity = 35;
   velocityVariance = 5.0;
   ejectionOffset   = 0.0;
   thetaMin         = 89;
   thetaMax         = 180;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "M6GalileanExplosionParticle";

   useEmitterColors = true;
   uiName = "M6 Galilean Hit Dust";
};

if anyone can help i would very much appreciate it

ParticleEmitterData<M6GalileanFlashEmitter> velocityVariance > ejectionVelocity
datablock ParticleEmitterData(M6GalileanFlashEmitter)
Code: [Select]
{
   ejectionPeriodMS = 6000;
   periodVarianceMS = 0;
   ejectionVelocity = 0.0; // <-----
   velocityVariance = 1.0; // <-----
   ejectionOffset   = 0.0;
   thetaMin         = 0;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "M6GalileanFlashParticle";

   uiName = "M6 Galilean Flash";
};

Take a look at what it's telling you - it says that an error is occuring because velocityVariance is > (greater than) ejectionVelocity. Looking at those rows of values, the number next to velocityVariance is 1 and the number next to ejectionVelocity is 0. 1 is indeed greater than 0, so you need to modify one/both of them to prevent it from having the error.

so make the ejection velocity greater than the variance?

Ok, so i fixed all the variable errors, and now only this appears:

Loading Add-On: Weapon_M6Galilean <CRC:758596603>
Executing Add-Ons/Weapon_M6Galilean/server.cs.

and then it says Blockland has stopped working
« Last Edit: April 04, 2011, 08:04:09 PM by Midway Sentinel »


Run blockland single player with the default add-ons, and yours enabled.
Wait for crash.
Go to your blockland folder
Attach Console.log to a post. Or even, just read through it and work it out yourself.