AI:Main Page

From OpenTTD
(Difference between revisions)
Jump to: navigation, search
m (fixed extra whitespace on start)
(Updated to reflect 0.7.0 release and other changes. Removed section about Tournament that is no longer being run.)
Line 1: Line 1:
 
{{NoAI}}
 
{{NoAI}}
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.
+
Welcome to the AI Development. Starting from 0.7.0 release 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 had in 0.6. 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.
 
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 ==
 
== Source & binaries ==
As of January 12th, 2009 NoAI is merged into trunk. This means, you can get the latest version of source code by [[FAQ development#How_do_I_get_the_SVN_version_then.3F|checking out from]] OpenTTD SVN repository (svn://openttd.org), or get compiled version by [http://www.openttd.org/en/download-trunk downloading a nightly build].
+
As of April 1st, 2009 NoAI is available in the 0.7.0 release. This means, you can [http://www.openttd.org/en/download-stable get the latest stable release]. Alternately you can get the latest source code by [[FAQ development#How_do_I_get_the_SVN_version_then.3F|checking out from]] OpenTTD SVN repository (svn://openttd.org), or get compiled version by [http://www.openttd.org/en/download-trunk downloading a nightly build].
  
 
== Compilation ==
 
== Compilation ==
Line 13: Line 13:
  
 
'''[[AI:Development milestones|Development milestones]]''' article documents most important changes to NoAI framework.
 
'''[[AI:Development milestones|Development milestones]]''' article documents most important changes to NoAI framework.
 +
 +
* As of '''12 January 2009''', NoAI was merged into trunk. The NoAI branch in SVN in no longer updated.
  
 
* 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 [[AI:Development_milestones#17_March_2008_-_C.2B.2B_support_is_dropped|here]] why.
 
* 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 [[AI:Development_milestones#17_March_2008_-_C.2B.2B_support_is_dropped|here]] why.
Line 42: Line 44:
 
=== User AIs ===
 
=== User AIs ===
 
To download user made AIs, please have a look at the NoAI forum: http://www.tt-forums.net/viewforum.php?f=65
 
To download user made AIs, please have a look at the NoAI forum: http://www.tt-forums.net/viewforum.php?f=65
 
=== Tournaments ===
 
A tournament system for user made AIs has been created. AIs compete in one-on-one games using same map and same set of rules throughout the whole tournament. Results of past tournaments (including animated gifs!) are available at http://noai.openttd.org/tournament . If you'd like your AI to be benchmarked against others, send a tar file to [[TrueBrain]]. See [http://www.tt-forums.net/viewtopic.php?f=65&t=37945 this thread on forums] for more details.
 

Revision as of 18:56, 1 April 2009

Welcome to the AI Development. Starting from 0.7.0 release 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 had in 0.6. 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.

Contents

Source & binaries

As of April 1st, 2009 NoAI is available in the 0.7.0 release. This means, you can get the latest stable release. Alternately you can get the latest source code by checking out from OpenTTD SVN repository (svn://openttd.org), or get compiled version by downloading a nightly build.

Compilation

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

Changes

Development milestones article documents most important changes to NoAI framework.

  • As of 12 January 2009, NoAI was merged into trunk. The NoAI branch in SVN in no longer updated.
  • 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 here why.
  • As of 20 July 2008, the -a option is no longer valid, and replaced with
[ai_players]
none =
YourAI =

in openttd.cfg.

Tutorials

API Documentation

AIs

Examples

User AIs

To download user made AIs, please have a look at the NoAI forum: http://www.tt-forums.net/viewforum.php?f=65

Personal tools