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.
It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
Put your ai in C:\Users\Thomas\Documents\OpenTTD\aitrAI (don't put your development files in content_download)
You could try to change the short + long name of your AI in info.nut to something that you are sure is unique to make sure that OpenTTD uses your code and not some other AI code.
Last edited by Zuu on 14 Feb 2012 17:52, edited 2 times in total.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites) Junctioneer (a traffic intersection simulator)
I haven't downloaded any ai after i re-installed openttd (i have 1 now, ChooChoo.).
I have moved the ai to where zuu said and changed the names, however it still doesn't work and still says trAI in the ai menu (should be long name "TrotterAI" and short name "tAI").
It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
(sorry, I forgot to add one slash above in my previous post when fighting against the slash remover in the forum)
or in the "ai" directory of your OpenTTD installation that you use for AI development. (if you want to keep your development AIs way from your other installations of OpenTTD)
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites) Junctioneer (a traffic intersection simulator)
We don't have a "standard math library"... The most common Libraries are listed on Bananas (here) which hosts the files for the in-game download system. Once you have the library you want, add a line like this near the top of your main.nut:
The first parameter is the library's category and name, the next is what you want the library's main class to be called in your program, and the third parameter is the version of the library you are importing.
It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra