AI:Main Page
(→User AIs) |
|||
(16 intermediate revisions by 12 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 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 | + | 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 | + | 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. |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
== Tutorials == | == Tutorials == | ||
Line 37: | 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 use the [[Bananas|online content service]] or alternatively have a look at the [http://www.tt-forums.net/viewforum.php?f=65 NoAI forum]. | 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]. | ||
− | {{0.7 | + | |
+ | === Comparison of AIs === | ||
+ | * [[Comparison of AIs]] | ||
+ | * [[AI:Test AIs|Test AIs]] | ||
+ | |||
+ | {{Feature|0.7}} | ||
+ | |||
+ | == Game Scripts == | ||
+ | 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
Note
The user page is here: AI settings
NoAI Main Page
Development
AI Programming
- API Documentation
- Introduction
- info.nut file
- main.nut file
- Basics
- Using the road pathfinder
- Using the rail pathfinder
- Saving / Loading data
- Things you need to know
- Squirrel
- Lists
- Coping with OTTD errors
- Trams
- AI Libraries
- Forum
- Forum FAQ
- AI Behavior
- Using ShortNames
AIs
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
- Introduction to writing an AI for OpenTTD
- Basics of writing an AI
- Things you need to know about writing an AI
- Common pitfalls when working with Squirrel
- Introduction to lists (TownList, TileList, ...)
- Find out how to retrieve error messages after failed build commands
- Trams, and everything related
[edit] API Documentation
- Documentation of all API functions can be found in the Doxygen output. For AI API only, check http://noai.openttd.org/docs/
- Adding Doxygen documentation to your AI library
[edit] AIs
[edit] Examples
[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