Forums Index >> Modding >> Simple Question
Page : <1> :
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
Thank you very much XD
I used to eat a lot of natural foods until I learned that most people die of natural causes.
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.
Hmm.. Try to change 'speedyprojectile' to 'SpeedyProjectile' and, erasing a bit of the '0000000' will also help
Get the special.cs, it will make this much easier.
Which weapons?
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.
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.
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.