Page 1 of 1

An introduction to the OpenTTD NoAI framework

Posted: 12 Jun 2008 14:22
by Yexo
First of all, what is the NoAI framework?
The NoAI framework provides an API to write your own AI. AIs can be written using squirrel.

What does it offer for me?
The old AI was still the same AI as in TTD which hasn't been updated for years. With this new framework several users are writing their own AIs which perform much better then the original AI, proving a better challenge to play against.

Where can I download the latest version?
NoAI is included in latest nightly.

Where can I get a new AI to play with?
You can download AIs in-game via the "Download content" button.

I want to write my own AI, where do I start?
The best starting place is the wiki. Also see AI:Introduction. The API docs are located here.

Tournament server
TrueBrain has created a tournament server and is regularly running competitions between AIs. It is currently offline. Check back in a few weeks for updates.

Re: An introduction to the OpenTTD NoAI framework

Posted: 16 Jul 2013 15:41
by Kogut
Yexo wrote:Tournament server
TrueBrain has created a tournament server and is regularly running competitions between AIs. It is currently offline. Check back in a few weeks for updates.
It may be a good idea to remove it, unfortunately it seems to be thoroughly dead.

Re: An introduction to the OpenTTD NoAI framework

Posted: 16 Jul 2013 15:51
by planetmaker
Kogut wrote:
Yexo wrote:Tournament server
TrueBrain has created a tournament server and is regularly running competitions between AIs. It is currently offline. Check back in a few weeks for updates.
It may be a good idea to remove it, unfortunately it seems to be thoroughly dead.
Of course there could be volunteers who run or hold such contests regularily...

Re: An introduction to the OpenTTD NoAI framework

Posted: 16 Jul 2013 15:56
by Kogut
planetmaker wrote:
Kogut wrote:
Yexo wrote:Tournament server
TrueBrain has created a tournament server and is regularly running competitions between AIs. It is currently offline. Check back in a few weeks for updates.
It may be a good idea to remove it, unfortunately it seems to be thoroughly dead.
Of course there could be volunteers who run or hold such contests regularily...
I should be able to make one, but I will do it after fixing all cases of random crashes in my AI 8)

Re: An introduction to the OpenTTD NoAI framework

Posted: 16 Jul 2013 16:38
by Lord Aro
About a year ago, i did update Truebrain's patch for his tournament, however i haven't looked at it since and it wasn't complete anyway

Re: An introduction to the OpenTTD NoAI framework

Posted: 15 Jul 2020 12:59
by MagicBuzz
Hello,

Do you know if there is some editor for Squirrel ? (on Windows)

I found there were a Visual Studio integration with VS2010, but it's quite old. I'm trying to compile it for VS2019 but I have serious doubts.
I fould also a SquirrelEditor on SourceForce, but the program is discontinued, bugged, and was oriented for a specific game (autocompletion was proposing only functions that not exists in OTTD).

Re: An introduction to the OpenTTD NoAI framework

Posted: 15 Jul 2020 13:54
by embeddedt
MagicBuzz wrote: 15 Jul 2020 12:59 Do you know if there is some editor for Squirrel ? (on Windows)
There are two Visual Studio Code extensions that claim to have Squirrel syntax highlighting. I doubt you'll get autocompletion though.

https://marketplace.visualstudio.com/it ... e-squirrel
https://marketplace.visualstudio.com/it ... irrel-lang

Re: An introduction to the OpenTTD NoAI framework

Posted: 23 Sep 2020 23:34
by thegreatpl
MagicBuzz wrote: 15 Jul 2020 12:59 Hello,

Do you know if there is some editor for Squirrel ? (on Windows)

I found there were a Visual Studio integration with VS2010, but it's quite old. I'm trying to compile it for VS2019 but I have serious doubts.
I fould also a SquirrelEditor on SourceForce, but the program is discontinued, bugged, and was oriented for a specific game (autocompletion was proposing only functions that not exists in OTTD).
Late response, but there is/was a Notepad++ extension specifically for Openttd AI, which comes with autocomplete.

Found here:viewtopic.php?t=69671

It is, however, out of date, and the current API includes a number of functions and types which are not covered by this. A few have also changed.