project reality header
Go Back   Project Reality Forums > Project Reality Support > PR:BF2 Support
20 Jun 2013, 00:00:00 (PRT)
Register Forum RulesDeveloper Blogs Project Reality Members List Search Today's Posts Mark Forums Read
PR:BF2 Support Help and support regarding PR:BF2 installation and ingame issues

Contact Support Team Frequently Asked Questions Register today!

Reply
 
LinkBack Thread Tools Display Modes
Old 07-14-2012, 05:26 PM   #1
Boris
Default Bot Limit

Is it possible to spawn more than 32 bots in coop mode as I haven't been able to do it after editing:

\mods\pr\ai\aidefault.ai
Code:
aiSettings.setNSides 2
aiSettings.setAutoSpawnBots 1

aiSettings.overrideMenuSettings 1
aiSettings.setMaxNBots 64
aiSettings.maxBotsIncludeHumans 1
aiSettings.setBotSkill 1.0
\mods\pr\settings\serversettings.con
Code:
sv.maxPlayers 64
sv.coopBotCount 64
%USERPROFILE%\My Documents\Battlefield 2\Profiles\Default\ServerSettings.con
Code:
sv.maxPlayers 64
sv.coopBotCount 64
%USERPROFILE%\My Documents\Battlefield 2\Profiles\0002\ServerSettings.con
Code:
GameServerSettings.setMaxPlayers 64
GameServerSettings.setCoopBotCount 64
If I don't set the above two %USERPROFILE% configs as read-only then they get rewrote to max 32 by the game.
Boris is offline Reply With Quote
Old 07-14-2012, 07:55 PM   #2
[R-COM]MaSSive
Support Technician

[R-COM]MaSSive's Avatar
Send a message via Skype™ to [R-COM]MaSSive
Default Re: Bot Limit

If you edit aidefault.ai then dont touch bot settings in server setup screen or it will get overwritten. It works for me but if you want to have 64 bots on one side that will not work. May want to decrease bot difficulty a bit, 1.0 seems too extreme.

sv.maxPlayers and sv.CoopBotCount are not dependent on each other. You can set 16 slots for players and still have 64 bots in game.

Note the lines with rem in front on the end of aidefault.ai file. Remove rem in front of them to activate override feature. Read the explanation in file its quite good explained.

Quote:
rem *** PRSP Ai v5 ***

echo ************************************************** ************************
echo ********************PROJECT****REALITY****AI****LO ADED********************
echo ************************************************** ************************

aiSettings.setNSides 2
aiSettings.setAutoSpawnBots 1

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

rem aiSettings.overrideMenuSettings 1
rem aiSettings.setMaxNBots 47
rem aiSettings.maxBotsIncludeHumans 0
rem aiSettings.setBotSkill 0.9

run BotNames.ai
aiSettings.setInformationGridDimension 48
rem aiDebug.draw 1
run AIPathFinding.ai
Do not uncomment rem aiDebug.draw 1 or you will see this





Remove rem only on bold text.


To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.

"If you tremble with indignation at every injustice, then you are a comrade of mine."


[R-COM]MaSSive is offline
Last edited by [R-COM]MaSSive; 07-14-2012 at 08:07 PM..
Reply With Quote
Old 07-14-2012, 11:53 PM   #3
Boris
Default Re: Bot Limit

Hey, thanks for the reply. Sorry for the long post here (skip to end for the answer)...

Quote:
If you edit aidefault.ai then dont touch bot settings in server setup screen or it will get overwritten. It works for me but if you want to have 64 bots on one side that will not work.
OK. I don't generally touch the in-game controls if I have overrideMenuSettings 1 set. I'd normally just select map, add it, then deploy, expecting the override in aidefault.ai to set the botcount/ratio/etc.

Quote:
sv.maxPlayers and sv.CoopBotCount are not dependent on each other. You can set 16 slots for players and still have 64 bots in game.
Hmm, I didn't know that. But, on reading that, I tried setting...

%USERPROFILE%\My Documents\Battlefield 2\Profiles\0002\ServerSettings.con
Code:
GameServerSettings.setMaxPlayers 4
GameServerSettings.setCoopBotCount 64
and...

%USERPROFILE%\My Documents\Battlefield 2\Profiles\Default\ServerSettings.con
Code:
sv.maxPlayers 4
sv.coopBotCount 64
...and it gave me a total of 3 bots plus me in game. It also rewrote those two configs of its own accord to...

Code:
GameServerSettings.setCoopBotCount 48
and...
Code:
sv.coopBotCount 48
...which just messes with my head.

So, I changed it to the following...

%USERPROFILE%\My Documents\Battlefield 2\Profiles\0002\ServerSettings.con
Code:
GameServerSettings.setMaxPlayers 4
GameServerSettings.setCoopBotCount 64
and...

%USERPROFILE%\My Documents\Battlefield 2\Profiles\Default\ServerSettings.con
Code:
sv.maxPlayers 128
sv.coopBotCount 64
...and again, it gave me 3 bots plus me. It also rewrote the configs as before to sv.coopBotCount 48 and GameServerSettings.setCoopBotCount 48.

...

So, let's try something else. If I set the following...

%USERPROFILE%\My Documents\Battlefield 2\Profiles\0002\ServerSettings.con
Code:
GameServerSettings.setMaxPlayers 128
GameServerSettings.setCoopBotCount 64
and...

%USERPROFILE%\My Documents\Battlefield 2\Profiles\Default\ServerSettings.con
Code:
sv.maxPlayers 128
sv.coopBotCount 64
...it results in 32 players; me + 31 bots.

...

I just don't get it. Something seems broken somewhere, or I'm missing something. I don't understand why the in-game menu changes of its own accord between the slider indicating "32" max players set or "48" based on the various combinations of configuration (which seems to determine what the configs are rewrote to), though no matter what I do I'm not able to spawn more than 32 bots.

Quote:
Note the lines with rem in front on the end of aidefault.ai file. Remove rem in front of them to activate override feature. Read the explanation in file its quite good explained.
Yeah, I've checked and double-checked that. It should be fine, but I'll post it verbatim...

Code:
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 64
aiSettings.maxBotsIncludeHumans 1
aiSettings.setBotSkill 1.0

run BotNames.ai

aiSettings.setInformationGridDimension 48

rem aiDebug.draw 1

run AIPathFinding.ai
Hmm, maybe if I try...

\mods\pr\ai\aidefault.ai
Code:
aiSettings.overrideMenuSettings 1
aiSettings.setMaxNBots 64
aiSettings.maxBotsIncludeHumans 0 <------------------- instead of 1
aiSettings.setBotSkill 0.9
%USERPROFILE%\My Documents\Battlefield 2\Profiles\0002\ServerSettings.con
Code:
GameServerSettings.setMaxPlayers 128
GameServerSettings.setCoopBotCount 64
%USERPROFILE%\My Documents\Battlefield 2\Profiles\Default\ServerSettings.con
Code:
sv.maxPlayers 128
sv.coopBotCount 64
OK! Now I've 64 bots + me. So it's looking like the problem was the maxBotsIncludeHumans value I'd set. When I originally edited the aidefault.ai file I changed it to "1" thinking that it'd result in me + 63 bots on a 64-player server config. I still don't understand how it arrived at the above "32" and "48" config rewrite business though, but oh well, at least things are working now.

Thanks for the prod, it got me there in the end.
Boris is offline Reply With Quote
Old 07-15-2012, 12:31 AM   #4
[R-COM]MaSSive
Support Technician

[R-COM]MaSSive's Avatar
Send a message via Skype™ to [R-COM]MaSSive
Default Re: Bot Limit

I dont know it might have something to do with

Code:
aiSettings.setInformationGridDimension 48
but I cant say for sure, its just speculating. It been a while since I played with these configs, but I think that sv.maxPlayers should not have any relations with bot settings.

Finally I hate numbers and math, never was good at it. Glad you got it sorted.


To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts.

"If you tremble with indignation at every injustice, then you are a comrade of mine."


[R-COM]MaSSive is offline Reply With Quote
Reply


Tags
bot, limit
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 05:52 AM.


Powered by: vBulletin. ©vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.1
All Content Copyright ©2004 - 2012, Project Reality.