Page 1 of 1

How to get AI develop environment working

Posted: 21 Jul 2009 09:29
by Mayday21
Hi,

I want to test programming an OpenTTD AI.
But I had some problems comming to this point ...

At last I got it to install SQDev in Eclipse. And I am able to write an AI as provided in the wiki.
But I got no IntelliSense in SQDev. Even more, if I mouseover the keyword "AIController" Eclipse say: "No matches for AIController". Seems the dev environment does not get this interface.
Anyone knows what to do to fix this?

Greetings, Max

Re: How to get AI develop environment working

Posted: 21 Jul 2009 13:54
by fanioz
Hi, :D
AIController, and other API calls are OpenTTD modification specific. Its not a built in - native squirrel keyword.

Re: How to get AI develop environment working

Posted: 21 Jul 2009 14:38
by Yexo
If you can find out how you can add custom syntax highlighting, maybe we can figure out a way to generate that documentation for you.

Re: How to get AI develop environment working

Posted: 22 Jul 2009 22:16
by isk
According to this post something like the file in attachment should add api classes to IntelliSense, but I don't know how to use it in Eclipse - I've tested it in MSVC 2008. Moreover classes don't contain inherited methods. I will try to add these if I find some time later this week.
If this problem bothers you, you can always copy the entries in AIAbstractList to all classes that should contain them.

PS. In the first post of the linked thread there are instructions how to use this file in MSVC:
you can configure it from Tool/Options/Squirrel/General