Jump to content

Photo
- - - - -

Development Branch Captain's AI Log

branch captain development log

  • This topic is locked This topic is locked
75 replies to this topic
Thread Starter
royaltyinexile
royaltyinexile

    BI Developer

  • 758 posts

#1

Posted 22 July 2013 - 12:13

We'd like to try using this thread to track clear updates about changes to the AI. But first, some all important disclaimers!

  • Not all the changes made to the AI can be logged as and when they happen
  • Sometimes the changes made by the programmers require other departments to update or pack their data
  • Sometimes that's not always possible right away (i.e. changes to AI Costmaps for terrain, tweaking of new/refined values in configs)
  • Sometimes the changes must be put on hold while we make sure/prevent them from entirely annihilating the rest of the game
  • Sometimes the changes must be reverted because they destroy more than they heal.
  • Sometimes our programmers have to work, rather than talk about working.
We hope it helps shine some light on the ongoing refinements/fixes being made to the AI, and can help to frame/promote some useful feedback/discussion/understanding about the current state/future direction and progress.

You can discuss the changes across in the AI Dev Branch Discussion thread.


Best,
RiE


First set of notes follows:

When it's possible/useful, we will try to post brief descriptions of recent AI changes done on the development branch. We hope this will help demonstrate the tweaks that we're making and generate useful feedback to help us validate and polish our work.

Fixed: AI turn limitation while aiming


It wasn't supposed to fix rotation speed of AI soldiers, but is letting them use "aiming deadzone" as specified in the unit config (minGunTurnAI, maxGunTurnAI) which is typically 60 degrees cone.
Therefore currently AI should be able to follow targets better without moving whole body.

AI shouldn't take unguided missiles as guided


RPG and NLAW are supposed to be unguided, but AI was still able to use them as guided weapons. This was corrected.

FIX: AI ballistic calculation fixed.


Quite big change, now AI is able to calculate and predict accurate ballistic of bullet, therefore is able to aim and engage targets on all ranges, both static and moving. Also, this improves AI ability to hit moving targets by more precise time of leading calculation. Good way to check this change is try to fight AI sniper on 1km+ range. Of course it still depends on his skill.

FIX: AI now can shoot over animals.


AI was considering animals as friendly, therefore denied to shot in theirs direction. Example: put yours character, enemy soldier and snake animal between you. After this fix AI won't bother with friendly fire against animals.


N.b. Sometimes I'll quote one one of our Programmer's comments, but reserve the right to make splendid editorial adjustments! :cool:

Edited by RoyaltyinExile, 23 July 2013 - 15:06.

Arma 3 is a combined arms military game with an infantry focus. Built upon appropriate, useful and engaging elements of simulation, it's an accessible platform for a variety of official and community playable/sandbox content, based on the principles of authenticity, diversity and opportunity.

Dans son oeil, ciel livide où germe l'ouragan,
La douceur qui fascine et le plaisir qui tue.

Thread Starter
royaltyinexile
royaltyinexile

    BI Developer

  • 758 posts

#2

Posted 23 July 2013 - 10:39

Some additional notes about changes made to AI.

Some fixes/features were included partly before public Alpha, but waited on changes in other departments and proper integration into gameplay, thus did not make it to the official changelogs.

  • New types of obstacles for pathfinding - objects that only some types of units can get over (i.e. only soldiers, only soldiers or tanks, only boats)
  • Improved pre-processing of terrain for path-planning
  • Path planning for divers - makign them makigate underwater
  • AI not wasting rockets on infantry
  • Flashlights affect AI detection - Flashlights help you to detect enemy, but also reveals you
  • AI is properly using weapon optics to find enemy - Including Thermal Optics
  • Improved how night changes the chance to spot enemy
  • Fixed that AI was using binoculars on close distance
  • Silencers decreasing audibility
  • AI mines detection and avoidance
  • AI using hand grenades more
  • AI able to use grenade launchers - they will engage with UGLs
  • Blackhawk gunners are more capable while searching for new targets - done in OA and merged
  • Helicopters pilots prefer not to crash to trees and hills - but reserve the right to do so
  • Small improvements of helicopter attack pattern - less dive-bombing
  • Boats able to navigate around piers
  • Fixed some cases of AI stuck in fleeing
  • Improved AI ability to to send medic
  • AI using first aid kit
  • AI will not shoot you through bushes, if he did not see you before - fixed in OA and merged
  • AI can drive physx vehicles
  • Loiter waypoint
  • AI will also assign secondary turrets
  • AI will not disembark to change position in vehicle - if possible
  • AI will not take your commanding role in vehicle
  • Improved how particles are decreasing chance to spot enemy
  • AI visibility in new fog
  • Fixed: AI not able to open doors in some buildings
  • New system for AI roads creation
  • Improved AI commanding - selection of cover point on position where you are sending soldier to
  • Improved weapon selection - based on time needed to lock missile or turn vehicle; done in TKOH and merged

These are not the all the changes, just those I could remember at home at this late hour.


Some other changes that are WIP. currently not deployed. N.B. Not all tweaks are guaranteed to ever make it into the final build, depending on validation. Also note, many features need a lot of parameters properly configured and it takes time to balance them.

  • AI not using pistol, when it should not - in some stage of releasing, WIP
  • Grass is decreasing chance to spot enemy - in some stage of releasing, WIP
  • AI prefer crouch stance while engaging - WIP, to be released
  • Decreased visibility of shooting - so AI does not find you instantly after killing one of them and also now each shoot close to enemy will decrease error of guessed position - WIP, to be released


Edited by RoyaltyinExile, 23 July 2013 - 11:17.

Arma 3 is a combined arms military game with an infantry focus. Built upon appropriate, useful and engaging elements of simulation, it's an accessible platform for a variety of official and community playable/sandbox content, based on the principles of authenticity, diversity and opportunity.

Dans son oeil, ciel livide où germe l'ouragan,
La douceur qui fascine et le plaisir qui tue.

Thread Starter
royaltyinexile
royaltyinexile

    BI Developer

  • 758 posts

#3

Posted 23 July 2013 - 15:02

Today's changes for AI

AI ballistic calculation improved for unguided rockets

This will make the AI more capable of hitting targets with unguided rockets; e.g. RPG, NLaw(i.e. Man-portable) but also FFARs (i.e. Gunships).

There was a mathematical accuracy problem, which made AI aim at the wrong point. This being fixed, actual accuracy of ai still depends on his skill.


Arma 3 is a combined arms military game with an infantry focus. Built upon appropriate, useful and engaging elements of simulation, it's an accessible platform for a variety of official and community playable/sandbox content, based on the principles of authenticity, diversity and opportunity.

Dans son oeil, ciel livide où germe l'ouragan,
La douceur qui fascine et le plaisir qui tue.

Thread Starter
royaltyinexile
royaltyinexile

    BI Developer

  • 758 posts

#4

Posted 26 July 2013 - 12:19

Making changes/refinements to AI doesn't just rely on programmers, but proper configuration of the data is also essential (what we call balancing).

Recent tweaks of config values affecting vehicle handling are part of this work. Pre-Alpha, a certain set of config values were used, but as the game develops, so we must continue to refine things like predictTurnPlan and predictTurnSimul

Drivers have gone to training lessons to improve their driving capabilities

AI drivers are now able to better predict the way and expect turns in longer distance while still maintaining the momentum long enough.


Arma 3 is a combined arms military game with an infantry focus. Built upon appropriate, useful and engaging elements of simulation, it's an accessible platform for a variety of official and community playable/sandbox content, based on the principles of authenticity, diversity and opportunity.

Dans son oeil, ciel livide où germe l'ouragan,
La douceur qui fascine et le plaisir qui tue.

Thread Starter
royaltyinexile
royaltyinexile

    BI Developer

  • 758 posts

#5

Posted 29 July 2013 - 12:09

Some extra info:

FIX: AI and rangefinding: ballistic prediction


This is a small fix which affects AI aim over large distances, where units have different altitudes.


Arma 3 is a combined arms military game with an infantry focus. Built upon appropriate, useful and engaging elements of simulation, it's an accessible platform for a variety of official and community playable/sandbox content, based on the principles of authenticity, diversity and opportunity.

Dans son oeil, ciel livide où germe l'ouragan,
La douceur qui fascine et le plaisir qui tue.

Thread Starter
royaltyinexile
royaltyinexile

    BI Developer

  • 758 posts

#6

Posted 30 July 2013 - 12:20

Change log notes, v.08339

Increased error of player position, when AI is killed by player


If you kill/hit/bullet impact close to an AI unit, your position is disclosed with some error. Now the error is bigger and based on range, so it is harder for the AI to find you after one shot.


So, if I fire from, say, 300m away, AI's guess of my x, y position is based on a default guess error (of 100m) plus my distance (300m) multiplied by a coefficient (0.25), plus a random value (between 0 and 1, applied to x and y).

This individual calculation doesn't currently factor in my weapon type, but my visibility remains a product of that, so - if I've used, say, an enormous sniper rifle instead of an smg - the AI is more likely to spot me, when looking in the right place.

Edited by RoyaltyinExile, 26 August 2013 - 14:05.

Arma 3 is a combined arms military game with an infantry focus. Built upon appropriate, useful and engaging elements of simulation, it's an accessible platform for a variety of official and community playable/sandbox content, based on the principles of authenticity, diversity and opportunity.

Dans son oeil, ciel livide où germe l'ouragan,
La douceur qui fascine et le plaisir qui tue.

Thread Starter
royaltyinexile
royaltyinexile

    BI Developer

  • 758 posts

#7

Posted 31 July 2013 - 11:41

  • Fixed: AI unable to take a backpack from the ground
  • Decreased AI hearing ability to pinpoint enemy unit position


Increased the threshold of accuracy when a unit starts guessing an enemy unit's position; i.e., audio inputs take longer to increase AI's precision/certainty
Arma 3 is a combined arms military game with an infantry focus. Built upon appropriate, useful and engaging elements of simulation, it's an accessible platform for a variety of official and community playable/sandbox content, based on the principles of authenticity, diversity and opportunity.

Dans son oeil, ciel livide où germe l'ouragan,
La douceur qui fascine et le plaisir qui tue.

Thread Starter
royaltyinexile
royaltyinexile

    BI Developer

  • 758 posts

#8

Posted 02 August 2013 - 10:43

  • Decreased use of prone stance when target is close.
  • Decreased use of crouch stance when moving
  • Decreased use of crouch stance in stealth


These adjustments should:

decrease the AI's use of crouching/prone while moving in combat. They'll be more likely to crouch when they're static in combat (not deterministic, just a more likely behaviour), and shouldn't go prone if enemy target is known and very close*.


Arma 3 is a combined arms military game with an infantry focus. Built upon appropriate, useful and engaging elements of simulation, it's an accessible platform for a variety of official and community playable/sandbox content, based on the principles of authenticity, diversity and opportunity.

Dans son oeil, ciel livide où germe l'ouragan,
La douceur qui fascine et le plaisir qui tue.

Thread Starter
royaltyinexile
royaltyinexile

    BI Developer

  • 758 posts

#9

Posted 13 August 2013 - 11:50

Latest Work:

Worked on AI recoil control, dependent on skill

  • AI are now able to consider and control the recoil of the weapon
  • This ability is dependent on the skill, meaning that less skilled soldiers will tend to control it less, where elite soldier (skill 1.0) should control it all the time
  • This behaviour is more evident at closer ranges, when AI is standing and his recoil makes most of the shots to go over target's head



Hearing (AI): speed makes a bigger difference

  • Now the speed of movement and fatigue (breathing effect) makes you louder and more likely to be heard by AI.


:cool:

Edited by RoyaltyinExile, 26 August 2013 - 14:05.

Arma 3 is a combined arms military game with an infantry focus. Built upon appropriate, useful and engaging elements of simulation, it's an accessible platform for a variety of official and community playable/sandbox content, based on the principles of authenticity, diversity and opportunity.

Dans son oeil, ciel livide où germe l'ouragan,
La douceur qui fascine et le plaisir qui tue.

Thread Starter
royaltyinexile
royaltyinexile

    BI Developer

  • 758 posts

#10

Posted 15 August 2013 - 17:29

Change log notes, v.09067

AI leading targets accuracy improved

  • All AI which uses some sort of bullets (including tank shells and grenades) are now able to lead moving targets better.
  • This ability is still limited by weapon config (max lead speed) and skill of AI.
  • Typical testcases are: running perpendicular to AI, evading Irfit GMG firing from 500m, etc.



AI leading rockets improved

  • Accuracy of AI shooting unguided rockets was improved
  • Now they should be able to lead moving targets whatever is the direction of movement
  • Splendid disclaimer: Please be careful though, RPG missile had some config problems last time I checked



AI helicopter gunner aiming improved

  • There was a problem reported about AI gunner in Comanche or Kayman unable to hit static infantry (overshooting). This was fixed.



Some other most splendid changes (related to AI behaviour in CQB) are in splendid progress, but I don't think the exe sneaked out into the dev branch wild yet. Soon™.

Edited by RoyaltyinExile, 26 August 2013 - 14:06.

Arma 3 is a combined arms military game with an infantry focus. Built upon appropriate, useful and engaging elements of simulation, it's an accessible platform for a variety of official and community playable/sandbox content, based on the principles of authenticity, diversity and opportunity.

Dans son oeil, ciel livide où germe l'ouragan,
La douceur qui fascine et le plaisir qui tue.

Thread Starter
royaltyinexile
royaltyinexile

    BI Developer

  • 758 posts

#11

Posted 16 August 2013 - 12:18

Change log notes, v.09136


I don't think the exe sneaked out into the dev branch wild yet. Soon™.


:cool:

AI prefer to stop and shoot, rather than running to cover, if enemy is close

Surprise Target

  • Dealing with the situation where AI spots the player in close range while already en route to cover
  • AI is now more likely to stop and engage the threat
  • Decision is linked to distance to target (currently 35m)


Edited by RoyaltyinExile, 26 August 2013 - 14:04.

Arma 3 is a combined arms military game with an infantry focus. Built upon appropriate, useful and engaging elements of simulation, it's an accessible platform for a variety of official and community playable/sandbox content, based on the principles of authenticity, diversity and opportunity.

Dans son oeil, ciel livide où germe l'ouragan,
La douceur qui fascine et le plaisir qui tue.

Thread Starter
royaltyinexile
royaltyinexile

    BI Developer

  • 758 posts

#12

Posted 26 August 2013 - 14:04

Change log notes, v.09501

AI rotation behaviour refined

  • AI rotation speed increased
  • AI rotation speed dependent on encumbrance (more encumbered, slower rotation)
  • AI rotation speed dependent on stance (prone rotation ~3x slower than standing)
  • AI rotation speed dependent on speed of movement (AI that has been moving fast will turn slower than those that are static)


AI accuracy calculations refined

  • AI accuracy influence by rotation (faster rotation, less precision)
  • AI accuracy influenced by shooting (more shooting, less precision)
  • AI accuracy influenced by movement (more movement, less precision)
  • AI accuracy influenced more logically in proportion to skill

:cool:
Arma 3 is a combined arms military game with an infantry focus. Built upon appropriate, useful and engaging elements of simulation, it's an accessible platform for a variety of official and community playable/sandbox content, based on the principles of authenticity, diversity and opportunity.

Dans son oeil, ciel livide où germe l'ouragan,
La douceur qui fascine et le plaisir qui tue.

Thread Starter
royaltyinexile
royaltyinexile

    BI Developer

  • 758 posts

#13

Posted 04 September 2013 - 14:26

Change log notes, v.09751

AI prone rotation two times faster

  • Prone rotation speed was improved
  • It was a bit too slow; it's now 2x faster

AI high-skilled soldiers accuracy improved

  • Highly skilled soldiers had problems with hitting targets at medium range (100-300 metres)
  • They should be more accurate now, for example, a soldier with skill 1.0 (on Elite difficulty) should be deadly accurate


Arma 3 is a combined arms military game with an infantry focus. Built upon appropriate, useful and engaging elements of simulation, it's an accessible platform for a variety of official and community playable/sandbox content, based on the principles of authenticity, diversity and opportunity.

Dans son oeil, ciel livide où germe l'ouragan,
La douceur qui fascine et le plaisir qui tue.

Thread Starter
royaltyinexile
royaltyinexile

    BI Developer

  • 758 posts

#14

Posted 18 September 2013 - 12:13

Change log notes, v.110181

AI drivers are now better able to navigate out of obstacle and unstuck themselves

  • AI drivers are better able to determine when they are stuck
  • They will now try to reverse away from the obstacle


Arma 3 is a combined arms military game with an infantry focus. Built upon appropriate, useful and engaging elements of simulation, it's an accessible platform for a variety of official and community playable/sandbox content, based on the principles of authenticity, diversity and opportunity.

Dans son oeil, ciel livide où germe l'ouragan,
La douceur qui fascine et le plaisir qui tue.

Thread Starter
royaltyinexile
royaltyinexile

    BI Developer

  • 758 posts

#15

Posted 08 October 2013 - 16:21

Not a change today; rather, sharing the initial ideas/goals of some upcoming work:

Spoiler

Edited by RoyaltyinExile, 26 November 2013 - 11:24.

Arma 3 is a combined arms military game with an infantry focus. Built upon appropriate, useful and engaging elements of simulation, it's an accessible platform for a variety of official and community playable/sandbox content, based on the principles of authenticity, diversity and opportunity.

Dans son oeil, ciel livide où germe l'ouragan,
La douceur qui fascine et le plaisir qui tue.

Thread Starter
royaltyinexile
royaltyinexile

    BI Developer

  • 758 posts

#16

Posted 09 October 2013 - 10:30

Change log notes, v.110951

AI-controlled turrets lead targets better

  • AI ability to lead moving targets from turrets was improved
  • They should now be able to engage a lot more often and with better precision
  • Please note, this can significantly increase the difficulty of the missions again mechanized AI
  • Typical repro case was: Irfit HMG against infantry moving perpendicularly, 100 m distance


Arma 3 is a combined arms military game with an infantry focus. Built upon appropriate, useful and engaging elements of simulation, it's an accessible platform for a variety of official and community playable/sandbox content, based on the principles of authenticity, diversity and opportunity.

Dans son oeil, ciel livide où germe l'ouragan,
La douceur qui fascine et le plaisir qui tue.

Thread Starter
royaltyinexile
royaltyinexile

    BI Developer

  • 758 posts

#17

Posted 16 October 2013 - 10:42

Change log notes, v.111171

Decreased AI ability to shoot through bushes when a team member sees a target


Related to:

  • AI in groups share information about targets
  • Previously, an AI that is without LOS to a target (e.g. blocked by a bush) - but that is in a group with another AI member who does - would fire at the target if feasible (i.e. valid range & penetration through blocking object)
  • Now AI - without direct LOS - will only try to fire for a limited amount of time, and will stop firing if they do not themselves get LOS to the target, even if a group member still has valid LOS
First step is that AI will not be able to kill you just because his team member told him where you are. Randomized shooting through bushes is next step: AI will shoot in your general area when he is told about your position, but accuracy will be far less.


Edited by RoyaltyinExile, 16 October 2013 - 15:11.

Arma 3 is a combined arms military game with an infantry focus. Built upon appropriate, useful and engaging elements of simulation, it's an accessible platform for a variety of official and community playable/sandbox content, based on the principles of authenticity, diversity and opportunity.

Dans son oeil, ciel livide où germe l'ouragan,
La douceur qui fascine et le plaisir qui tue.

Thread Starter
royaltyinexile
royaltyinexile

    BI Developer

  • 758 posts

#18

Posted 30 October 2013 - 16:39

Change log notes, v.111518

AI turret control improved

  • While it was functionally improved in previous versions, it caused visual artefacts during rotation of turrets (seems like AI is able to move turret instantly, without accelerating the rotation.)
  • Now, this was fixed, keeping AI ability to target moving enemies.
  • Typical test cases are: car with turret engaging infantry moving perpendicularly; AI gunner in combat chopper engaging other moving choppers or fast moving cars and so on.


Arma 3 is a combined arms military game with an infantry focus. Built upon appropriate, useful and engaging elements of simulation, it's an accessible platform for a variety of official and community playable/sandbox content, based on the principles of authenticity, diversity and opportunity.

Dans son oeil, ciel livide où germe l'ouragan,
La douceur qui fascine et le plaisir qui tue.

Thread Starter
royaltyinexile
royaltyinexile

    BI Developer

  • 758 posts

#19

Posted 26 November 2013 - 14:58

Public documentation of AI Skill settings updated:

Oukej has meanwhile updated some community pages with the latest descriptions of such sub skills (WIP):

Specific thread related to AI Configuration Analysis opened:

I've decided to start a new thread dedicated not to what the AI can and can't do, but to how you, as a player, mission designer or modder can directly affect the AI's behavior.


Arma 3 is a combined arms military game with an infantry focus. Built upon appropriate, useful and engaging elements of simulation, it's an accessible platform for a variety of official and community playable/sandbox content, based on the principles of authenticity, diversity and opportunity.

Dans son oeil, ciel livide où germe l'ouragan,
La douceur qui fascine et le plaisir qui tue.

Thread Starter
royaltyinexile
royaltyinexile

    BI Developer

  • 758 posts

#20

Posted 14 January 2014 - 17:50

Belated Change log notes, v.113928

Adjusted: Dynamic Calculated Error for AI, working on turrets, reacting to loosing sight of target

  • Generally the firefights and engagements should be more intense, enjoyable and less frustrating.
  • The average AI should no longer give you a head-shot off-hand.
  • AI gunners shouldn't be flawless top killing machines anymore.
  • It definitely does not solve all the things (e.g. detection, decision making, recoil control), but at least it hopefully softens some of the problems.
  • Please, spam us with your observations and feedback how has the battleground changed for you and whether it has improved the firefights, AI taking a shot, for you.


(thanks to those who've already provided some feedback; sorry latest updates have taken so long to post: we're getting back into the swing of things now)

Edit: there should be some further details we can share regarding Dynamic Calculated Error, but I need to check them out with our AI guru first!


Posted Image


Notes (not exhaustive; documentation in progress):
  • Firing the weapon no longer increases error; instead, it decreases the error or doesn't change it (depending on audio and visual attributes of the weapon).
  • If the weapon is loud and very visible (e.g., an MG with big muzzle flash), the error doesn't decrease; whereas, shooting a normal rifle will decrease the error.
  • Losing the target due to obstacle (e.g., foliage) and switching targets now drastically increases the error
  • Calculation of error direction was changed to be more fluent: AI soldiers should not 'shake' their aim anymore; instead, they should behave more akin to 'looking around'

Generally, these changes will be fairly subjective (a player's 'experience' of a firefight). We're also being careful not to negatively impact previous playable content, which was tested using older AI configurations.

Edited by RoyaltyinExile, 14 January 2014 - 18:19.

Arma 3 is a combined arms military game with an infantry focus. Built upon appropriate, useful and engaging elements of simulation, it's an accessible platform for a variety of official and community playable/sandbox content, based on the principles of authenticity, diversity and opportunity.

Dans son oeil, ciel livide où germe l'ouragan,
La douceur qui fascine et le plaisir qui tue.



Also tagged with one or more of these keywords: branch, captain, development, log