There are three methods of loading bots, two automatically load bots and one is manually using the developer console.

 

 Index

 1. The First Method - The default method.
 2. The Second Method - Auto Bot Quota 
 3. The Third Method - Manual loading bots

 

RCBot 2 when downloaded has the below settings in the config.ini file in the dod\addons\rcbot2\configs folder...

 


#
# To enable "Auto Bot Quota" set the interval to a value above 0 (e.g. 5) (unit is seconds)
# This interval is used to check the human/bot player count
# For more information see bot_quota.ini
rcbot_bot_quota_interval -1
#
# Or use these settings (but dont use them together with the above setting!)
rcbotd config min_bots -1
rcbotd config max_bots 10
#

 

Reading that first section we can see one command rcbot_bot_quota_interval -1 

  • That command is disabled "-1"
  • Setting it to a value of "3" or the recommended "5" will start the built-in system "Auto Bot Quota".
  • The comment "# For more information see bot_quota.ini" means if you do enable the command and start the "Auto Bot Quota" system you also need to set some items in another file called "bot_quota.ini". We will come back to that.

Note in the second section "# Or use these settings (but dont use them together with the above setting!)"

Do take that advice, pick one method, and turn the other off.

The "Auto Bot Quota" system in this case is turned off by default. We will look at the first (default) method first.

 

 

The First Method (the default method)

The RCBot2 plugin will ignore the "Auto Bot Quota" system command rcbot_bot_quota_interval and move on to the normal way to load the bots...

rcbotd config min_bots -1
rcbotd config max_bots 10

 

The first thing to note about the two commands above is they are specifically for an online or LAN dedicated server.

Don't use that for a Listen Server. Note that the first part of the command "rcbotd" has to be changed to "rcbot" (drop the "d" for "dedicated")...

 

rcbot config min_bots -1
rcbot config max_bots 10

 

Next is the top command, the minimum bots command is disabled.

You can set both to what you want but normally you just need the second command for your preferred maximum bots, a lot like other bot programs like Sturmbot.

There is one more command using this method, find this command (the third one from the top of the file)...

 


# The time in seconds for bots to be added after another
rcbot_addbottime 3

 

... the default is already set at 3 seconds, adjust if you want. I found "0" is OK to use if on a Listen server. Its purpose is obviously to slow down bots joining.

If you have 30 join all at once you could crash your server, in saying that for 30 bots on my Ryzen 5 based PC and a Listen Server, I don't crash, sure it places some strain but the PC handles it OK.

 

That covers the first method. So "out of the box" the default config.ini file is set up to load 10 RCBot2 bots on a dedicated server.

As you can see a lot of people will get this wrong, not knowing to drop off the "d" for dedicated if starting a listen server and so on.

 

The Second Method 

This is the "Auto Bot Quota" system using the command "rcbot_bot_quota_interval".

Its main use is a dedicated server that has different amounts of Human players coming and going.

Bots will join and leave based on how many Humans are on a server by you editing and matching what the "maxplayers" setting is on the server.

As you have read above, to use this set "rcbot_bot_quota_interval 5" and the system is started, bots will automatically load 5 seconds apart.

You now need to turn off the first method commands...

 

rcbotd config min_bots -1

rcbotd config max_bots -1

 

Then you need to visit the bot_quota.ini file in the dod\addons\rcbot2\configs folder...

 


# Bot Quota Settings
# To use this settings you have to enable rcbot_bot_quota_interval
# Bear in mind, that the bots also count towards the max_players setting

Humans  "0" => Bots "8" # This is used for the default bot quota (empty server)
Humans  "1" => Bots "9" # 1 Human => 9 Bots => 10 Total Players (Def 9)
Humans  "2" => Bots "8" # 2 Humans => 8 Bots => 10 Total Players
Humans  "3" => Bots "7" # etc.
Humans  "4" => Bots "6"
Humans  "5" => Bots "5"
Humans  "6" => Bots "4"
Humans  "7" => Bots "3"
Humans  "8" => Bots "2"
Humans  "9" => Bots "1"
Humans "10" => Bots "0"

... and so on up to.... Humans "32" => Bots "0"


 

You can edit the quota by changing the file.

 

  • In the default state, you can see this is for a 10-slot server, if no human is on the server, 8 bots are playing.
  • A Human joins, the second line there is adjusted to have another bot join for the maxplayer amount of 10.
  • If another Human joins, a bot leaves, you see that on the third line.
  • It goes on to 10 Humans are on the server (the maximum in this case) and no bots are on the server.

 

So adjust that to your maxplayers settings on your server.

You can use this on a Listen Server too, but mainly it's for a dedicated server.

 

The Third Method. Manual Loading.

This method is normally only used when waypointing. When waypointing the bots are in the way, it's best to set the two systems above to disabled.

However, you may want to add a bot or two for testing.

 

The command to use is  - rcbot addbot

 

Type "rcbot addbot 0 2"  in the console.

What is that broken down?

  • The command "rcbot addbot" = adds a bot.
  • The first number is a value, the class... in this case "0" = Rifleman.
  • The next number is a value, the team assignment... in this case "2" = Allies 

 

The complete options of values are...

  • The first value is "Class" - Rifleman "0"   Assault "1"    Support "2"    Sniper "3"    Machine Gunner "4"    Rocket "5"
  • The second value is "Team" - Allies "2"    Axis "3"   Auto "-1"

 

If you have read the manual in "dod\addons\rcbot2\manual", it has an error.

 Adding bots

Rcbot addbot <class> <team> <name>

You can see a third value there <name> meaning the name of the bot.

 

That doesn't work.

The name is selected randomly from the bot profiles system, you can read how to set that up here

 

...and also the dangers of using the special RCBot2 tool in "dod\addons\rcbot2\toolsRCBotProfiles.exe to do that is no longer advised, as explained here.

 

That completes all 3 methods of loading RCBot2 bots. There is one more using SourceMod plugins on a separate page here.