Page 1 of 1
Trouble with AIAbstractList (split from: Terron AI)
Posted: 25 May 2011 07:45
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?
Re: Terron AI
Posted: 25 May 2011 08:47
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.
Re: Terron AI
Posted: 25 May 2011 09:08
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.
Re: Terron AI
Posted: 25 May 2011 09:12
by Lord Aro
extending the ai debug window so you can see ALL the text would be nice...

Re: Terron AI
Posted: 25 May 2011 09:26
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.
Re: Terron AI
Posted: 25 May 2011 10:00
by svetovoi
Anyway I should have changed AIAbstractList references into AIList long time ago, and will do it for next upload.
Re: Terron AI
Posted: 25 May 2011 11:36
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.
Re: Terron AI
Posted: 25 May 2011 13:51
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>