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.
Long story short:
1. Learn the Squirrel programming language
2. Learn the OpenTTD AI API
3. Look at existing AIs and available AI libraries for examples and bases to start from
4. Write some code
I would love to make one too. The problem is there is no one explaining how to install the squirrel. I do code but for some reason installing squirrel language is like walking in a labyrinth and there is no instruction anywhere. The only thing I found is how to install SQuirrel DataBase, bummer.
You don't need to install Squirrel, everything required to run the AI is already built into OpenTTD. All you need is a text editor to write the code, and place the files in the right location.
Ooh that's great. So how do I debug then, you know, to check some spelling error, missing semicolon, etc?
And how do I type Squirrel language without autocomplete and libraries? I do code in C++ though
I believe there is Squirrel syntax highlighting available for most major text editors, e.g. VS Code and Notepad++ should have it. I don't know about any autocompletion tools.
You can run OpenTTD with debug logging enabled to get syntax errors printed when it tries to load a script.