GearHack

: : :

Add Comment | Related Links | TrackBack
Related Content

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

Cheers, this explanation was most helpful. Now time to experiment and see how much my computer can take at once ;)

Chrissomerry
Mon, 13 Dec 2010 12:06:05 +0000

can't save the file
notepad says its impossible or something like that(my system is in dutch :P)

mitchel
Sun, 19 Dec 2010 08:56:27 +0000

disable "read-only" in properties

You can do this by right clicking "EA Games"(located in C:\program files)and selecting properties

Solyendo
Wed, 22 Dec 2010 18:10:35 +0000

And is there any possibility to load bigger versions of maps in SP as you can while creating a LAN game? For instance "Strike at Karkand 32" instead of "Strike at Karkand 16".

Kana
Sat, 25 Dec 2010 13:26:53 +0000

WHEN I TRY TO SAVE IS SAYS THAT IT CANNOT CREATE (FILE NAME) MAKE SURE THE PATH AND FILE NAME ARE CORRECT
I TOOK IT OFF READ ONLY BUT IT STILL DOES THIS

zach
Sun, 26 Dec 2010 07:02:33 +0000

copy the file somewhere else then edit you need and after that replace the original file. worked for me.

Kana
Sun, 26 Dec 2010 11:50:36 +0000

hi i'm nel i use this and its ok.. 50-50..just try this..
echo *****************************************************************************************
echo AIDefault.ai ****************************************************************************
echo *****************************************************************************************

aiSettings.setNSides 2
aiSettings.setAutoSpawnBots 1

aiSettings.overrideMenuSettings 1
aiSettings.setMaxNBots 100
aiSettings.maxBotsIncludeHumans 0
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

Ronnel
Sun, 02 Jan 2011 19:07:59 +0000

can i ask you??? how can i add more points on single player... its only 200 points..i want to add more at least 600 points... pls. reply... thank you in advance.

nel
Sun, 02 Jan 2011 19:12:26 +0000

just try this...i know you would like it...ok..?

Attached File: AIDefault.ai (1 KB)

nel
Sun, 02 Jan 2011 19:15:42 +0000

@ Ronnel go to (D:\Battle Field2\Battlefield 2\mods\bf2\python\game\gamemodes) and drag gpm_cq.py to notepad, then find this line
# setup ticket system
ticketsTeam1 = calcStartTickets(bf2.gameLogic.getDefaultTickets(1))
ticketsTeam2 = calcStartTickets(bf2.gameLogic.getDefaultTickets(2))

then change it to

# setup ticket system
ticketsTeam1 = calcStartTickets(300)
ticketsTeam2 = calcStartTickets(300)

close then save.. note that the amount the number you put in that line gives twice the ticket ratio in game.. hope it helped..

whatsittoya
Tue, 25 Jan 2011 03:40:43 +0000

lol! my reply was meant for nel sorry bout that..

whatsittoya
Tue, 25 Jan 2011 03:42:51 +0000

Hello Sir.. Thank you.. One more Question sir. How to make a 32 to 64 players map in singleplayer?? Its to small for me.. I want a big with jets and helicopters.. thank you...

Ronnel
Fri, 15 Apr 2011 08:31:45 +0000

MAY THIS HELP. :)
Go to your battlefield 2 folder which should be C:\Program Files\EA GAMES\Battlefield 2..
Once you have gone into this folder then proceed to the mods folder then to the bf2 folder, once in there open the AI folder and go to a file called "AIDefault.ai"
To Open a File using Notepad do the following. Right click on this file and go to "open with". Select "select program from list." a new window will open with a list of programs that you have on your computer. Click on Notepad and untick the box that says "Always use this selected program to open this file" Press Ok.

The file will open and it should have text in it looking exactly like what is shown below.
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

Once done. It should look like the below text.

echo ****************************************…
echo AIDefault.ai ****************************************…
echo ****************************************…
aiSettings.setNSides 2
aiSettings.setAutoSpawnBots 1
rem aiSettings.overrideMenuSettings 1
rem aiSettings.setMaxNBots 32
rem aiSettings.maxBotsIncludeHumans 0
rem 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

Now Save.
Dont forget to remove the red REM so you can enable the bots
And now you will have more than 16 bots and now the larger maps are playable in singleplayer. If you want say 64 bots. Where it says " rem aiSettings.setMaxNBots 32 " change the 32 to 64 or 128. It should work. Just make sure your system can handle it.

Go CATCH me!!
Sat, 07 May 2011 08:21:34 +0000

If my way doesn't work, you can try this 64 player mod. It was the easiest way.

[FilePlanet.com]> http://download.direct2drive.com/ftp1/082005/bf2sp64_103.exe . . .
[SoftPedia.com]> http://games.softpedia.com/get/Mods-Addons/Battlefield-2-Sin . . .

Go CATCH me!!
Sat, 07 May 2011 08:28:45 +0000

It keeps on crashing. Somebody help please?

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

Gammau
Thu, 12 May 2011 06:40:44 +0000

I was making a big mistake fussing with the bots and I got this weird problem. Whenever I choose a mod and a map it gives me the wrong number of bots. For a 32 map sometimes will only show 16 players (with bots included) and in the others for 64-maps only show around 32 bots including myself as a player. How do I fix this? This is getting frustrating.

Nick
Mon, 19 Sep 2011 18:41:23 +0000

hi iwas wondering if there was a clearer way to explain to me how to get a bigger map everything i do it turns out the same i dont know if im retarded or what its kinda pissing me off the internet sucks here in afghanistan and im waiting for il 2 to get here with my joystick i just want to play the game on a big map thanks.

beau
Tue, 25 Oct 2011 14:57:56 +0000

REMEMBER!!!

Always write the most important line on the first part.

aiSettings.overrideMenuSettings 1

and set aiSettings.maxBotsIncludeHumans to 0

It won't work at all unless you do this

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

aiSettings.setNSides 2
aiSettings.setAutoSpawnBots 1
aiSettings.overrideMenuSettings 1
aiSettings.setMaxNBots 64
aiSettings.maxBotsIncludeHumans 0
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

Alex
Fri, 28 Oct 2011 19:27:14 +0000

if u cant save ur edited notepad check if the file still "read only", right click, propertise and uncheck it
maybe can solve the problem

raven
Thu, 03 Nov 2011 06:43:12 +0000

Does it work with the steam version? because it seems that while i followed all the instructions i STILL can't get it to work and i'm very frustrated...help lol

Adrian
Tue, 28 Feb 2012 02:21:28 +0300

It works. Now 64 bots are spawning but the map size is still 16.. What to do??

Abhinandan
Sat, 17 Mar 2012 13:59:16 +0300

ai eu sei como jogar com 50 bots

é assim

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

aiSettings.setNSides 2
aiSettings.setAutoSpawnBots 1

REM Original AIX bot settings in case you need to copy and paste below
REM aiSettings.overrideMenuSettings 1
REM aiSettings.setMaxNBots 31
REM aiSettings.maxBotsIncludeHumans 0
REM aiSettings.setBotSkill 0.70
REM
REM *** keep the above lines intact in case you need to copy/paste them below ***

REM *** make changes here ***
REM *** max possible bots in assigned squads is 107, any more than 107 bots will not receive orders from commander
REM *** overrideMenuSettings 1 must be set, otherwise mod and map defaults will take precedence ***
REM *** botskill range is .10 to 1.00 ***
REM

aiSettings.overrideMenuSettings 1
REM ****CHANGE BOT NUMBER HERE! *****
aiSettings.setMaxNBots 50
aiSettings.maxBotsIncludeHumans 0
aiSettings.setBotSkill 0.9
REM

run BotNames.ai

aiSettings.setInformationGridDimension 48

run AIPathFinding.ai

rem EOF

anonymous
Tue, 27 Mar 2012 20:27:29 +0400

[Mapa Grande Tamanho 64+Bots]

Bem simple, muita gente aqui j� deve saber... mas como estava procurando e vi muitas duvidas resolvi ajudar.

Primeiro de tudo !!!

v� até

HD:\...\EA Games\Battlefield 2\mods\bf2\AI

Fa�a um Backup do arquivo "AIDefault"

Agora fa�a download disso aqui.

Somente usu�rios registrados poder�o ver os links.

Nesse arquivo v�o estar 2 arquivos "bf2modify" e "BFSP64_103"

1° se clica BFSP64_103 e aperta Accept e deixa o resto com o programa

ps. o objetivo dele é colocar os mapas de tamanho 64 multiplayer para vers�o singleplayer

2° se clica em bf2modify

Clica em "Open" e coloca

HD:\...\EA Games\Battlefield 2\mods\bf2\AI\AIDefault.ai

Seleciona a quantidade de Bots na barrinha superior
e seleciona o n�vel dos Bots embaixo

Depois clica em "Set Bots"

ps. Coloque um n° de bots suportaveis com sua m�quina.

Agora é s� divers�o....

================================================== ==========
================================================== ==========

Deu Erro pra jogar online ???? voc� foi kikado qnd entro num servidor ???

Para isso:

pra jogar ONLINE vc ter� q desistalar o "BFSP64_103"
e coloca o Backup do arquivo "AIDefault" no lugar certo

HD:\...\EA Games\Battlefield 2\mods\bf2\AI

Para desistalar o "BFSP64_103" é�s� clicar em "restore"
ps. é um icone q aparece logo dps q vc istala

Pronto j� pode jogar Online novamente

================================================== ==========
================================================== ==========

Detalhe, qnd vc acessar seu jogo... colocar singleplayer... nao vai notar diferen�a nenhuma... vai estar igual o nome do mapa... 16 os bots.. até a foto...

Bom jogo.

[Destravando Armas Para Modo Single Player]

Existe um modo de destravar as armas editando o jogo.

Abra o arquivo "unlocks.py" que se encontra em "Ea GamesBattlefield 2PythonBf2Stats".

Procure a linha 44 do arquivo que diz "defaultUnlocks = [0, 0, 0, 0, 0, 0, 0]".

Aletere para "defaultUnlocks = [1, 1, 1, 1, 1, 1, 1]".

Agora as armas estar�o destravadas. Na tela de sele��o de armas haver� uma setinha indicando no canto de cada sele��o de armas indicando que voc� pode mudar para a outra arma.

Obs:Abra o Arquivo em Bloco de Notas!

anonymous
Tue, 27 Mar 2012 20:32:11 +0400

Please can anybody help me.

I want to play BF2 in SP on 64map size with 63 bots. I tried a LOT of mods even the one witch is linked above. I tried to change the AIDefault.ai but all it does is: SP is still only playable on 16map size but with 63 bots. The big 64maps are still not there.
With 63 bots on a 16map size my computer didn't crash, no problem at all, but I want to play on 64map. It seams like the problem was solved here because there where no other posts but please is there anyone who can help me.

Max
Sun, 02 Dec 2012 21:16:11 +0300

http://www.fileplanet.com/156004/download/Battlefield-2---Si . . .
that link should bring you to a site where you can download this setting..just install it,i guarantee man,it works..because it's work for me :D

aLeck Hranica
Fri, 01 Mar 2013 03:13:32 +0300

hye...
i still can't play 64map even i download file from linked above..all of it..

yo
Wed, 11 Jun 2014 23:08:03 +0400

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

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 submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 2 + 2?
Click button only once, please!

TrackBack

TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

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

233 Users Online

Hacking Digital Cameras
Fun for Photographers


Get Our

Memecoins!



Hacking Digital Cameras
Fun for Photographers

Amazon Associate






Copyright © 2004 - 2024. All Rights Reserved.