Trouble with AIAbstractList (split from: Terron 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
User avatar
3iff
Tycoon
Tycoon
Posts: 1103
Joined: 21 Oct 2005 09:26
Location: Birmingham, England

Trouble with AIAbstractList (split from: Terron AI)

Post by 3iff »

I'm getting an error with this AI (and a few others)

"the index 'AIAbstractList' does not exist"

I 'think' I have all the libraries. Any idea how to fix this? I'm using nightly 22471, is that the problem?
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Terron AI

Post by Yexo »

3iff wrote:I'm getting an error with this AI (and a few others)

"the index 'AIAbstractList' does not exist"

I 'think' I have all the libraries. Any idea how to fix this? I'm using nightly 22471, is that the problem?
Are you using a binary download from openttd.org or did you download it from the forum or compile yourself? This AI works fine for me in r22471. If you can repeat the problem, can you please make a screenshot of the AI debug window and post that here? There is more important information in there than just the message itself.
User avatar
3iff
Tycoon
Tycoon
Posts: 1103
Joined: 21 Oct 2005 09:26
Location: Birmingham, England

Re: Terron AI

Post by 3iff »

While I do normally use a self-compiled exe, I've just tried the official downloaded version of 22471.

Screenshot enclosed. A number of different AIs fail with the same error (but AroAI and Dictator work fine).
Libraries were mostly downloaded via the in-game downloader. I have all the libraries available. I can supply a list if required.
Attachments
Unnamed, 14th Feb 1950.png
Unnamed, 14th Feb 1950.png (41.54 KiB) Viewed 2671 times
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: Terron AI

Post by Lord Aro »

extending the ai debug window so you can see ALL the text would be nice... ;)
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
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Terron AI

Post by Yexo »

Lord Aro wrote:extending the ai debug window so you can see ALL the text would be nice... ;)
Doesn't matter in this case, it can only be a single line.

@3iff: self-compiled exe is fine, as long as no patches were applied that could possible influence it. My next guess is that your ai/compat_1.0.nut file is somehow corrupted, or that you have an old version of that file in a wrong location. It should only be in your installation/download directory. If you have a file named like that in My Documents/OpenTTD/ai, delete it. I've attached the file as it should be for current trunk.
Attachments
compat_1.0.nut
(2.59 KiB) Downloaded 162 times
svetovoi
Engineer
Engineer
Posts: 87
Joined: 12 Oct 2007 14:07

Re: Terron AI

Post by svetovoi »

Anyway I should have changed AIAbstractList references into AIList long time ago, and will do it for next upload.
User avatar
3iff
Tycoon
Tycoon
Posts: 1103
Joined: 21 Oct 2005 09:26
Location: Birmingham, England

Re: Terron AI

Post by 3iff »

Once I did a completely fresh install it all worked. Tried my self compiled version and that's fine too. I haven't changed anything that could 'break' things. Something somewhere did get out of whack but hopefully it's all back into proper shape.

I tend to stay well out of "My Documents" but I'll double check that location. I always keep the config file in to ottd folder.

Sorry ac84 for talking all over your thread...at least now I can try your AI.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Terron AI

Post by planetmaker »

3iff wrote: I tend to stay well out of "My Documents" but I'll double check that location. I always keep the config file in to ottd folder.
.
It - IMHO - is usually a good folder to make use of, though. It allows you to share the available NewGRFs among your different OpenTTD versions without any worry or work on your part.
</off topic>
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 8 guests