Forgotten Hope Public Forum

Forgotten Hope 2 => FH2 Help / Support => Topic started by: kacklabbe on 06-09-2009, 11:09:13

Title: more than 16 Bots
Post by: kacklabbe on 06-09-2009, 11:09:13
Hello

i would try some singleplayer but i can´t get more than 16 Bots. I´ve try the aidefault.con and the fh2tool box

but every time i load a map there are 16 Bots and no 40 like my settings

can any one help me pls

kacklabbe
Title: Re: more than 16 Bots
Post by: NTH on 06-09-2009, 12:09:16
Go to you default location for Battlefield 2, look for the FH2 mod folder, there in should be an AI folder, ie:

C:\Program Files (x86)\EA GAMES\Battlefield 2\mods\fh2\ai

In that folder is a file called, aidefault.ai, make a backup before editing this file.

In the file you should have the following lines:


aiSettings.setNSides 2
aiSettings.setAutoSpawnBots 1

aiSettings.overrideMenuSettings 1
aiSettings.setMaxNBots 80
aiSettings.maxBotsIncludeHumans 0
aiSettings.setBotSkill 0.5

Save it and now you can play with 80 bots, hope your PC can handle it  :D


Title: Re: more than 16 Bots
Post by: kacklabbe on 06-09-2009, 13:09:07
Thanks

for the answer i tried it befor but i forgot to write "aiSettings.overrideMenuSettings 1"

Title: Re: more than 16 Bots
Post by: Cory the Otter on 07-09-2009, 02:09:45
whenever I try to save it, i get an error message saying 'Cannot create the file (shows file's intended location) Make sure the path and file name are correct.'
Title: Re: more than 16 Bots
Post by: killerbee256 on 07-09-2009, 10:09:55
I was having trouble with this as well, but I solved it by down loading a "bot modifer" program.
Title: Re: more than 16 Bots
Post by: SJonni on 07-09-2009, 16:09:30
I can't open that file at all.
Title: Re: more than 16 Bots
Post by: Cory the Otter on 07-09-2009, 17:09:42
I was having trouble with this as well, but I solved it by down loading a "bot modifer" program.

Linkage?
Title: Re: more than 16 Bots
Post by: NTH on 07-09-2009, 19:09:08
I can't open that file at all.

Use notepad or wordpad.
Title: Re: more than 16 Bots
Post by: NTH on 07-09-2009, 20:09:51
I was having trouble with this as well, but I solved it by down loading a "bot modifer" program.

Linkage?

http://bf2sp64.googlepages.com/ (http://bf2sp64.googlepages.com/)
Title: Re: more than 16 Bots
Post by: killerbee256 on 07-09-2009, 20:09:17
http://battlefield2.filefront.com/file/128_Bot_Modifier;45602
Title: Re: more than 16 Bots
Post by: SJonni on 07-09-2009, 21:09:19
I can't open that file at all.

Use notepad or wordpad.

When I press "Open in", the same message pops up.
Title: Re: more than 16 Bots
Post by: NTH on 08-09-2009, 11:09:06
I can't open that file at all.

Use notepad or wordpad.

When I press "Open in", the same message pops up.

And which message would that be....
Title: Re: more than 16 Bots
Post by: SJonni on 08-09-2009, 15:09:20
I can't open that file at all.

Use notepad or wordpad.

When I press "Open in", the same message pops up.

And which message would that be....

"Can not open this file. This file cannot be opened if Windows doesn't know which program that created it"

Translated from Norwegian.
Title: Re: more than 16 Bots
Post by: NTH on 08-09-2009, 15:09:18
I'll make this computer illiterate proof for you.

Go to the file -> Right Click with you mouse on it -> from the menu choose open with -> Now from the program list choose notepad or wordpad.

If this fails buy me a ticket to Norway ...
Title: Re: more than 16 Bots
Post by: SJonni on 08-09-2009, 16:09:49
I'll make this computer illiterate proof for you.

Go to the file -> Right Click with you mouse on it -> from the menu choose open with -> Now from the program list choose notepad or wordpad.

If this fails buy me a ticket to Norway ...

Nope, when I press "open with", I get that message. And i'm a bit short on money, so I can't buy you a ticket.
Title: Re: more than 16 Bots
Post by: NTH on 08-09-2009, 20:09:47
Yes but you should have an option somewhere to choose the right program.
You are using windows, right?
Anyhow try this.

Startmenu --> Run -> type notepad
Now notepad is opened.
In notepad go to File - open.  At this moment you are only able to see .txt documents so you need to switch to All files (see screenshot).
Now go the the file you want to open and you are done.

If this does not work I give up.
Title: Re: more than 16 Bots
Post by: Cory the Otter on 17-09-2009, 22:09:53
i got it working the save correctly with wordpad, but it crashes every time i join my SP game, no matter what number of bot s I put in.

Here's my text. If your text works, copy paste it in your post and ill try it out.


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

aiSettings.setNSides 2
aiSettings.setAutoSpawnBots 1

aiSettings.overrideMenuSettings 1
aiSettings.setMaxNBots 80
aiSettings.maxBotsIncludeHumans 0
aiSettings.setBotSkill 0.5


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
Title: Re: more than 16 Bots
Post by: NTH on 18-09-2009, 12:09:22
i got it working the save correctly with wordpad, but it crashes every time i join my SP game, no matter what number of bot s I put in.

Here's my text. If your text works, copy paste it in your post and ill try it out.


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

aiSettings.setNSides 2
aiSettings.setAutoSpawnBots 1

aiSettings.overrideMenuSettings 1
aiSettings.setMaxNBots 80
aiSettings.maxBotsIncludeHumans 0
aiSettings.setBotSkill 0.5


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

Looks good! Crashing is not related to your AiDefault.ai settings.
Title: Re: more than 16 Bots
Post by: :| Hi on 04-10-2009, 03:10:17
I can't open that file at all.

Use notepad or wordpad.

Besure to copy the file before opening it. Take out the file you want and put it onto your desktop, right click,press propeties and make sure its not "Read-only" uncheck that and make sure you change it to where it opens in notepad/wordpad. save it and you should be able to tinker to your hearts content
Title: Re: more than 16 Bots
Post by: ouech on 27-10-2009, 17:10:56
the BF2 modifier doesn't work! I also tried to change the text of the aidefault.ai file but it doesn't work too!
can someone help me, because I'm not allowed to play online!
Title: Re: more than 16 Bots
Post by: NTH on 27-10-2009, 23:10:22
the BF2 modifier doesn't work! I also tried to change the text of the aidefault.ai file but it doesn't work too!
can someone help me, because I'm not allowed to play online!

Post you aidefault.ai file or make a screenshot of it and post that here.
Title: Re: more than 16 Bots
Post by: ouech on 28-10-2009, 15:10:42
Here is my aidefault.ai file (C:\Program Files\EA GAMES\Battlefield 2\mods\fh2\ai):

"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 0
rem aiSettings.setMaxNBots 80
rem aiSettings.maxBotsIncludeHumans 0
rem aiSettings.setBotSkill 1.0

run BotNames.ai

aiSettings.setInformationGridDimension 32


run AIPathFinding.ai

rem aiDebug.draw 1


rem EOF
"
Title: Re: more than 16 Bots
Post by: NTH on 28-10-2009, 15:10:07
Here is my aidefault.ai file (C:\Program Files\EA GAMES\Battlefield 2\mods\fh2\ai):


Dude, you forgot :
aiSettings.overrideMenuSettings 1
Title: Re: more than 16 Bots
Post by: ouech on 28-10-2009, 17:10:47
I've change that, but it doesn't do anything!
Title: Re: more than 16 Bots
Post by: NTH on 29-10-2009, 13:10:53
I've change that, but it doesn't do anything!

Once again show your default.ai file.
Title: Re: more than 16 Bots
Post by: ouech on 04-11-2009, 11:11:41
here is my aidefault.ai file :

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 0
rem aiSettings.setMaxNBots 32
rem aiSettings.maxBotsIncludeHumans 0
rem aiSettings.setBotSkill 1.0

run BotNames.ai

aiSettings.setInformationGridDimension 32


run AIPathFinding.ai

rem aiDebug.draw 1


rem EOF
Title: Re: more than 16 Bots
Post by: Eat Uranium on 04-11-2009, 15:11:59
Fixed it.  Just add the red line of text.
here is my aidefault.ai file :

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

aiSettings.setNSides 2
aiSettings.setAutoSpawnBots 1

aiSettings.overrideMenuSettings 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 0
rem aiSettings.setMaxNBots 32
rem aiSettings.maxBotsIncludeHumans 0
rem aiSettings.setBotSkill 1.0

run BotNames.ai

aiSettings.setInformationGridDimension 32


run AIPathFinding.ai

rem aiDebug.draw 1


rem EOF
Title: Re: more than 16 Bots
Post by: NTH on 04-11-2009, 19:11:53
I've change that, but it doesn't do anything!

No dude you didn't it says 0 instead of 1, duh...
Title: Re: more than 16 Bots
Post by: ouech on 05-11-2009, 20:11:23
It doesn't works too!
Title: Re: more than 16 Bots
Post by: cannonfodder on 06-11-2009, 04:11:23
I think your problem is this:

aiSettings.setNSides 2
aiSettings.setAutoSpawnBots 1

aiSettings.overrideMenuSettings 1
aiSettings.setMaxNBots 64
aiSettings.maxBotsIncludeHumans 1  <-- change the 1 to a 0
aiSettings.setBotSkill 0.4

That's the only thing wrong with it that I can see.

My aidefault:
Code: [Select]
echo *****************************************************************************************
echo AIDefault.ai ****************************************************************************
echo *****************************************************************************************
aiSettings.setNSides 2
aiSettings.setAutoSpawnBots 1
aiSettings.overrideMenuSettings 1
aiSettings.setMaxNBots 39
aiSettings.maxBotsIncludeHumans 0
aiSettings.setBotSkill 1.0
run BotNames.ai
aiSettings.setInformationGridDimension 48
run AIPathFinding.ai
rem EOF
Title: Re: more than 16 Bots
Post by: ouech on 07-11-2009, 11:11:46
It doesn't work!
Title: Re: more than 16 Bots
Post by: Ionizer on 07-11-2009, 12:11:08
Make sure the document is write protected (Right click it and make sure you the check the box that says "Read Only") so the game doesn't change it?  I remember someone suggesting that once...
Title: Re: more than 16 Bots
Post by: cannonfodder on 07-11-2009, 12:11:21
It doesn't work!


Ok bloke, here's the thing...changing the aidefault file as described above (and in the file itself) DOES WORK.

I've got 4 installs of BF2 (incl. AIX, FH2, POE2, and PR mods) on two PC's, both running XPSP3. This method of modifying bot numbers/difficulty works on EVERY mod I've got.

If you changed your aidefault file as suggested, it should work. If it doesn't, then I'd say the problem lies elsewhere.

Providing a few more details might shed some light on the problem, dude.

Quote
Make sure the document is write protected...

Yeah, I've heard that too, but mine aren't write-protected and I've never had a problem.