Building the Battlefield AI Experience

46
Building the Battlefield AI Experience Mikael Hedberg Lead AI Programmer Email: [email protected] Twitter: slicedlime

description

This keynote explores the development of the AI in Battlefield: Bad Company and Battlefield: Bad Company 2 and what caused the difference in quality between the games. It describes challenges in the development of the games and the design philosophies we used to overcome them. See http://publications.dice.se for the .ppt file and extra movies.

Transcript of Building the Battlefield AI Experience

Page 1: Building the Battlefield AI Experience

Building the Battlefield AI Experience

Mikael HedbergLead AI ProgrammerEmail: [email protected]: slicedlime

Page 2: Building the Battlefield AI Experience

Critical acclaim for BF: BC

Page 3: Building the Battlefield AI Experience

Critical acclaim for BF: BC

Page 4: Building the Battlefield AI Experience

Critical acclaim for BF: BC

Page 5: Building the Battlefield AI Experience

Critical acclaim for BF: BC

Page 6: Building the Battlefield AI Experience

Critical acclaim for BF: BC 2

Page 7: Building the Battlefield AI Experience

Critical acclaim for BF: BC 2

Page 8: Building the Battlefield AI Experience

Critical acclaim for BF: BC 2

Page 9: Building the Battlefield AI Experience

Critical acclaim for BF: BC 2

Page 10: Building the Battlefield AI Experience

Critical acclaim for BF: BC 2

Page 11: Building the Battlefield AI Experience

Overview

• Challenges• What is AI?• Design Philosophy• Improvements• The Frostbite AI

Page 12: Building the Battlefield AI Experience

Battlefield AI Challenges

• Working with Soldiers• The Uncanny Valley

Page 13: Building the Battlefield AI Experience

Battlefield AI Challenges

• Friendly Squad AI• Immortal friends• Personalities

Enemy lifespan

Freq

uenc

y

Page 14: Building the Battlefield AI Experience

Battlefield AI Challenges

• ”Battlefield”– Infantry– Stationary Guns– Armed cars– Tanks– Helicopters– Quad bikes– Passenger Positions

Page 15: Building the Battlefield AI Experience

Battlefield AI Challenges

• ”Battlefield”– Infantry– Stationary Guns– Armed cars– Tanks– Helicopters– Quad bikes– Passenger Positions

Page 16: Building the Battlefield AI Experience

Battlefield AI Challenges

• ”Battlefield”– Infantry– Stationary Guns– Armed cars– Tanks– Helicopters– Quad bikes– Passenger Positions

Page 17: Building the Battlefield AI Experience

Battlefield AI Challenges

• ”Battlefield”– Infantry– Stationary Guns– Armed cars– Tanks– Helicopters– Quad bikes– Passenger Positions

Page 18: Building the Battlefield AI Experience

Battlefield AI Challenges

• Destruction

Page 19: Building the Battlefield AI Experience

Battlefield AI Challenges

• Destruction

Page 20: Building the Battlefield AI Experience

Battlefield AI Challenges

• Destruction

Page 21: Building the Battlefield AI Experience

• Open world

Battlefield AI Challenges

Page 22: Building the Battlefield AI Experience

Battlefield AI Challenges

• Open world

Page 23: Building the Battlefield AI Experience

Battlefield AI Challenges

• DICE + Single Player = ?

Page 24: Building the Battlefield AI Experience

Battlefield AI Challenges

• Code base from BF2, BFV, BF1942• Multi-player bot-style AI

Page 25: Building the Battlefield AI Experience

Battlefield AI Challenges

• Code base from BF2, BFV, BF1942• Multi-player bot-style AI

Page 26: Building the Battlefield AI Experience

Battlefield AI Challenges

• Code base from BF2, BFV, BF1942• Multi-player bot-style AI

Page 27: Building the Battlefield AI Experience

Battlefield AI Challenges

• Code base from BF2, BFV, BF1942• Multi-player bot-style AI

Page 28: Building the Battlefield AI Experience

What is AI?

• Behaviors?

Page 29: Building the Battlefield AI Experience

What is AI?

• Behaviors• Animations?

Page 30: Building the Battlefield AI Experience

What is AI?

• Behaviors• Animations• Character Experience?

Page 31: Building the Battlefield AI Experience

What is AI?

• Behaviors• Animations• Character Experience• AI Experience:– Decision system– Behaviors– Animations– Scripting– Voice overs– ... more?

Page 32: Building the Battlefield AI Experience

AI Experience – Main Problems

• Coupling between:– AI behaviors– Scripting– Animations

• Animation fluidness• Non-reactive NPCs• Decision Oscillations

Page 33: Building the Battlefield AI Experience

AI Experience – Acting

• Cheating = win

Page 34: Building the Battlefield AI Experience

AI Experience

• 80% bulk AI behaviors• 20% memorable moments

Page 35: Building the Battlefield AI Experience

Improvements for BF: BC 2

Sensing Rewrite

Improved Scripting Support

Dynamic Pathfinding Features

Improved AI-Animation Integration

Seemless Cutscene to AI transitions

AI Insertion SequencesAI Soldier Death Animations

Improved Combat Cover Selection

New Cover Animations

Page 36: Building the Battlefield AI Experience

Improvements for BF: BC 2

• Death animations

Page 37: Building the Battlefield AI Experience

Improvements for BF: BC 2

• Death animations

Page 38: Building the Battlefield AI Experience

Improvements for BF: BC 2

• Sensing rewrite

Page 39: Building the Battlefield AI Experience

Improvements for BF: BC 2

• Focus on the player experience• Script the memorable moments• Open world -> wide corridor, arenas

Page 40: Building the Battlefield AI Experience

The Frostbite AI

• Environmental awareness

Page 41: Building the Battlefield AI Experience

The Frostbite AI

• Environmental awareness

Page 42: Building the Battlefield AI Experience

The Frostbite AI

• Frontlines– Positional awareness– Personalities

Page 43: Building the Battlefield AI Experience

The Frostbite AI

• Automatic cover detection

Page 44: Building the Battlefield AI Experience

The Frostbite AI

• Reactivity over planning• Layers of ordered behavior lists

Page 45: Building the Battlefield AI Experience

Summary

• Uncanny Valley• Player impression of AI is what matters• Stable bulk + memorable moments• Cheating = win

Page 46: Building the Battlefield AI Experience

Questions?Mikael HedbergLead AI ProgrammerEmail: [email protected]: slicedlime