Skip to content

More Bots

16 bots just isn’t enough! Modern PCs easily handle 64 or more, and the battles feel so much more alive. It’s a quick file edit.

  • Your game folder is where BF2142.exe lives, usually C:\Program Files (x86)\Electronic Arts\Battlefield 2142.
  • You’ll edit AI\AIDefault.ai inside mods\bf2142 for vanilla, or inside your mod’s folder.
  • Back it up first by copying it as AIDefault_o.ai, so you can always restore it.
  1. Open AI\AIDefault.ai with a text editor.

  2. Near the top, replace these three lines:

    Terminal window
    aiSettings.maxBotsIncludeHumans 1
    aiSettings.setMaxNBots 16
    aiSettings.setBotSkill 0.4

    with:

    Terminal window
    aiSettings.overrideMenuSettings 1
    aiSettings.maxBotsIncludeHumans 0
    aiSettings.setMaxNBots 32
    aiSettings.setBotSkill 1.0
    • overrideMenuSettings 1 lets the file override the game’s 16-bot limit. It must come before the other lines.
    • maxBotsIncludeHumans 0 means human players don’t count towards the bot total.
    • setMaxNBots is the number of bots. Around 48 is a good start, as too many can slow down or crash lower-end PCs.
    • setBotSkill goes from 0 to 1, and higher means tougher bots.
  3. Lots of bots means lots of UAVs, sentry guns and drones. If some stop appearing, raise aiSettings.setMaxNAutoControllers, the limit for AI-controlled equipment.

  4. Save the file.

    Can’t save? Copy the file to your desktop, edit it there, then copy it back.

  • The map screen may still say 16 bots, but the real count in-game is what you set.
  • Everything is case-sensitive: a typo can crash the game.
  • Hosting with this tweak? Your server gets more bots, and players don’t need to change anything.
  • Not working? Paste the default content below into AIDefault.ai and start again.
Default content of AIDefault.ai
Terminal window
echo *****************************************************************************************
echo AIDefault.ai ****************************************************************************
echo *****************************************************************************************
aiSettings.setNSides 2
aiSettings.setAutoSpawnBots 1
aiSettings.setMaxNAutoControllers 256
aiSettings.maxBotsIncludeHumans 1
aiSettings.setMaxNBots 16
aiSettings.setBotSkill 0.4
rem To spawn more than 15 bots in SP, use the following lines instead of the three lines above.
rem Note that this is totaly unsupported, it will affect your system's performance
rem and may even crash your game. That being said, you will most likely be able to run a lot
rem more bots than 15 on your system.
rem Example for 32 bot game with expert bots
beginrem
aiSettings.overrideMenuSettings 1
aiSettings.maxBotsIncludeHumans 0
aiSettings.setMaxNBots 32
aiSettings.setBotSkill 1.0
endrem
run BotNames.ai
aiSettings.setInformationGridDimension 32
aiSettings.setDiscoverCloakedEnemiesDistance 3.0
run AIPathFinding.ai
run AutoControllers.ai
rem EOF