Forums Index >> Modding >> Simple Question



Page : <1> :


I've created a bunch of new weapons for my MOD, but only the 'speedy powerup' seems to work below is the script after the 'object write end'.

Lighttank.defaultprojectile = "speedyprojectile";
Mediumtank.defaultprojectile = "speedyprojectile";
Heavytank.defaultprojectile = "speedyprojectile";
Speedyprojectile.resource = "game/data/shapes/tanks/SplashReticle.png";
Defaultexplosion.resource = "game/data/shapes/common/jet.png";
Speedyprojectile.damage = 20;
Speedyprojectile.count = 500000000000000000;
Speedyprojectile.burstcount = 50000;
Speedyprojectile.gravityscale = 1;
Speedyprojectile.velocity = 120;
Speedyprojectile.sizescale = 1;
Speedyprojectile.reloadtime = 0;
Speedyprojectile.burstdelay = 5;
Defaultexplosion.startscale = 1;
Defaultexplosion.endscale = 50;
Lighttank.maxspeed = 100000
Lighttank.defaultprojectile.burstdelay =0;
Lighttank.defaultprojectile.reloadtime = 0;
Lightprojectile.damage = 20;
Splashprojectile.resource = "game/data/shapes/tanks/AreaProjectile.png"
Splashprojectile.damage = 1000000;
Splashprojectile.gravityscale = 1;
Splashprojectile.count = 500000000000000000000000000000000;
Splashprojectile.burstcount = 100;
Splashprojectile.velocity = 129;
Splashprojectile.reloadtime = 0;
Splashprojectile.burstdelay = 0;
Splashprojectile.sizescale = 6;
Splashexplosion.startscale = 10;
Spalshexplosion.endscale = 20;
Bounceprojectile.count = 50000000000000000000000000000;
Bounceprojectile.burstcount = 100;
Bounceprojectile.velocity = 120;
Bounceprojectile.gravityscale = 1;
Bounceprojectile.resource = "game/data/shapes/common/jet.png";
Bounceexplosion.resource = "game/data/shapes/tanks/Areaexplosion.jpg";
Bounceprojectile.reloadtime = 0;
Bounceprojectile.burstdelay = 0;
Bounceprojectile.sizescale = 1;
Bounceexplosion.startscale = 3;
Bounceexplosion.endscale = 10;
Lighttank.maxspeed = 100
Mediumtank.maxspeed = 100
Heavytank.maxspeed = 100

If you see a problem in the above script, please tell me about it.


I used to eat a lot of natural foods until I learned that most people die of natural causes.

Tuesday, June 20, 2006 at 10:14:10 AM

Yep, quite a few errors. Every one of those statements needs to end in a semicolon ( ; ). Quite a few don't. The reason why nothing past speedy works is because when the file compiles the mission checks out okay, and all the code down to the "Lighttank.maxspeed = 100000" line checks out okay and is executed. The lack of a semicolon here causes NOTHING past that line to compile, execute, or in any other way be recogized by the game. This is not the only time you forget the semicolon either. Everything in TorqueScript except for loops, function declaratons, brackets, if statements, datablocks, and a few other instances requires you end the line with a semicolon. If you know this already, no offence intended, I have not read these forums for about a year now, and have very little idea of who is who.

Ben

Tuesday, June 20, 2006 at 2:36:38 PM

Thank you very much XD


I used to eat a lot of natural foods until I learned that most people die of natural causes.

Tuesday, June 20, 2006 at 7:21:52 PM

Alright, here's my new one. Some weapons still won't work

Lighttank.defaultprojectile = "speedyprojectile";
Mediumtank.defaultprojectile = "speedyprojectile";
Heavytank.defaultprojectile = "speedyprojectile";
Speedyprojectile.resource = "game/data/shapes/tanks/SplashReticle.png";
Defaultexplosion.resource = "game/data/shapes/common/jet.png";
Speedyprojectile.damage = 200;
Speedyprojectile.count = 500000000000000000000000000000000000;
Speedyprojectile.burstcount = 50000;
Speedyprojectile.gravityscale = 0;
Speedyprojectile.velocity = 50;
Speedyprojectile.sizescale = 1;
Speedyprojectile.reloadtime = 0;
Speedyprojectile.burstdelay = 5;
Defaultexplosion.startscale = 1;
Defaultexplosion.endscale = 50;
Bounceprojectile.count = 50000000000000000000000000000;
Bounceprojectile.burstcount = 100;
Bounceprojectile.velocity = 120;
Bounceprojectile.gravityscale = 1;
Bounceprojectile.resource = "game/data/shapes/common/jet.png";
Bounceexplosion.resource = "game/data/shapes/tanks/Areaexplosion.jpg";
Bounceprojectile.reloadtime = 0;
Bounceprojectile.burstdelay = 0;
Bounceprojectile.sizescale = 1;
Bounceexplosion.startscale = 3;
Bounceexplosion.endscale = 10;


I used to eat a lot of natural foods until I learned that most people die of natural causes.

Thursday, June 22, 2006 at 8:16:47 AM

Hmm.. Try to change 'speedyprojectile' to 'SpeedyProjectile' and, erasing a bit of the '0000000' will also help

 

 

 

 

Thursday, June 22, 2006 at 8:37:56 AM

Get the special.cs, it will make this much easier.

Thursday, June 22, 2006 at 12:09:10 PM

^ yea wat he said lol :)

- TT....my anti-drug. -

Thursday, June 22, 2006 at 1:08:14 PM

Which weapons?

Thursday, June 22, 2006 at 6:04:04 PM

The link to download special.cs is broken.


I used to eat a lot of natural foods until I learned that most people die of natural causes.

Friday, June 23, 2006 at 12:02:43 PM

http://www.freewebs.com/maxworks/MOD%20Resource%20Page/special%20w_xtra%20emitters.zip

This is Max's and has some very nice extra emitters as well as the defaults.

Friday, June 23, 2006 at 6:20:55 PM

Page : <1> :

insert quote insert url insert email insert image bold italic underline superscript subscript horizontal rule : : Help on using forum codes

Add comment:

HTML is disabled within comments, but ZBB Code is enabled.

Back to the top

Web site designed, maintained and funded by -z- and Dan MacDonald