Page 1 of 1

How I can get more BOT's on SP?

Posted: 2014-09-14 21:57
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:

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

Posted: 2014-09-14 22:27
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.

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

Posted: 2014-09-14 23:18
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!

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

Posted: 2014-09-15 06:57
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]

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

Posted: 2014-09-15 19:43
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.

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

Posted: 2014-09-15 20:41
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.

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

Posted: 2014-09-17 00:28
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

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

Posted: 2014-09-17 19:28
by SANGUE-RUIM
thanks melon, those steps worked like a charm

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

Posted: 2014-12-13 05:22
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