An introduction to Utility AI

  Рет қаралды 9,090

The Shaggy Dev

The Shaggy Dev

Күн бұрын

Utility AI is a common technique for creating effective AI across a variety of game genres. By turning data about the current game state into numbers, we can allow our AI to make informed decisions about what it should do next.
Decisions are hard: 00:00
Utility AI: 01:13
Scoring actions: 03:04
Refining the process: 06:03
Text post: shaggydev.com/2023/04/19/util...
Further reading
An Introduction to Utility Theory - Game AI Pro - www.gameaipro.com/GameAIPro/Ga...
Improving AI Decision Modeling Through Utility Theory - www.gdcvault.com/play/1012410...
Building a Better Centaur: AI at Massive Scale - www.gdcvault.com/play/1021848...

Пікірлер: 26
@Alicorn_
@Alicorn_ Жыл бұрын
How do you not have more subscribers? You're like if Game Maker's Toolkit actually gave useful game development advice.
@TheShaggyDev
@TheShaggyDev Жыл бұрын
lol
@tobario
@tobario 3 ай бұрын
Dude :D
@ultimaxkom8728
@ultimaxkom8728 Ай бұрын
A shade so strong that it has a 95% chance of triggering an SSS-class hive retaliation. Luckily, I'm one of those 5%.
@gourdbox
@gourdbox 5 ай бұрын
Final Score, Strongly weighted: Like 100% Sub 100% Bell 100%
@bossanova3494
@bossanova3494 Жыл бұрын
Love how broad your knowledge is with game dev stuff, I always find it really helpful
@developersteve1658
@developersteve1658 Жыл бұрын
Awesome video. Thanks for providing more resources, too! What's cool is this approach lends itself very well to using ML which many people would consider "Real AI". Those weights could even be controlled by an orchestrator as described in the video by Ai and Games on Doom 2016's AI.
@Kuijibo
@Kuijibo Жыл бұрын
Man, your videos are exactly what I need. You also choose the best games as examples.
@novicedraws8868
@novicedraws8868 Жыл бұрын
i completely agree and I am implementing this to my game I think.
@ethical_researcher4754
@ethical_researcher4754 Жыл бұрын
Just started making AI system. This man reads my mind.
@YJoker
@YJoker 6 ай бұрын
Bro this is very helpful!!
@beidero
@beidero Жыл бұрын
Never heard the term "Utility AI" but it seems to be very similar to GOAP (just without the goals, action part would be almost the same). For GOAP you also end up scoring your potential actions and picking the best one. Based on this video to me it seems like Utility AI would be faster but less flexible than GOAP. Will consider trying this sometime in the future next time I make a game that would fit this kind of AI architecture.
@TheShaggyDev
@TheShaggyDev Жыл бұрын
Yep! Same general concept. There's a lot of instances like G.O.A.P. where a utility system is used for a different technique (because at some point you have to turn game state into something more consistent and usable), so picking a cutoff point for the video was a little tricky. I think Utility AI works great on its own for plenty of uses, but the concepts of scoring and manipulating game state to better capture desired behavior is a great foundation for a more complex AI system.
@realMenta
@realMenta Жыл бұрын
Thank you for the video! It looks like similar to GOAP. Pretty interesting!
@IADaveMark
@IADaveMark 9 ай бұрын
Wow... a lot of this looked oddly familiar. Hmmm... wonder why? ;-)
@TheShaggyDev
@TheShaggyDev 9 ай бұрын
Seriously, your talks are some of my favorites!
@kishirisu1268
@kishirisu1268 8 ай бұрын
It looks good at first, but what if we have 100 possible actions with 100 possible outcome per each action? NPC will stuck calculating utility scores, but if we want to prevent that - we return to the starting point - how to select what action to do in specific case without iteretion over each action, and come to the FSM (which will effectively reduce action range), but as you said FSM is bad so we need to use Utility.
@eerywax5631
@eerywax5631 Жыл бұрын
What game is that at 1:59? It looks neat.
@TheShaggyDev
@TheShaggyDev Жыл бұрын
Symphony of War: The Nephilim Saga! Very Fire Emblem-y
@eerywax5631
@eerywax5631 Жыл бұрын
Thank you!
@loudmounthartist2257
@loudmounthartist2257 6 ай бұрын
I’m so stupid but how did you get normalize number or score at 4:25
@TheShaggyDev
@TheShaggyDev 6 ай бұрын
In that particular instance, there's no explicit normalization going on. I just multiply two numbers together that are already normalized to the range 0-1, according to the arbitrary rules of my sample logic that says Heal 25% is worth 0.4 and healing at 30% health is worth 0.8. As long as the numbers actually are
@alejmc
@alejmc 7 ай бұрын
2:30 what is this game? Curious.
@TheShaggyDev
@TheShaggyDev 7 ай бұрын
That's Fallout 1!
@alejmc
@alejmc 7 ай бұрын
@@TheShaggyDev oh wow, those gems that I completely missed, better put these few days off during the holidays to revive some of that!
How Utility AI Helps NPCs Decide What To Do Next | AI 101
15:48
AI and Games
Рет қаралды 44 М.
Making tactical units - A devlog
12:24
The Shaggy Dev
Рет қаралды 6 М.
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 210 МЛН
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 58 МЛН
Получилось у Миланы?😂
00:13
ХАБИБ
Рет қаралды 4,7 МЛН
Generative grammars as a form of procedural content generation
7:50
The Shaggy Dev
Рет қаралды 10 М.
Why is It Difficult to Make Good AI for Games?
15:00
AI and Games
Рет қаралды 65 М.
The AI of BioShock Infinite's Elizabeth | AI and Games #19
20:11
AI and Games
Рет қаралды 79 М.
Stop Fighting! Systems for Non-Combat AI
28:32
GDC
Рет қаралды 25 М.
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 210 МЛН