How to install AI?

Discuss the new AI features ("NoAI") introduced into OpenTTD 0.7, allowing you to implement custom AIs, and the new Game Scripts available in OpenTTD 1.2 and higher.

Moderator: OpenTTD Developers

Post Reply
Logik
Engineer
Engineer
Posts: 17
Joined: 24 Sep 2006 06:44

How to install AI?

Post by Logik »

I tiered searching FAQ... How can I install new AI ? SOmebody plleeeasee can explain me from the "new sheet"?
I have OpenTTD version 7.0. And Admiral AI. How to install and how to start it?

p.s. In BIN directory there is no AI folder!
User avatar
GeekToo
Tycoon
Tycoon
Posts: 961
Joined: 03 Jun 2007 22:22

Re: How to install AI?

Post by GeekToo »

Easiest way is to use the ingame download function, that way libraries the AIs depend on get loaded too.
It's on the starting screen of the game.

Start AI's by using the AI settings, or by console: type ` (left of 1), and then start_ai <ai_to_start>
You can use list_ai to show a list of AIs you can use.
Logik
Engineer
Engineer
Posts: 17
Joined: 24 Sep 2006 06:44

Re: How to install AI?

Post by Logik »

I have problems with Internet. I have only Latvian internet. Another thru proxy. And game dosnt accept proxy ((( So i wont to play with AI. And dont know how to INSTALLL it. Can somebody tell me? How install correct? Where put files etc..
User avatar
GeekToo
Tycoon
Tycoon
Posts: 961
Joined: 03 Jun 2007 22:22

Re: How to install AI?

Post by GeekToo »

tar file in bin/ai (create if it does not exist)
libraries in bin/ai/library (download link somewhere in the faq)
Logik
Engineer
Engineer
Posts: 17
Joined: 24 Sep 2006 06:44

Re: How to install AI?

Post by Logik »

I put AdmiralAI.20.tar in D:\Games\OpenTTD\bin\ai
Started game, wrote ai_list in console... nothing.. zero!
what im doing wrong?
User avatar
GeekToo
Tycoon
Tycoon
Posts: 961
Joined: 03 Jun 2007 22:22

Re: How to install AI?

Post by GeekToo »

little hint: word order is important!
Logik
Engineer
Engineer
Posts: 17
Joined: 24 Sep 2006 06:44

Re: How to install AI?

Post by Logik »

My mistake. Mistake on forum. I wrote List_ai and nothing. empty line.
Logik
Engineer
Engineer
Posts: 17
Joined: 24 Sep 2006 06:44

Re: How to install AI?

Post by Logik »

Can u PLEASE install it to your OpenTTD then RAR the game and send to me ? :( Please
User avatar
GeekToo
Tycoon
Tycoon
Posts: 961
Joined: 03 Jun 2007 22:22

Re: How to install AI?

Post by GeekToo »

On Windows, remove the bin:
D:\Games\OpenTTD\bin\ai becomes D:\Games\OpenTTD\ai
and the library in D:\Games\OpenTTD\ai\library
Logik
Engineer
Engineer
Posts: 17
Joined: 24 Sep 2006 06:44

Re: How to install AI?

Post by Logik »

Tnx u very much!! You r my hero! ))
abhichit
Engineer
Engineer
Posts: 1
Joined: 31 Oct 2010 06:48

Re: How to install AI?

Post by abhichit »

Hello forum gurus,
I have the same issue (don't have proxyless internet access on campus), and am trying to install SimpleAI. Here's the current setup:
In C:\Program Files\OpenTTD\ai
SimpleAI.5.tar.gz
C:\Program Files\OpenTTD\ai\library
Pathfinder.Road.3.tar.gz
Pathfinder.Road-3.tar.gz
Pathfinder.Rail.1.tar.gz
Pathfinder.Rail-1.tar.gz
Graph.AyStar.6.tar.gz
Graph.AyStar-6.tar.gz
Queue.BinaryHeap.1.tar.gz
Queue.BinaryHeap-1.tar.gz

However, I still get the following error when trying to load the AI:
Your script made an error: couldn't find library 'pathfinder.road'
*FUNCTION[main()] SimpleAI.5.tar\simpleai.5\main.nut line[1]
[this] TABLE

See below for screenshot
Image

Thanks for the help!!
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: How to install AI?

Post by Lord Aro »

get rid of the .gz part of the tar
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
Shivam rai
Engineer
Engineer
Posts: 1
Joined: 12 Aug 2017 09:40

Re: How to install AI?

Post by Shivam rai »

GeekToo wrote:Easiest way is to use the ingame download function, that way libraries the AIs depend on get loaded too.
It's on the starting screen of the game.

Start AI's by using the AI settings, or by console: type ` (left of 1), and then start_ai <ai_to_start>
You can use list_ai to show a list of AIs you can use.
Attachments
SHR TRANSPORT CORPORATION, 13-09-1949.png
Please help
(388.65 KiB) Not downloaded yet
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 11 guests