Why AI can't use my trains?

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
User avatar
MagicBuzz
Tycoon
Tycoon
Posts: 1354
Joined: 15 Feb 2003 17:32
Location: Vergezac, France

Why AI can't use my trains?

Post by MagicBuzz »

Hello,

I created (still work in progress) a French standard gauge train set, and I was checking if an AI would use it.

I tested a few AIs, and none was able to use it.

I found in the GRF specs a few parameters about AI, but with no real explanation.

Is there a "how to" or some tutorial to help building vehicles usable by AIs?

-- Edit: Actually I found AAAHogEx was the only one that can use my trains
User avatar
odisseus
Director
Director
Posts: 568
Joined: 01 Nov 2017 21:19

Re: Why AI can't use my trains?

Post by odisseus »

If some AIs can use your trains and some others cannot, the problem is likely within those AIs. Some of them might assume that the default train set will be the only one they will ever need.
HGus
Engineer
Engineer
Posts: 121
Joined: 12 May 2013 22:28
Location: Argentina

Re: Why AI can't use my trains?

Post by HGus »

Most up to date AIs will check conditions as speed or cost before choosing a train. Is your set the only GRF for trains in your tests?
User avatar
MagicBuzz
Tycoon
Tycoon
Posts: 1354
Joined: 15 Feb 2003 17:32
Location: Vergezac, France

Re: Why AI can't use my trains?

Post by MagicBuzz »

As odisseus pointed out, I was using old AIs scripts that were assuming I was using the standard trains.
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 23 guests