GearHack

: : :

Add Comment | Related Links | TrackBack
Related Content | Shareomatic!

Battlefield 2: more than 16 bots in single player mode

I recently bought a copy of Battlefield 2. My brother felt that the free War Rock game isn't good enough for him, I guess. He persuaded me to get a copy of Battlefield 2. After looking for the game at Best Buy, Circity City, and several other consumer electronics stores, I finally find a copy at the local Target store while looking for a car maintenance part. How ironic?

Anyway, to get myself up to speed, I have been playing Battlefield 2 in single player mode. However, in single player mode, you can only use the smallest map with 15 bots. It was kinda fun for a while, but I wanted to try bigger battles.

While browsing through the Battlefield 2 installation directory, I realized many Battlefield 2 modules are written in Python and a simple scripting language. After a while, I finally found the "AIDefault.ai" file in the "C:\Program Files\EA Games\Battlefield 2\mods\bf2\AI" directory. Files with ".ai" extension are basically script files in text format. You can easily open them by dragging them to an open Notepad window.

The "AIDefault.ai" file actually teaches you how to change it so that you can have more than 15 bots in single player. I found that the "AIDefault.ai" file defaults to the following settings:


aiSettings.setMaxNBots 16
aiSettings.maxBotsIncludeHumans 1

First line sets the maximum number of bots. The second line determines whether the maximum number include the single player (I believe this is a boolean value). To change the maximum number of bots, you have to use the following statements:


aiSettings.overrideMenuSettings 1
aiSettings.setMaxNBots 64
aiSettings.maxBotsIncludeHumans 0

You have to add the first line. And the maximum bots include humans must be 0. Therefore, if you would like even teams on both sides, set an odd number for maximum number of bots, such as 31 or 63.

Chieh Cheng
Sat, 25 Feb 2006 01:12:28 -0800

You can get more bots in Battlefield 2: Special Forces in the same way. Except "AIDefault.ai" is located in the following directory: "C:\Program Files\EA Games\Battlefield 2\mods\xpack\AI"

Chieh Cheng
Sun, 11 Nov 2007 12:43:30 +0000

many many thanks. been playing for years and now I got it...

zeamone
Fri, 16 Jan 2009 10:11:42 +0000

Great, I hope this works, like hell I do, see, we got bad internet, so I can't rely on multiplayer Battlefield to make maps bigger, and, etc. etc. Be great if this DID work!

RubeusCarcer
Sun, 17 May 2009 01:58:28 +0000

hi i already changed is but in single player it still displays only 16 player maps

here is what the codes are now:

echo *****************************************************************************************
echo AIDefault.ai ****************************************************************************
echo *****************************************************************************************

aiSettings.setNSides 2
aiSettings.setAutoSpawnBots 1
aiSettings.overrideMenuSettings 1
aiSettings.setMaxNBots 32
aiSettings.maxBotsIncludeHumans 0
aiSettings.setBotSkill 1.0

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

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

run BotNames.ai

aiSettings.setInformationGridDimension 32

run AIPathFinding.ai

rem EOF

leo
Mon, 10 Aug 2009 15:28:05 +0000

hey Leo, i'm not sure if u find out yet or not, try this:

echo *****************************************************************************************
echo AIDefault.ai ****************************************************************************
echo *****************************************************************************************

aiSettings.setNSides 2
aiSettings.setAutoSpawnBots 1
aiSettings.overrideMenuSettings 1
aiSettings.setMaxNBots 32
aiSettings.maxBotsIncludeHumans 0
aiSettings.setBotSkill 1.0

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

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

run BotNames.ai

aiSettings.setInformationGridDimension 32

run AIPathFinding.ai

rem EOF

Ken
Tue, 22 Sep 2009 09:55:06 +0000

i tried to add the mod for the single player, but when i try to save it, it says that the pathname or files are incorrect. This is what i have. What should i do to fix it?

echo *****************************************************************************************
echo AIDefault.ai ****************************************************************************
echo *****************************************************************************************

aiSettings.setNSides 2
aiSettings.setAutoSpawnBots 1
aiSettings.overrideMenuSettings 1
aiSettings.setMaxNBots 32
aiSettings.maxBotsIncludeHumans 0
aiSettings.setBotSkill 1.0

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

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

run BotNames.ai

aiSettings.setInformationGridDimension 32

run AIPathFinding.ai

rem EOF

sean
Mon, 28 Sep 2009 17:18:33 +0000

uhh i still dont get this couse in my place it says

echo *****************************************************************************************
echo AIDefault.ai ****************************************************************************
echo *****************************************************************************************

aiSettings.setNSides 2
aiSettings.setAutoSpawnBots 1

aiSettings.setMaxNBots 64
aiSettings.maxBotsIncludeHumans 1
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

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

run BotNames.ai

aiSettings.setInformationGridDimension 32

run AIPathFinding.ai

rem EOF

AND I DONT KNOW WHAT TO DO AND THE BOTS ARE STILL 16

LeoKilo
Sat, 03 Oct 2009 20:17:20 +0000

you forgot this important line

aiSettings.overrideMenuSettings 1

Nameless
Sun, 07 Feb 2010 21:38:46 +0000

HELLO!

DO YOU KNOW HOW TO PLAY WITH MORE THAT 16 BOTS OR WITH THE LARGER MAPS IN A MAC?

THANK YOU!!

Javier Chacon
Wed, 14 Apr 2010 20:29:02 +0000

Add Comment | Related Links | TrackBack
Related Content | Shareomatic!

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your message unless it is relevent to this thread.
Attach File:
(20 MB Max)
Spam Protection: * Sum of 7 + 7?
Click button only once, please!

TrackBack

Send Ping | TrackBack URL | Spam Control

No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.

Messages, files, and images copyright by respective owners.

Articles | Wiki
Forums | Latest | RSS
Library | Links | News
Search | Store | Help

33 Users Online

Hacking Digital Cameras


Amazon Associate




Copyright © 2004 - 2010. All Rights Reserved.