project reality header
Go Back   Project Reality Forums > Project Reality Support > PR:BF2 Support
30 Oct 2024, 00:00:00 (PRT)
Register Developer Blogs Members List Search Quick Links
PR:BF2 Support Help and support regarding PR:BF2 installation and in-game issues

Reply
 
Thread Tools Display Modes
Old 2024-07-08, 10:01   #1
[R-DEV]Suchar
PR:BF2 QA Lead
PR Server License Administrator

Suchar's Avatar
Default Running local dedicated COOP server

Tutorial by [R-COM]bad_nade

Bold lines are the files you need to edit or run, followed by settings and example values. File paths are relative to your PR install folder.

mods\pr\ai\aidefault.ai
(AI related settings)
  • aiSettings.setMaxNBots 96 is the total number of bots. Maximum is 96.
  • aiSettings.maxBotsIncludeHumans 0 leave at 0 to make math easier.

mods\pr\settings\serversettings.con
(generic server settings)
  • sv.serverPort 16567 forward this port in your router if you want to play with friends. Another option is Radmin VPN.
  • sv.autoBalanceTeam 0 auto balance on/off for humans. Set to 0 to keep all your friends in the same team.
    sv.maxPlayers 16 is the number of humans allowed on the server.
  • sv.coopBotCount 48 is the base number for bot calculations. Maximum is 48.
  • sv.coopBotRatio 100 is the percentage of sv.coopBotCount bots in the team 1. Maximum is 100.
    • For example, with aiSettings.setMaxNBots 96
      • sv.coopBotCount 48 & sv.coopBotRatio 100 = 48v48teams.
      • sv.coopBotCount 40 & sv.coopBotRatio 100 = 56v40 teams.
      • sv.coopBotCount 40 & sv.coopBotRatio 50 = 76v20 teams.
      • sv.coopBotCount 20 & sv.coopBotRatio 100 = 76v20 teams.
    • Or aiSettings.setMaxNBots 64
      • sv.coopBotCount 32 & sv.coopBotRatio 100 = 32v32 teams.
    • Or aiSettings.setMaxNBots 32
      • sv.coopBotCount 32 & sv.coopBotRatio 50 = 16v16 teams. Etc.
    • Team with over 40 bots can't have human squad leaders.

mods\pr\python\game\realityconfig_coop.py
(COOP related settings)
  • C['PRDEBUG_ALL'] = 1 allow/deny debugging. Set to 1 to allow.
  • Search PR forums for rcon commands.

mods\pr\settings\maplist.con
(the map list)
  • In order to play COOP, you must put COOP maps on the list.
  • Remove all non-COOP/non-wanted maps, and all rem, beginrem and endrem lines.

start_prbf2_w32ded.bat
(starts the server)
  • Double click.
  • Don't resize the window.
  • Google for BF2 server commands.

Join by selecting Multiplayer -> Join local.

https://www.realitymod.com/forum/uploads/signatures/sigpic98978_4.gif
Suchar is offline Reply With Quote
Old 2024-07-08, 18:58   #2
AguirreA.

AguirreA.'s Avatar
Default Re: Running local dedicated COOP server

Today I tried it with the maps that used to cause problems when playing in the local COOP, I am grateful since it no longer presents any problems when playing, thanks for the support guys.
AguirreA. is offline Reply With Quote
Old 2024-07-10, 13:51   #3
Brotherbear
Default Re: Running local dedicated COOP server

Did exactly everything but for some reason theres only one team filling up
Brotherbear is offline
Last edited by Brotherbear; 2024-07-10 at 14:11..
Reply With Quote
Old 2024-07-10, 15:52   #4
[R-COM]bad_nade
Support Technician
Supporting Member

bad_nade's Avatar
Default Re: Running local dedicated COOP server

Quote:
Originally Posted by Brotherbear View Post
Did exactly everything but for some reason theres only one team filling up
You must have missed a setting somewhere. For example, did you notice that the file mods\pr\ai\aidefault.ai has same few settings twice, but the first set of lines is commented out using rem keywords? Thus those lines have no effect.

Several settings work in concert and must be edited at the same time, and using combination of values that are supported as a whole. So, if you change just one of these, you must check that the value is compatible with values specified in other four settings as well:
  • sv.maxPlayers
  • sv.coopBotCount
  • sv.coopBotRatio
  • aiSettings.setMaxNBots
  • aiSettings.maxBotsIncludeHumans
bad_nade is offline Reply With Quote
Old 2024-07-19, 06:19   #5
Raghuvir15
Default Re: Running local dedicated COOP server

Before v1.8, the local singleplayer wasn't crashing (I mean playing with AI bots) it was going fine on most of the maps, but now after the update of v1.8 the local singleplayer has started crashing, any update to fix this soon ??.
Raghuvir15 is offline Reply With Quote
Old 2024-07-19, 10:16   #6
[R-DEV]Suchar
PR:BF2 QA Lead
PR Server License Administrator

Suchar's Avatar
Default Re: Running local dedicated COOP server

Quote:
Originally Posted by Raghuvir15 View Post
Before v1.8, the local singleplayer wasn't crashing (I mean playing with AI bots) it was going fine on most of the maps, but now after the update of v1.8 the local singleplayer has started crashing, any update to fix this soon ??.
If you try launching local COOP, you will see a message saying it's unstable and unsupported.
Use dedicated server executable instead.

https://www.realitymod.com/forum/uploads/signatures/sigpic98978_4.gif
Suchar is offline Reply With Quote
Old 2024-08-31, 05:27   #7
Randomboi4
Default Re: Running local dedicated COOP server

I couldn't find those files, where to find them? Since i am new to pcs
Randomboi4 is offline Reply With Quote
Old 2024-08-31, 09:37   #8
[R-COM]bad_nade
Support Technician
Supporting Member

bad_nade's Avatar
Default Re: Running local dedicated COOP server

Quote:
Originally Posted by Randomboi4 View Post
I couldn't find those files, where to find them? Since i am new to pcs
File locations in the guide are relative to your PR install location. If you have installed PR to, let's say, D:\Games\Project Reality\Project Reality BF2, then it's your starting point, and the first file would be in D:\Games\Project Reality\Project Reality BF2\mods\pr\ai\aidefault.ai. And so on.
bad_nade is offline Reply With Quote
Reply


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



All times are GMT. The time now is 05:29.