How I can get more BOT's on SP?

Help and support regarding PR:BF2 installation and in-game issues
Post Reply
dannysaster
Posts: 3
Joined: 2013-01-04 20:46

How I can get more BOT's on SP?

Post by dannysaster »

I need some help with this please, I usually play in the SP mode, and I only get more BOT's changing the AI settings, but I have a big problem, when I launch PR and start a map, the factions are not balanced, something like British 66 x MEC 16, I search every post on the foruns, and I find nothing, somebody can help me please?

I read something about the maximum number of BOT's that the balance is suported, 96 I think, but it already don't working...
HELP ME please fellas :sad:
LITOralis.nMd
Retired PR Developer
Posts: 5658
Joined: 2010-04-10 16:15

Re: How I can get more BOT's on SP?

Post by LITOralis.nMd »

Yes, I think 98 is the maximum.
I do not know how to do this , but I'll try to find someone who does.
If you can find spyker,m I know he knows how to do this.
dannysaster
Posts: 3
Joined: 2013-01-04 20:46

Re: How I can get more BOT's on SP?

Post by dannysaster »

[R-COM]LITOralis.nMd wrote:Yes, I think 98 is the maximum.
I do not know how to do this , but I'll try to find someone who does.
If you can find spyker,m I know he knows how to do this.
Oh Thanks mate, I'm new on the forum and I dont know to operate to searck the man, if I found he I will talk to him, but thank chaver!
LITOralis.nMd
Retired PR Developer
Posts: 5658
Joined: 2010-04-10 16:15

Re: How I can get more BOT's on SP?

Post by LITOralis.nMd »

OK, In a local COOP server it is very easy to increase the amount of bots beyond the default menu limitation, by simply modifying the aidefault.ai file in notepad.

BF2\mods\pr\ai\AIdefault.ai is what you want to manually change in notepad.

https://www.realitymod.com/forum/f311-c ... -team.html


[Note: aidefault.con was renamed to aidefault.ai in the PR v1.0 release, but the contents and use of the file remain the same]
Last edited by LITOralis.nMd on 2014-09-15 07:03, edited 2 times in total.
User avatar
Michael Z Freeman
Posts: 240
Joined: 2009-03-27 18:45

Re: How I can get more BOT's on SP?

Post by Michael Z Freeman »

Starting with that many bots from in the BF2/PR in game menu will severely tax the CPU as I've found out. Even with ~40 bots I get occasional dips in performance. Running a dedicated server on the same machine and connecting to that puts the AI on another thread (all the AI calculations are done on the server). However I don't know if this is possible with the way PR python files are set up. In other mods I just copy across all the mod files to the dedicated server, but PR is set up differently and does not seem to allow this.
LITOralis.nMd
Retired PR Developer
Posts: 5658
Joined: 2010-04-10 16:15

Re: How I can get more BOT's on SP?

Post by LITOralis.nMd »

\mods\pr\settings\serversettings.con
[R-DEV] melonmuncher wrote:GameServerSettings.setCoopBotRatio 100
GameServerSettings.setCoopBotCount 80
GameServerSettings.setCoopBotDifficulty 100
GameServerSettings.setTeamRatio 100

Should work
I think this was renamed in PR v1.0 release to this:

Code: Select all

sv.coopBotRatio 50
sv.coopBotCount 48
sv.coopBotDifficulty 90

But I'm not sure, so back up the file before you edit it, so you can at least keep a working copy.
melonmuncher
PR:BF2 Developer
Posts: 266
Joined: 2012-01-13 05:14

Re: How I can get more BOT's on SP?

Post by melonmuncher »

Max bots is 96, after that the ratios become skewed.

For 96 bots, 48 on each team set AIDefault.ai to look like this

Code: Select all

rem *** PRSP Ai v5 ***

echo **************************************************************************
echo ********************PROJECT****REALITY****AI****LOADED********************
echo **************************************************************************

aiSettings.setNSides 2
aiSettings.setAutoSpawnBots 1

rem aiSettings.setMaxNBots 64
rem aiSettings.maxBotsIncludeHumans 1
rem aiSettings.setBotSkill 0.4

rem To override the amount of bots used in PRSP, use the following lines instead of the three lines above.
rem This will render the ingame menu and serversettings.con bot settings not used, as the following lines
rem of code overrides those settings.
rem Just remove the "rem" in front of the lines to make it read by the game, then edit the numbers as needed.

aiSettings.overrideMenuSettings 1
aiSettings.setMaxNBots 96
aiSettings.maxBotsIncludeHumans 0
aiSettings.setBotSkill 0.9

run botnames.ai
aiSettings.setInformationGridDimension 48
rem aiDebug.draw 1
run aipathfinding.ai
Then launch the game.

When creating a coop game change the sliders to look like this
Image
That will Put 48 bots on each team.


Bot ratio should stay at 100 and the bot count should be half the number defined in the aidefault.ai

So if you wanted 64 bots you would change aidefault.ai number of bots to 64 and change the ingame slider ratios to
bot ratio: 100
number of bots: 32
SANGUE-RUIM
Posts: 1390
Joined: 2009-04-26 12:37

Re: How I can get more BOT's on SP?

Post by SANGUE-RUIM »

thanks melon, those steps worked like a charm
dannysaster
Posts: 3
Joined: 2013-01-04 20:46

Re: How I can get more BOT's on SP?

Post by dannysaster »

oh Thank all you!
It work here, with beautiful 48 terrorists on the other side of the moon to kill!
Oh yeah!
:-D :-D :-D :-D :-D :-D :-D :-D :-D :-D :-D :-D :-D :-D
:24_smoker
Post Reply

Return to “PR:BF2 Support”