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 add extra bots to your server?

Modding questions, answers, help.....

Moderators: Warfare, Admin, Moderator

Post Reply
User avatar
Major
Veteran Heavy
Veteran Heavy
Posts: 250
Joined: Sun Jan 07, 2007 9:00 am
Location: Phoenix Arizona

How do you add extra bots to your server?

Post by Major »

I would like to add extra bots to my server. Instead of playing 4 on 3. I would like to make it 4 on 4. :?
Image
00E
Need Major Repair
Need Major Repair
Posts: 1659
Joined: Sat Nov 01, 2008 8:38 am
Location: Pennsylvania
Contact:

Re: How do you add extra bots to your server?

Post by 00E »

Okay Doke... first off What type of computer to you have so I can explain it better
Has Been Playing TT Since February 18, 2004
Mods Made: 17
TT2 Supporter
User avatar
Major
Veteran Heavy
Veteran Heavy
Posts: 250
Joined: Sun Jan 07, 2007 9:00 am
Location: Phoenix Arizona

Re: How do you add extra bots to your server?

Post by Major »

Windows XP os.
Image
User avatar
Dazzle
Evil Site Admin
Evil Site Admin
Posts: 1320
Joined: Fri Dec 29, 2006 6:59 am
Location: London, England
Contact:

Re: How do you add extra bots to your server?

Post by Dazzle »

^^ OS is not important!!

Major, go to your server folder (thinktanks/game/server) and find a file called prefs right click on it and open it with notepad, you will see something like this or just copy what is below and paste in then edit.

Code: Select all

$pref::Server::Bot0 = "GoldLightTank";
$pref::Server::Bot1 = "GoldMediumTank";
$pref::Server::Bot2 = "GoldHeavyTank";
$pref::Server::Bot3 = "GoldLightTank";
$pref::Server::Bot4 = "GoldLightTank";
$pref::Server::Bot5 = "GoldMediumTank";
$pref::Server::Bot6 = "GoldHeavyTank";
$pref::Server::Bot7 = "GoldLightTank";
$pref::Server::BotName0 = "Bot 1";
$pref::Server::BotName1 = "Bot 2";
$pref::Server::BotName2 = "Bot 3";
$pref::Server::BotName3 = "Bot 4";
$pref::Server::BotName4 = "Bot 5";
$pref::Server::BotName5 = "Bot 6";
$pref::Server::BotName6 = "Bot 7";
$pref::Server::BotName7 = "Bot 8";
$pref::Server::BotTeam0 = "GreenTeam";
$pref::Server::BotTeam1 = "GreenTeam";
$pref::Server::BotTeam2 = "GreenTeam";
$pref::Server::BotTeam3 = "GreenTeam";
$pref::Server::BotTeam4 = "BlueTeam";
$pref::Server::BotTeam5 = "BlueTeam";
$pref::Server::BotTeam6 = "BlueTeam";
$pref::Server::BotTeam7 = "BlueTeam";
$Pref::Server::ConnectionError = "You do not have the correct version of the Torque Game Engine or the related art needed to connect to this server, please contact the server operator to obtain the latest version of this game.";
$Pref::Server::DisplayOnMaster = "Always";
$Pref::Server::FloodProtectionEnabled = 1;
$Pref::Server::gameTypeIndex = "2";
$pref::Server::MaxBots = 8;
$Pref::Server::MaxChatLen = 120;
$Pref::Server::MaxPlayers = 10;
$Pref::Server::missionIndex = 1;
$pref::Server::missionWorld = 1;
$Pref::Server::Name = "Major's Server";
$Pref::Server::PasswordEnabled = 0;
$Pref::Server::Port = 28000;
$Pref::Server::RegionMask = 2;
$pref::Server::ReplaceBots = 1;

1) Decide how many bots you want and set that in $pref::Server::MaxBots = 8;
2) There are 3 parts to each bot 1- the bot name, 2- the bot team, and 3 - the bot intelligence . The number of bots always starts at 0, so for 8 bots you have 0-7 - always remember this!!
3) Name your bots using the $pref::Server::BotName0 = "Bot 1"; lines
4) Set your bot teams using the $pref::Server::BotTeam3 = "GreenTeam"; or $pref::Server::BotTeam4 = "BlueTeam";
5) Finally allocate an intelligence to your bot using the $pref::Server::Bot0 = "GoldLightTank"; lines, again bot numbers start at 0

6) VERY IMPORTANT- before you boot up your server go back to your server folder (thinktanks/game/server) and find a file called prefs.cs.dso and delete this file, if you do not delete this file the changes you have made to the prefs.cs will not have any effect. FYI the cs.dso files are compiled from the .cs file when you boot up your server the prefs.cs.dso will recompile with your changes.

Any other issues you are having with your server poet here or email / PM me
User avatar
Major
Veteran Heavy
Veteran Heavy
Posts: 250
Joined: Sun Jan 07, 2007 9:00 am
Location: Phoenix Arizona

Re: How do you add extra bots to your server?

Post by Major »

Dazzle, you are a good man. Thank you for your time and effort.
Worked like a charm. :tankerwinks:
Image
Post Reply