There are two new optional functions in info.nut:
GetUrl() can return a string that points to your own website or a forum thread for your AI. It'll be displayed in the AI debug panel when your AI crashes. It's also shown in the AI selection window.
UseAsRandomAI() can return true (default) or false. When it returns false that AI will never be chosen randomly, the user will have to select that AI explicitly. Main use would be helper AIs that don't really compete, like TownCars.
AIOrder.AIOF_STOP_IN_DEPOT has been added as an order flag to allow AIs to give stop in depot orders.
Recent api additions
Moderator: OpenTTD Developers
Re: Recent api additions
Yata!Yexo wrote:AIOrder.AIOF_STOP_IN_DEPOT has been added as an order flag to allow AIs to give stop in depot orders.

Thanks for the quick update Yexo
Re: Recent api additions
Sound a good improvement, AI's can do like human(giving to depot order)
wich nigthlies minimum required?
edit:: I guess R 16107

edit:: I guess R 16107

-
- Engineer
- Posts: 113
- Joined: 08 Aug 2008 11:35
- Contact:
Re: Recent api additions
I guess this is also a nice one for Rondje... if you'd actually like to build cargo routes with trucks you don't want rondje to startYexo wrote: UseAsRandomAI() can return true (default) or false. When it returns false that AI will never be chosen randomly, the user will have to select that AI explicitly. Main use would be helper AIs that don't really compete, like TownCars.

Who is online
Users browsing this forum: No registered users and 4 guests