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

Power-Up Problem

Postby Taylor on Sat Feb 07, 2009 3:56 pm

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
Taylor
Need Major Repair
Need Major Repair
 
Posts: 1201
Joined: Thu Jan 01, 2009 8:34 pm
Location: ERROR
Has thanked: 4 times
Been thanked: 1 time

Re: Power-Up Problem

Postby TheBMTBaron on Sat Feb 07, 2009 5:22 pm

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
TheBMTBaron
A Few Broken Fenders
A Few Broken Fenders
 
Posts: 168
Joined: Tue Jul 29, 2008 2:03 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Power-Up Problem

Postby Taylor on Sat Feb 07, 2009 7:03 pm

nope, didn't work.
I signed up on New Years!
Macs Rule!
Proud BMT Member
Image
User avatar
Taylor
Need Major Repair
Need Major Repair
 
Posts: 1201
Joined: Thu Jan 01, 2009 8:34 pm
Location: ERROR
Has thanked: 4 times
Been thanked: 1 time

Re: Power-Up Problem

Postby bla bla on Sat Feb 07, 2009 11:13 pm

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
bla bla
Need Major Repair
Need Major Repair
 
Posts: 651
Joined: Sun Jan 06, 2008 11:06 pm
Location: in my room crying
Has thanked: 0 time
Been thanked: 0 time

Re: Power-Up Problem

Postby Taylor on Sun Feb 08, 2009 9:47 am

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
Taylor
Need Major Repair
Need Major Repair
 
Posts: 1201
Joined: Thu Jan 01, 2009 8:34 pm
Location: ERROR
Has thanked: 4 times
Been thanked: 1 time

Re: Power-Up Problem

Postby Metal on Sun Feb 08, 2009 1:49 pm

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
Has thanked: 0 time
Been thanked: 0 time

Re: Power-Up Problem

Postby Metal on Sun Feb 08, 2009 1:51 pm

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
User avatar
Metal
Need Major Repair
Need Major Repair
 
Posts: 1278
Joined: Fri Dec 26, 2008 5:48 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Power-Up Problem

Postby Mr Phobik on Sun Feb 08, 2009 1:53 pm

^^ & ^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
Mr Phobik
Site Mechanic
Site Mechanic
 
Posts: 283
Joined: Wed Apr 30, 2008 2:35 pm
Location: Toronto, CANADA
Has thanked: 13 times
Been thanked: 10 times

Re: Power-Up Problem

Postby TheBMTBaron on Sun Feb 08, 2009 1:56 pm

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
TheBMTBaron
A Few Broken Fenders
A Few Broken Fenders
 
Posts: 168
Joined: Tue Jul 29, 2008 2:03 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Power-Up Problem

Postby Metal on Sun Feb 08, 2009 4:01 pm

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........
User avatar
Metal
Need Major Repair
Need Major Repair
 
Posts: 1278
Joined: Fri Dec 26, 2008 5:48 pm
Has thanked: 0 time
Been thanked: 0 time

Next

Return to Modding

Who is online

Users browsing this forum: No registered users and 6 guests

cron