project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Feedback > Coop & Singleplayer
23 May 2019, 00:00:00 (PRT)
Register Developer Blogs Project Reality Members List Search Today's Posts Mark Forums Read
Coop & Singleplayer Suggestions and feedback pertaining to Project Reality Single Player.

Thread Tools Display Modes
Old 2018-12-01, 16:32   #1
Default Co-op: AI Ignoring Vehicles For Certain Factions/Maps

I recently got back into PR and I've mostly enjoyed it, except there is a bug that stops me from playing certain co-op maps. Sometimes the AI spawns outside the main base or in some other place I can't, and doesn't take any vehicles. Examples of this occurring are in:
  • Shija Valley: China ignores vehicles in Alternate and Standard Layouts, even though it can use vehicles fine in Black Gold. The UK does use their vehicles, which leads to a slaughter.
  • Al Basrah Alt: The UK soldiers that spawn south of the main base don't use the vehicles.
  • Shahadah Standard: The polish armed forces spawn outside the base and don't take any vehicles. This may be a good thing since there is TOWs along the road.
  • Asad Khal Alternate: Both sides ignored their APCs. About 30(?) minutes into the match I took a MEC APC and conveniently the IDF AI finally used one of their APCs.
  • Beirut Standard: The AI ignored the M163 Vulcan. I could get an IDF soldier to enter the vehicle if I was the driver. The AI would not fire the turret gun and it turned out I couldn't fire the turret gun either (nothing happened when I hit the fire button).

I hope this doesn't seem like a dump of complaints. I'm trying to give as much info as possible to narrow down what it could be.

I cannot think of any particular faction which cannot use vehicles on any map.

I cannot remember having this issue back in 1.3 (2015) which was the last version I played.

I have had this issue for a AI difficulty 0.7 and 0.9. I haven't tried other AI difficulty levels.

I remember reading somewhere that the AI uses "temperatures". That would be the first time I've heard of heatmaps being used with the navmesh pathing. Perhaps the "temperature" of the home bases were turned down on certain maps for certain factions? Though that wouldn't explain the AI not taking the vehicles when the AI spawns right in the base.
O.Ortega is offline
Last edited by O.Ortega; 2018-12-01 at 16:37.. Reason: Clarify which PR version I last played which didn't have a problem.
Reply With Quote
Old 2018-12-02, 08:04   #2
PR:BF2 Developer
Supporting Member

Arab's Avatar
Default Re: Co-op: AI Ignoring Vehicles For Certain Factions/Maps

Thank you for putting this report together! Good effort

For COOP, the most non _sp vehicles are set to not attract bots to use them from their PCO AI template.

Exactly right, bots use temperatures to see whether to use a vehicle or not. For Jets and Helicopters, they will intentionally avoid non-bf2 physics Jets and Helicopters as they are intended for players to use only due to the AI Template setting the temperature to 0.

The code is "aiTemplate.basicTemp #" and it's found in (You'd have to extract, navigate to weapon_ranges_land/weapon_ranges_air folder and add all into Notepad++ to see the code).

Some weapons may need to be updated to allow bots to use them. 2 of our team members, [R-CON]Double_13 and [R-CON]Fastjack are working on revising AI templates to make them smarter basically and also work out map issues like the ones you described.

For certain guns like the M163 Vulcan, bots cannot fire when there's any delay set in the weapon's .tweak file whether it's Fire Start Delay, Delay To Use and/or the deviation settings needing tweaking they can't use it so a version of the weapon has to be made without the delays, and the mapper must adjust the COOP layer to use those versions. You can see it for the ats_tow_ndl versions (_ndl is the version without any fire delay for bot use).

Please consider supporting the Battlefield 2 SP Community to help upgrade their forum: Link
Arab is offline Reply With Quote
Old 2018-12-03, 01:20   #3
PR:BF2 Contributor

Fastjack's Avatar
Default Re: Co-op: AI Ignoring Vehicles For Certain Factions/Maps

Basically, we need only to revert the temperature values from EVERYTHING back to the vanilla ones and adjust them slightly. Also the strategicstrength's of everything need a rework.
In my opiniom, the SAI cannot make correct decisions based on the temperatures and strategicstrength's calculations.

Sorry to say that but i can return next year february to modding because i have to much rl work atm. but after that i will ask Double for help to create a new ai for the bots from base.
I hope it will fix also known issues like moonwalking or the flag spawn selection.

But than we have also new things.
Fastjack is offline Reply With Quote
Old 2018-12-03, 12:27   #4
PR:BF2 Developer
Supporting Member

Arab's Avatar
Default Re: Co-op: AI Ignoring Vehicles For Certain Factions/Maps

I also will try to do my part to improving COOP along with core mod stuff and the much anticipated PR:WW2 side of 1.6

Please consider supporting the Battlefield 2 SP Community to help upgrade their forum: Link
Arab is offline Reply With Quote
Old 2018-12-09, 18:33   #5
Default Re: Co-op: AI Ignoring Vehicles For Certain Factions/Maps

Thanks for the answers R-DEV Arab. I'm curious as to what is so special about AI vehicles. I'm guessing their speed is slower and their turning rate is higher so it's harder for them to get stuck.

I would personally prefer if all the vehicles were replaced with their AI-friendly versions in co-op. I could probably write a program to do the switch, if the all the AI friendly versions have the same name as the normal one but ending in "_sp". I'm guessing this change will cause PunkBuster to bust me if I go online, but I can use Git to swap out the modified files.

When the vehicles have higher temperatures, do the AI become more likely to spawn in the base to use them? Or is their spawn placement calculated differently?

Who knows R-CON Fastjack, maybe I'll end up fixing some map AI issues myself.
O.Ortega is offline Reply With Quote

coop, factions or maps, ignoring, vehicles
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

All times are GMT. The time now is 11:01.