AI settings

From OpenTTD
(Difference between revisions)
Jump to: navigation, search
m (corrected a little style inconsistency)
m (See also: added a link to NoAI Forum FAQ)
Line 37: Line 37:
*[[AI|The NoAI framework]] - useful if you want to develop your own AI
*[[AI|The NoAI framework]] - useful if you want to develop your own AI
*[[Online_content|The Online Content system]]
*[[Online_content|The Online Content system]]
*[[NoAI Forum FAQ]]

Revision as of 08:46, 15 September 2009

Since 0.7.0, the so-called NoAI framework was introduced into OpenTTD, which allows users to create their own AIs. These AIs can be handled in the AI settings window.


Downloading AIs

First of all, you have to download some AIs via the Online content system. Click the Check Online Content button in the main menu and you are able to download them. Further AIs can be found on the NoAI forum.

Selecting AIs

The AI settings window

After you downloaded AIs, click the AI settings button in the main menu. There you can configure the number of AI competitors in the game, and then choose an AI for each company slot. Click on one of the company slots, then click Select AI. In the new window, you will see a list of the downloaded AIs. Pick one, and then click Accept.

The list of the AIs

Configuring AIs

If you click on a company slot, and then you click Configure, the AI configuration window opens.

Configuring an AI

These settings (except the first one) are added individually by the different AI authors, and they determine the playing style of that AI. You can use multiple instances of the same AI with different settings. The AIs will start automatically after a given amount of days.

Using the console

You can use the in-game console to start and stop AIs. Console commands for handling AIs:

list_ai - lists the currently installed AIs.

rescan_ai - scans the AI folder for AIs, this is needed if you install an AI while you are playing the game.

start_ai <ainame> <parameters> - starts the next AI immediately. If <ainame> is given, that AI will load instead of the one set in the AI settings window. <parameters> configure the behaviour of that AI, it does the same as the Configure button in the AI settings window. Example:

start_ai admiralai use_planes=0,use_trains=1

reload_ai <company_slot> - deletes the company given in <company_slot>, and then restarts the AI. The Reload AI button in the AI Debug window does the same.

stop_ai <company_slot> - stops the AI at the given company slot, and then deletes the company.

See also


Personal tools