DAZZLE'S UPGRADE PACK

If you haven't already done so, upgrade your game by downloading Dazzle's all-in-one upgrade pack. It comes with everything you need for today's servers. Does your blue bar freeze when joining servers? Do you lag in games? Do you get an annoying siren in Phobik's Servers? This is what you need. CLICK HERE TO DOWNLOAD.

Power-Up Problem

Modding questions, answers, help.....

Moderators: Warfare, Admin, Moderator

User avatar
Taylor
Need Major Repair
Need Major Repair
Posts: 1201
Joined: Thu Jan 01, 2009 8:34 pm
Location: ERROR

Power-Up Problem

Post by Taylor »

Alright so i was trying to make custom Power-ups in my server. i followed benblue's tutorial, but when i tried to open my server, BANG it quits. why??? here's my P-up part of special.cs.

Code: Select all

datablock ProjectileData(NinjaStar)
{
   velocity = 150;          // meters per second
   inheritVelocity = 5;    // how much of shooters velocity to inherit
   numBounce = 0;             // usually 0
   splashArea = 0.0;          // usually 0
   count = 20;                // how many shots per clip?
   saveOldCartridge = true;   // chuck old cartridge or keep it around
   canSave = false;           // can this cartridge be saved if another comes along?
   reloadTime = 1400;          // in milliseconds
   burstDelay = 2000;         // milliseconds until next burst if button held down
   burstCount = 3;            // number of projectiles to fire per burst
   synchTime = 1000;          // synch over this many milliseconds
   synchBefore = 500;         // synch if not older than this in milliseconds
   damage = 2;                // usually 1
   gravityScale = 2;        //
   sizeScale = 0.8;           // scale of projectile (meters for bitmaps)
   resource = "~/data/shapes/tanks/NinjaStar.jpg";    // shape or bitmap
   tankExplosion = "DefaultTankExplosion";   // datablock for explosion
   ownTankExplosion = "DefaultTankExplosion";  // datablock for explosion
   bounceExplosion = "DefaultExplosion";       // datablock for explosion
   otherExplosion = "DefaultExplosion";  // datablock for explosion
   reticle = "NinjaReticle";
};

Code: Select all

$NumPupTypes = 4;
$pupTypes[0] = "SpeedyProjectile";
$pupTypes[1] = "BounceProjectile";
$pupTypes[2] = "SplashProjectile";
$pupTypes[3] = "NinjaStarProjectile";

$pupSnds[0] = "ActivateSpeedy";
$pupSnds[1] = "ActivateBounce";
$pupSnds[2] = "ActivateSplash";
$pupSnds[3] = "ActivateSplash";

things i tried (on suggestion from Squishin RT):
changing it to NinjaStarProjectile.

i have all the files listed there, i just don't know what happened!
I signed up on New Years!
Macs Rule!
Proud BMT Member
Image
User avatar
TheBMTBaron
A Few Broken Fenders
A Few Broken Fenders
Posts: 168
Joined: Tue Jul 29, 2008 2:03 pm

Re: Power-Up Problem

Post by TheBMTBaron »

Well, You didnt change the other thing. What is the "NinjaStar.jpg"? Do you actually have that Object? If you do, Is it in data/shapes/tanks?

Also, Try changing the Recticle to a simple one like SpeedyRecticle .

Hope it helps!!

Edit: Just saw your Post on the RT Forums! Dont listen to the First thing! But still try the Recticle!

Edit 2: I looked over it again, It is can not find the Projectile, Change the "NinjaStar" to "NinjaStarProjectile", You have to have both of them!
User avatar
Taylor
Need Major Repair
Need Major Repair
Posts: 1201
Joined: Thu Jan 01, 2009 8:34 pm
Location: ERROR

Re: Power-Up Problem

Post by Taylor »

nope, didn't work.
I signed up on New Years!
Macs Rule!
Proud BMT Member
Image
User avatar
bla bla
Need Major Repair
Need Major Repair
Posts: 651
Joined: Sun Jan 06, 2008 11:06 pm
Location: in my room crying

Re: Power-Up Problem

Post by bla bla »

one time i was making my own projectile and the //'s were in different lengths and it didn't work i changed them to the same lengths and they worked

maybe try doing that but that stuff doesn't matter nad it just happen to work for me...
█bla bla BMT█
^^^^^^^^^^^^
_____________
User avatar
Taylor
Need Major Repair
Need Major Repair
Posts: 1201
Joined: Thu Jan 01, 2009 8:34 pm
Location: ERROR

Re: Power-Up Problem

Post by Taylor »

well, i very much doubt that will work...

EDIT: i decided to try it anywa... oh wait, forgot something...

EDIT EDIT: didn't work.
I signed up on New Years!
Macs Rule!
Proud BMT Member
Image
User avatar
Metal
Need Major Repair
Need Major Repair
Posts: 1278
Joined: Fri Dec 26, 2008 5:48 pm

Re: Power-Up Problem

Post by Metal »

I know what's the reason :

Code: Select all

datablock ProjectileData(NinjaStar)
{
   velocity = 150;          // meters per second
   inheritVelocity = 5;    // how much of shooters velocity to inherit
   numBounce = 0;             // usually 0
   splashArea = 0.0;          // usually 0
   count = 20;                // how many shots per clip?
   saveOldCartridge = true;   // chuck old cartridge or keep it around
   canSave = false;           // can this cartridge be saved if another comes along?
   reloadTime = 1400;          // in milliseconds
   burstDelay = 2000;         // milliseconds until next burst if button held down
   burstCount = 3;            // number of projectiles to fire per burst
   synchTime = 1000;          // synch over this many milliseconds
   synchBefore = 500;         // synch if not older than this in milliseconds
   damage = 2;                // usually 1
   gravityScale = 2;        //
   sizeScale = 0.8;           // scale of projectile (meters for bitmaps)
   resource = "~/data/shapes/tanks/NinjaStar.jpg";    // shape or bitmap
   tankExplosion = "DefaultTankExplosion";   // datablock for explosion
   ownTankExplosion = "DefaultTankExplosion";  // datablock for explosion
   bounceExplosion = "DefaultExplosion";       // datablock for explosion
   otherExplosion = "DefaultExplosion";  // datablock for explosion
   reticle = "NinjaReticle";
};

also below "reticle" add "emitter like so

Code: Select all

datablock ProjectileData(NinjaStar)
{
   velocity = 150;          // meters per second
   inheritVelocity = 5;    // how much of shooters velocity to inherit
   numBounce = 0;             // usually 0
   splashArea = 0.0;          // usually 0
   count = 20;                // how many shots per clip?
   saveOldCartridge = true;   // chuck old cartridge or keep it around
   canSave = false;           // can this cartridge be saved if another comes along?
   reloadTime = 1400;          // in milliseconds
   burstDelay = 2000;         // milliseconds until next burst if button held down
   burstCount = 3;            // number of projectiles to fire per burst
   synchTime = 1000;          // synch over this many milliseconds
   synchBefore = 500;         // synch if not older than this in milliseconds
   damage = 2;                // usually 1
   gravityScale = 2;        //
   sizeScale = 0.8;           // scale of projectile (meters for bitmaps)
   resource = "~/data/shapes/tanks/NinjaStar.jpg";    // shape or bitmap
   tankExplosion = "DefaultTankExplosion";   // datablock for explosion
   ownTankExplosion = "DefaultTankExplosion";  // datablock for explosion
   bounceExplosion = "DefaultExplosion";       // datablock for explosion
   otherExplosion = "DefaultExplosion";  // datablock for explosion
   reticle = "NinjaReticle";
   emitter = "YOUR EMITTER ( you need to make one or copy a simple made and paste and change name of it)
};

Hope it works :tankerwinks:
User avatar
Metal
Need Major Repair
Need Major Repair
Posts: 1278
Joined: Fri Dec 26, 2008 5:48 pm

Re: Power-Up Problem

Post by Metal »

oh and the reticle, if you created a reticle and called it NinjaStar it has to work ( you can reticles make like emitters, just copy and paste below
Mr Phobik
Site Mechanic
Site Mechanic
Posts: 283
Joined: Wed Apr 30, 2008 2:35 pm
Location: Toronto, CANADA

Re: Power-Up Problem

Post by Mr Phobik »

^^ & ^WRONG!!!

Taylor, do you even have a reticle that is "NInjaReticle"? And...Do you have a shape in "game/data/shapes/tanks" that is "NinjaStar"?
You can't just write whatever you want, the shape has to exist!
Image
User avatar
TheBMTBaron
A Few Broken Fenders
A Few Broken Fenders
Posts: 168
Joined: Tue Jul 29, 2008 2:03 pm

Re: Power-Up Problem

Post by TheBMTBaron »

You dont need an Emitter (Look at Splash, Speedy and bounce, do they have Emitters?). Try changing the Reticle to something Simple such as SpeedyReticle, It may be something with your reticle.

Just saw Metals new post, He's right. Are you sure the reticle works? Try changing the, lets say, area reticle to your NinjaStar one. If Area doesnt work, Its all the reticle.

Ugh, I just saw Phobiks too! I already said that Phobik about the NinjaStar Object =) And you just stole my correcting for the Reticle! You must be reading minds now.... =)
User avatar
Metal
Need Major Repair
Need Major Repair
Posts: 1278
Joined: Fri Dec 26, 2008 5:48 pm

Re: Power-Up Problem

Post by Metal »

the ninjastar exists but did he have it and know the correct path??

it will fire blocks or something if he don't know to make some good weapons, the block will just have the color of the NinjaStar........
Post Reply