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
How to get AI develop environment working
Moderator: OpenTTD Developers
How to get AI develop environment working
- Attachments
-
- nomatchesforaicontroller.PNG (2.26 KiB) Viewed 1520 times
Re: How to get AI develop environment working
Hi, 
AIController, and other API calls are OpenTTD modification specific. Its not a built in - native squirrel keyword.

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
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
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:
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
- Attachments
-
- openttd_noai_api.xml
- (71.23 KiB) Downloaded 91 times
Who is online
Users browsing this forum: RocketGoose and 4 guests