Add More Bots

A lot of BF2142 players want more bots—16 just isn’t enough! Modern PCs can easily handle 64+ bots for a much more immersive experience. If you love bot grinding, you’re in good company. Here’s how to increase the number of bots in your game.

Preparations

  • Do you know where your game directory is? It’s the folder with BF2142.exe and your mods — by default, usually at C:\Program Files (x86)\Electronic Arts\Battlefield 2142.

  • If you want the changes for vanilla BF2142, edit the file in \mods\bf2142. For a specific mod, edit the file in that mod’s folder instead.

  • You’ll be editing the \mods\...\AI\AIDefault.ai file, so it’s smart to make a backup first — just copy the file and add something like _o to the filename. []

Procedures

If you have Remaster mod installed ...

In the launcher, head to the Settings tab, adjust the Bot-Settings as needed, and then click Apply. (You don't have to follow any steps below.)

1

Inside the AI folder, open AIDefault.ai with a text editor.

2

Look for the line aiSettings.setMaxNBots 16 near the top of the file.

3

Change the number to however many bots you want — for example, aiSettings.setMaxNBots 32 for 32 bots.

Keep in mind that []

4

Make sure to set aiSettings.maxBotsIncludeHumans to 0. []

5

Put aiSettings.overrideMenuSettings 1 before the line with aiSettings.maxBotsIncludeHumans 0. []

6

Your file should look something like this around lines 9–12:

aiSettings.overrideMenuSettings 1
aiSettings.maxBotsIncludeHumans 0
aiSettings.setMaxNBots 32
aiSettings.setBotSkill 1.0
7

You can also adjust the bot skill — set aiSettings.setBotSkill to any value between 0 and 1 (higher means tougher bots).

8

If you want to allow more AI-controlled weapons like UAVs, sentry guns, and drones on the map, set aiSettings.setMaxNAutoControllers to a higher value.

The default is 64, which is usually enough, but you can safely increase it to over 100 if needed.

9

Once you’re done, just save your changes!

If you’re unable to save your changes, try dragging the .ai file to your Desktop, make your edits there, and then drag it back when you’re done.

Remarks

  • When you launch the game and select a map, it might still show 16 bots — but if you’ve edited the file correctly, you’ll get the numbers right.

  • Everything is case sensitive — spelling mistakes or wrong capitalization can crash the game!

  • If you host a server with this tweak, your server will have more bots, and players who join won’t need to change anything.

  • If it doesn’t work after editing, try copying the default content below into your AIDefault.ai file, then start all over again from step 1.

Default Content of AIDefault.ai
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

Acknowledgements

Special thanks to:

Last updated

Was this helpful?