AI:Main Page

From OpenTTD
(Difference between revisions)
Jump to: navigation, search
Line 18: Line 18:
:* [[AI:SQ_pitfalls|Common pitfalls when working with Squirrel]]
:* [[AI:SQ_pitfalls|Common pitfalls when working with Squirrel]]
:* [[AI:Lists|Introduction to lists (TownList, TileList, ...)]]
:* [[AI:Lists|Introduction to lists (TownList, TileList, ...)]]
:* [[AI:Last_Error|Find out how to retrieve error messages after failed build commands]]
==API Documentation==
==API Documentation==

Revision as of 07:57, 8 April 2008

Welcome to the AI Development. Starting from the NoAI branch it is possible for any user to create his own AI. Not only do we deliver a clean and simple API, we also allow you to make your AI in scripts. This should make it possible for anyone with a bit programming knowledge to make pretty good AIs. Also should it challenge people to build better AIs then the ones we currently have in 0.5 release. This page is all about telling you how to do it.

For all pages there is the rule: where examples are given, we will use Squirrel. We suggest everyone who wants to write an AI to read the Introduction as it will explain the basic concept.


Source & binaries

You can check out the source from svn at svn:// or download it from, binaries are available at


If compiling from source, the files for /src/3rdparty/squirrel have to be checked out from SVN at svn://


As of 17 March 2008, it is no longer possible to write your AI in C++. The only language to write your AI in, is Squirrel. See this page why.


API Documentation


User AIs

Personal tools