Forums Index >> Modding >> Need Help With Data Blocks



Page : <1> :


I have a game that I occasionally host and I want the King Ufo to be in it. I put all of the graphics in and I made a code for it, but all of the datablocks I try to make for it don't work. Is it the data block, do I have to put the pics and stuff into a specific folder, or what?

-Buffalo

Wednesday, November 22, 2006 at 6:20:53 PM

Put this in tank.db

 

Datablock TankData(KingUfo : MediumTank)
{
shapeFile = "~/data/shapes/tanks/MediumUfo.dts";
brainShapeFile = "~/data/shapes/tanks/brainjar04.dts";
fx = "BabyBossFX";

MaxSpeed = 15.0; // meters per second (in forward direction)
accelRate = 20.0; // increase velocity this many meters per second
deccelRate = 20.0; // when breaking, decrease velocity
turnRate = 65.0; // degrees per second
antiSlideRate = 10.2;

TurretHorRange = 33.5; // range in +/- degrees of turret horizontally
turretAutoLevel = 0.92;

DamageAmount = 25.0; // total amount of damage tank can withstand
suspensionRange = 0.8; // proportion of wheel size for wheel to move up/down

DamageScale = 1.1; // multiply damage we do to others by this amount
armorScale = 1.0; // multiply damage we take by this amount (note: smaller better)

DefaultProjectile = "LightProjectile";
ai = GoldLightAI;

};

 

And this is the code for it:

for ACAS Code:

 

Else if(%code $= "/king")
{
tankchanger(%sender,"KingUfo");
return;
}

 

for Dash Code:

 

Else if (%code $= "/king" )
call("tankchanger",%sender,"KingUfo");

 

 

 

Last edited: Friday, November 24, 2006 at 2:38:46 AM

Friday, November 24, 2006 at 2:38:00 AM

Not Working :(
also, the tank comes with boss.dts not mediumufo.dts and even when I switch those around or rename it, it wont work.

Last edited: Friday, November 24, 2006 at 9:37:51 AM

Friday, November 24, 2006 at 9:35:38 AM

The king ufo dts name is mediumufo.dts
don't rename it or something :o

 

Friday, November 24, 2006 at 10:36:29 AM

It doesn't come with mediumufo.dts, it comes with boss.dts

Friday, November 24, 2006 at 11:41:24 AM

Then change

 

Datablock TankData(KingUfo : MediumTank)
{
shapeFile = "~/data/shapes/tanks/MediumUfo .dts";
brainShapeFile = "~/data/shapes/tanks/brainjar04.dts";
fx = "BabyBossFX";

MaxSpeed = 15.0; // meters per second (in forward direction)
accelRate = 20.0; // increase velocity this many meters per second
deccelRate = 20.0; // when breaking, decrease velocity
turnRate = 65.0; // degrees per second
antiSlideRate = 10.2;

TurretHorRange = 33.5; // range in +/- degrees of turret horizontally
turretAutoLevel = 0.92;

DamageAmount = 25.0; // total amount of damage tank can withstand
suspensionRange = 0.8; // proportion of wheel size for wheel to move up/down

DamageScale = 1.1; // multiply damage we do to others by this amount
armorScale = 1.0; // multiply damage we take by this amount (note: smaller better)

DefaultProjectile = "LightProjectile";
ai = GoldLightAI;

};

 

To this:

 

Datablock TankData(KingUfo : MediumTank)
{
shapeFile = "~/data/shapes/Boss/Boss .dts"; // or the path where you put "kingufo"
brainShapeFile = "~/data/shapes/tanks/brainjar04.dts";
fx = "BabyBossFX";

MaxSpeed = 15.0; // meters per second (in forward direction)
accelRate = 20.0; // increase velocity this many meters per second
deccelRate = 20.0; // when breaking, decrease velocity
turnRate = 65.0; // degrees per second
antiSlideRate = 10.2;

TurretHorRange = 33.5; // range in +/- degrees of turret horizontally
turretAutoLevel = 0.92;

DamageAmount = 25.0; // total amount of damage tank can withstand
suspensionRange = 0.8; // proportion of wheel size for wheel to move up/down

DamageScale = 1.1; // multiply damage we do to others by this amount
armorScale = 1.0; // multiply damage we take by this amount (note: smaller better)

DefaultProjectile = "LightProjectile";
ai = GoldLightAI;

};

 

That should help XD XD XD ;) XD XD XD :P :P :P :P :P :P :P :P %) ;) XD :) :)

Last edited: Sunday, November 26, 2006 at 8:48:37 AM

Sunday, November 26, 2006 at 8:43:39 AM

Still not working
is it one of those things where you have to put it in a specific folder like newshapes 1 or something?
also, maby you could change the download so it comes with mediumufo.dts.

Sunday, November 26, 2006 at 11:04:43 AM

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