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.

How do you do weird things with servers??

Modding questions, answers, help.....

Moderators: Warfare, Moderator, Admin

User avatar
Simon
A Few Broken Fenders
A Few Broken Fenders
Posts: 210
Joined: Tue May 20, 2008 2:19 pm
Location: Yorkshire, England

How do you do weird things with servers??

Post by Simon »

I have a few servers running and I would like to make them better so I looked into it. There are a 3 things that I still don't know how to do but I would like to,

How to get tanks (other than Medium) faster/ more maneuverable,
How to get more bots &
How to make the bounce back on objects or tanks greater when you hit them.

Anyone know how? :withstupid:

Simon
Artificial Intelligence is no match for Natural Stupidity. :| :lol:
User avatar
MusickTMG
Veteran Light
Veteran Light
Posts: 1903
Joined: Mon Jun 25, 2007 8:59 pm
Location: San Diego, California

Re: How do you do weird things with servers??

Post by MusickTMG »

For your first question, you can find all the information about all the tanks that you have in your server in game/server/scripts/tankdb.cs

For configuring more bots Look here, it is one of the first things on this page Get to know how the bots work, and then you might be able to figure out how to make more, if you dont after you read that, post, and i will tell you how.

For the third question, go to game/server/scripts/tankfx.cs

Find this chunk of text

Code: Select all

datablock TankMiscData(DefaultTankMisc)
{
   boostTicks = 5;           // spread boost over this many ticks
   bounceStatic = 0.4;       // 0->complete stop 1->full reverse
   bounceTank = 0.75;        // 0->complete stop 1->full reverse
   unstuckTime = 20;       // time (in ms) tank can be stuck before getting unstuck boost
   unstuckBoost = 100000;         // velocity boost in m/s
   repairRate = 0.2;         // number of units of damage repaired/second
}
And edit the bounceStatic = 0.4; and bounceTank = 0.75; to a higher number. The bigger the number, the more power

Good luck, and if you have any questions, feel free to pm me, or post here
Musick-TMG-

:duckie: "I got a idea"
User avatar
Simon
A Few Broken Fenders
A Few Broken Fenders
Posts: 210
Joined: Tue May 20, 2008 2:19 pm
Location: Yorkshire, England

Re: How do you do weird things with servers??

Post by Simon »

I've tried the more bots, It worked (Even though I did exactly what I tried before- Probably didn't save it!!) :rockon: ,

And I know that to get thanks faster it has something to do with tankDB but I don't have game/server/scripts/tankdb.cs only game/server/scripts/tankdb.cs.dso and game/server/dash/tankdb.cs (the later is the one where I worked out how to get the Med tank to speed up) so could you be more specific and/or reassure me that I havent broke my Think Tanks and it can all be solved :tankerconfused2: ,

Its a similar story with the Bounce Back I don't have a game/server/scripts/tankfx.cs only a game/server/scripts/tankfx.cs.dso

One down, two to go! :thumbup:

Simon
Artificial Intelligence is no match for Natural Stupidity. :| :lol:
User avatar
TMG Leader
Veteran Light
Veteran Light
Posts: 962
Joined: Mon Jun 25, 2007 10:31 am
Location: In my refrigerator....

Re: How do you do weird things with servers??

Post by TMG Leader »

^ here's all you'll need for changing things in a server, including the two things u mentioned above.
http://supra.planetthinktanks2.com/arch ... iginal.zip

EDIT: No you didn't mess up your tt, Brave Tree didn't release these files with the game, you have to download them separately.
First to fall, last man standing.
User avatar
Simon
A Few Broken Fenders
A Few Broken Fenders
Posts: 210
Joined: Tue May 20, 2008 2:19 pm
Location: Yorkshire, England

Re: How do you do weird things with servers??

Post by Simon »

Erm, wheres all the information I need and where do I put all the downloads?
Artificial Intelligence is no match for Natural Stupidity. :| :lol:
User avatar
MusickTMG
Veteran Light
Veteran Light
Posts: 1903
Joined: Mon Jun 25, 2007 8:59 pm
Location: San Diego, California

Re: How do you do weird things with servers??

Post by MusickTMG »

Put all the files in the download in game/server/scripts

In the tank.db.cs find this

Code: Select all

datablock TankData(LightTank : MediumTank)
{
   shapeFile = "~/data/shapes/tanks/tank01.dts";
   brainShapeFile = "~/data/shapes/tanks/brainjar01.dts";

   maxSpeed = 15.9;          // meters per second (in forward direction)
   accelRate = 14.0;         // increase velocity this many meters per second
   deccelRate = 20.0;        // when breaking, decrease velocity
   turnRate = 61.0;          // degrees per second
   antiSlideRate = 10.9;

   turretHorRange = 53.5;    // range in +/- degrees of turret horizontally
   turretAutoLevel = 0.92;

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

   damageScale = 1.0;        // 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 change the speed of a tank edit the

Code: Select all

maxSpeed = 15.9;
to a higher number. (change the 15.9 to a higher number)




To change what you asked in the third question go to game/server/scripts/tankfx.cs

Find this chunk of text

Code: Select all

datablock TankMiscData(DefaultTankMisc)
{
   boostTicks = 5;           // spread boost over this many ticks
   bounceStatic = 0.4;       // 0->complete stop 1->full reverse
   bounceTank = 0.75;        // 0->complete stop 1->full reverse
   unstuckTime = 20;       // time (in ms) tank can be stuck before getting unstuck boost
   unstuckBoost = 100000;         // velocity boost in m/s
   repairRate = 0.2;         // number of units of damage repaired/second
}
And edit the bounceStatic = 0.4; and bounceTank = 0.75; to a higher number. The bigger the number, the more power

Did that answer all of them?
Musick-TMG-

:duckie: "I got a idea"
User avatar
Simon
A Few Broken Fenders
A Few Broken Fenders
Posts: 210
Joined: Tue May 20, 2008 2:19 pm
Location: Yorkshire, England

Re: How do you do weird things with servers??

Post by Simon »

Thanks TGM Leader and MusickTMG, I've managed to do the three things :thumbup: so this topic is closed (although if you think that there are other things that I might be interested in please post how to do them below)

Simon
Artificial Intelligence is no match for Natural Stupidity. :| :lol:

Who is online

Users browsing this forum: ClaudeBot [Bot] and 17 guests