AI:Main Page

From OpenTTD
(Difference between revisions)
Jump to: navigation, search
(Changes: improper comma)
 
(20 intermediate revisions by 15 users not shown)
Line 1: Line 1:
 +
{{note|The user page is here: [[AI settings]]}}
 +
{{Other_languages
 +
|en=AI:Main Page
 +
|es=IA:Página principal
 +
|fr=IA:Page principale
 +
|language_page=en
 +
}}{{-}}
 
{{NoAI}}
 
{{NoAI}}
 +
Welcome to the AI Development. Starting from 0.7.0 release it is possible for any user to create his or her 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 of programming knowledge to make fairly good AIs. It should also challenge people to build better AIs than the ones we had in 0.6. This page is all about telling you how to do it.
  
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 a rule: where examples are given, we will use Squirrel. We suggest everyone who wants to write an AI to read the [[AI:Introduction|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 ==
+
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].
+
 
+
== 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 ==
+
 
+
'''[[AI:Development milestones|Development milestones]]''' article documents most important changes to NoAI framework.
+
 
+
* 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.
+
 
+
* For comments on all committed changes to the code, see the AI branch commits summary page: http://hg.openttd.org/openttd/branches/noai.hg/
+
 
+
* As of '''20 July 2008''', the -a option is no longer valid, and replaced with
+
[ai_players]
+
none =
+
YourAI =
+
in openttd.cfg.
+
  
 
== Tutorials ==
 
== Tutorials ==
Line 36: Line 22:
 
== API Documentation ==
 
== API Documentation ==
 
* Documentation of all API functions can be found in the Doxygen output. For AI API only, check http://noai.openttd.org/docs/
 
* Documentation of all API functions can be found in the Doxygen output. For AI API only, check http://noai.openttd.org/docs/
 +
* [[AI:Doxygen_Documentation|Adding Doxygen documentation to your AI library]]
 +
  
 
== AIs ==
 
== AIs ==
 
=== Examples ===
 
=== Examples ===
 
* [[AI:WrightAI|WrightAI]] - Builds plane routes only.
 
* [[AI:WrightAI|WrightAI]] - Builds plane routes only.
 +
* [[AI:TestAI|TestAI]] - A minimal main.nut and info.nut to base your AI from.
  
 
=== 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 use the [[Bananas|online content service]] or alternatively have a look at the [http://www.tt-forums.net/viewforum.php?f=65 NoAI forum].
 +
 
 +
=== Comparison of AIs ===
 +
* [[Comparison of AIs]]
 +
* [[AI:Test AIs|Test AIs]]
 +
 
 +
{{Feature|0.7}}
  
=== Tournaments ===
+
== Game Scripts ==
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.
+
If you want to get started with game scripts, there is now a special article about that: [[Game_script|Game Script]]

Latest revision as of 12:40, 11 July 2015

Notice.png

Note
The user page is here: AI settings


Welcome to the AI Development. Starting from 0.7.0 release it is possible for any user to create his or her 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 of programming knowledge to make fairly good AIs. It should also challenge people to build better AIs than the ones we had in 0.6. This page is all about telling you how to do it.

For all pages there is a 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

[edit] Tutorials

[edit] API Documentation


[edit] AIs

[edit] Examples

  • WrightAI - Builds plane routes only.
  • TestAI - A minimal main.nut and info.nut to base your AI from.

[edit] User AIs

To download user made AIs, please use the online content service or alternatively have a look at the NoAI forum.

[edit] Comparison of AIs


Feature availability

<1.0

1.0-1.2

1.3

1.4

1.5-1.7

Nightly

[edit] Game Scripts

If you want to get started with game scripts, there is now a special article about that: Game Script

Personal tools