News for hackers. Stuff that matters.
Re:AI Toolkit: Give a brain to your game's NPCs, a header-on... by Philpax on Tuesday January 09, 2024 @10:03AM (#38926957)
To be clear, this is conventional game AI and does not involve any ML. Still a cool project, though! Very compact.
Re:AI Toolkit: Give a brain to your game's NPCs, a header-on... by gumballindie on Tuesday January 09, 2024 @12:19PM (#38928788)
I don’s see the issue?
Re:AI Toolkit: Give a brain to your game's NPCs, a header-on... by whatyesaid on Tuesday January 09, 2024 @10:41AM (#38927370)
What do you mean by non-conventional game AI?
Re:AI Toolkit: Give a brain to your game's NPCs, a header-on... by DistractionRect on Tuesday January 09, 2024 @10:54AM (#38927515)
Conventional game AI is usually search algorithms for movement (like A*) + finite state machines for behavior. No network calls to LLMs, no machine learning, etc. At the fringes, throw in the odd markov chain for procedural text generation.

Basically AI post 2019 usually means LLM, and they're making the distinction that this is not that.

Re:AI Toolkit: Give a brain to your game's NPCs, a header-on... by linkdd on Tuesday January 09, 2024 @10:59AM (#38927582)
Yup, conventional game AI is just bunch of ifs :)
Re:AI Toolkit: Give a brain to your game's NPCs, a header-on... by tensor on Tuesday January 09, 2024 @12:23PM (#38928839)
Planning / A* search is hardly a bunch of ifs, and is a crucial component of these systems. Expert systems are closer to a bunch of ifs, but that overlooks that the challenge is in coming up with the conditions, not writing if statements.
Re:AI Toolkit: Give a brain to your game's NPCs, a header-on... by mjburgess on Tuesday January 09, 2024 @11:31AM (#38928053)
if rule(mean(training_data, weightings)): ...

isnt so different than

if rule(programmer_params): ...

Re:AI Toolkit: Give a brain to your game's NPCs, a header-on... by Etheryte on Tuesday January 09, 2024 @11:39AM (#38928176)
Depends. Conceptually there is no difference between a few ifs and a few billion ifs, in practice it's a whole different ballgame.
Re:AI Toolkit: Give a brain to your game's NPCs, a header-on... by NerdiDotOrg on Tuesday January 09, 2024 @11:56AM (#38928449)
This is very true

Code format for a 1 line like this example is nowhere close to # of lines in other files, the networking delays, and also can't be done client-side with current hardware to the scale needed for multiple entities all weighted uniquely in the current 2023 "AI" tools.

Re:AI Toolkit: Give a brain to your game's NPCs, a header-on... by rdedev on Tuesday January 09, 2024 @01:34PM (#38929973)
All AI systems (including A* and LLMs) can be thought of as a system that explores a search space to obtain a certain goal. At least this is what I understood from reading artificial intelligence -a modern approach by Peter norvig.

Both A* and deep learning explores a search space based on a goal. The difference is DL explores when it's training and learns to use the right moves for a given input.

Re:AI Toolkit: Give a brain to your game's NPCs, a header-on... by jameshart on Tuesday January 09, 2024 @02:05PM (#38930424)
Artificial Intelligence - a Modern Approach was published in 1995.

It should be fairly obvious that what we think of as 'conventional AI' might have changed in the last 28 years, even if we hadn't just been living through a twelve month or so explosion in the availability and power of generative AI models that transformed what people associate the term with.

Re:AI Toolkit: Give a brain to your game's NPCs, a header-on... by whatyesaid on Tuesday January 09, 2024 @06:56PM (#38934133)
We are talking about 'conventional AI' in terms of games though. I don't think there was any explosion apart from the fact you can use generative AI to make art.

That book has the latest edition in 2020. But yeah, A* is search space based, LLMs or DL I wouldn't call it search space based at all. It's function fitting.

Re:AI Toolkit: Give a brain to your game's NPCs, a header-on... by bee_rider on Tuesday January 09, 2024 @03:23PM (#38931566)
It still seems worthwhile to make the distinction; it might be possible to think of them as the same thing at a high enough level, but the actual libraries and algorithms used are different.
Re:AI Toolkit: Give a brain to your game's NPCs, a header-on... by signaru on Tuesday January 09, 2024 @03:02PM (#38931226)
Any book recommendations for conventional game AI? (Particularly with the "game" part, as games always have interesting constraints.) Thanks in advance.
Re:AI Toolkit: Give a brain to your game's NPCs, a header-on... by boarnoah on Tuesday January 09, 2024 @04:57PM (#38932757)
http://www.gameaipro.com/ the content falls somewhere between a developer talk like at GDC and a textbook, very interesting stuff to read.
Re:AI Toolkit: Give a brain to your game's NPCs, a header-on... by DistractionRect on Tuesday January 09, 2024 @04:39PM (#38932491)
I can't think of any books off hand, it'll vary depending on what kind of game you're making. Like the AI in F.E.A.R. will be different from Starcraft, which different than that in XCOM, etc.

And if you're scaling difficulty, then you're likely tuning how the AI behaves.

GDC, GDCVault, academic papers, and dev blogs//post mortems of similar games to what you're interested in will have a lot of good information.

Re:AI Toolkit: Give a brain to your game's NPCs, a header-on... by swyx on Tuesday January 09, 2024 @03:38PM (#38931769)
basically the entire GameDevCon youtube channel has tons of examples
Re:AI Toolkit: Give a brain to your game's NPCs, a header-on... by userbinator on Tuesday January 09, 2024 @08:43PM (#38935087)
Nonetheless I think many of us came here wondering how an LLM fits into a header-only library.
Re:AI Toolkit: Give a brain to your game's NPCs, a header-on... by BoppreH on Tuesday January 09, 2024 @10:45AM (#38927399)
Not the person you're asking, but I think it's clear from context that they meant "no artificial neural networks" and other forms of AI that are trained from data. From the Github repo:

  It provides:
    Finite State Machines
    Behavior Tree
    Utility AI
    Goal Oriented Action Planning
All of these are "AI", but handcrafted ones.
Re:AI Toolkit: Give a brain to your game's NPCs, a header-on... by whatyesaid on Tuesday January 09, 2024 @10:58AM (#38927563)
I'm not aware of any DL based game AIs.

I'm not sure you can really design a well put together experience around a DL agent, but if you can, it might as well just be handcrafted with some of these abstractions anyway.

Because in the end, you essentially need high understanding/constraints of how it will behave otherwise you've lost control over the experience as the designer.

Re:AI Toolkit: Give a brain to your game's NPCs, a header-on... by linkdd on Tuesday January 09, 2024 @11:01AM (#38927604)
You can use Q-Learning which is simple enough to have an AI that "learns".

IANAPGD (I Am Not A Professional Game Dev), I haven't seen this as a gameplay mechanic either.