Jump to content
  • Advertisement
Sign in to follow this  

AI engine question

This topic is 4462 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to make an AI engine, but i dont know exactly how to begin. (and if there are people who want to join me building an AI engine, just pm me)

Share this post

Link to post
Share on other sites
Well, first you must decide what exactly your AI engine is gonna do. AI is pretty large, you need to specialise, its impossible to do everything. You could do

-Decision making
-Generic Behaviors
-Theoric Games
-Human-Machine Interaction

What kind of AI problem do you want your engine to solve?

After you choose that, then you can begin to choose how your engine will tackle that particular AI problem.

Share this post

Link to post
Share on other sites
If the engine is going to be generic, you have to start
with defining the abstraction layer.
That is, if your engine is for tilebased maps, you
have to define te general data that such a map should contain.
If this is done right, your engine should be usable on most
tilebased maps.

In the other end, you could create something like prolog,
witch is sort of a AI programming language, that can be used
and utilitised from the actual game. The game enters the data,
and the rules that should be applied, and then the system does
all the calculations and delivers a nice result.

The most difficult fact is that most games represent their
world differently, and the AI must fit this representation,
so it have to be specialized.

If you manage to create generic modules, or a generic interface
to your engine, then the engine could be used many places, and
because of this be to greate use to developers all over the world.

Good luck!

Share this post

Link to post
Share on other sites
Since I do not know what is your knowledge on that subject, here are my 2 cents.

I think it is better to focus on a problem to solve since all AI techniques do not process the same type of data and do not adress the same problems. There are quite a few good books on these subject. I would advise you to look up AI Agents in Virtual Reality (ISBN 0471127086). I grant you it is an old book (ed: 1996) but it shows an approach where the different AI techniques access a single homogenous World interface. The approach is easy enough to follow and shows how to implement a little game implementing different AI techniques within the same world.

I also would advise to start out with simple techniques which can easily be debugged and where a state can be recreated: State Machines and Rule Based systems come to mind here.

You also can have a look at existing AI engine to have a look at their architecture and compare with your own needs.
For a list, check out the excellent game AI page:

Hope that helps.
Ghostly yours,

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!