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.
Before you start
Section titled “Before you start”- Your game folder is where
BF2142.exelives, usuallyC:\Program Files (x86)\Electronic Arts\Battlefield 2142. - You’ll edit
AI\AIDefault.aiinsidemods\bf2142for vanilla, or inside your mod’s folder. - Back it up first by copying it as
AIDefault_o.ai, so you can always restore it.
-
Open
AI\AIDefault.aiwith a text editor. -
Near the top, replace these three lines:
Terminal window aiSettings.maxBotsIncludeHumans 1aiSettings.setMaxNBots 16aiSettings.setBotSkill 0.4with:
Terminal window aiSettings.overrideMenuSettings 1aiSettings.maxBotsIncludeHumans 0aiSettings.setMaxNBots 32aiSettings.setBotSkill 1.0overrideMenuSettings 1lets the file override the game’s 16-bot limit. It must come before the other lines.maxBotsIncludeHumans 0means human players don’t count towards the bot total.setMaxNBotsis the number of bots. Around 48 is a good start, as too many can slow down or crash lower-end PCs.setBotSkillgoes from 0 to 1, and higher means tougher bots.
-
Lots of bots means lots of UAVs, sentry guns and drones. If some stop appearing, raise
aiSettings.setMaxNAutoControllers, the limit for AI-controlled equipment. -
Save the file.
Can’t save? Copy the file to your desktop, edit it there, then copy it back.
Good to know
Section titled “Good to know”- 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.aiand start again.
Default content of AIDefault.ai
echo *****************************************************************************************echo AIDefault.ai ****************************************************************************echo *****************************************************************************************
aiSettings.setNSides 2aiSettings.setAutoSpawnBots 1aiSettings.setMaxNAutoControllers 256
aiSettings.maxBotsIncludeHumans 1aiSettings.setMaxNBots 16aiSettings.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 performancerem and may even crash your game. That being said, you will most likely be able to run a lotrem more bots than 15 on your system.
rem Example for 32 bot game with expert bots
beginremaiSettings.overrideMenuSettings 1aiSettings.maxBotsIncludeHumans 0aiSettings.setMaxNBots 32aiSettings.setBotSkill 1.0endrem
run BotNames.ai
aiSettings.setInformationGridDimension 32
aiSettings.setDiscoverCloakedEnemiesDistance 3.0
run AIPathFinding.airun AutoControllers.ai
rem EOFCredits
Section titled “Credits”- asdasdadsdasdasdasda for explaining how to change the bot count @ How To Change The Singleplayer Bot Count