Page 1 of 1

Recent api additions

Posted: 21 Apr 2009 19:21
by Yexo
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.

Re: Recent api additions

Posted: 21 Apr 2009 19:26
by Morloth
Yexo wrote:AIOrder.AIOF_STOP_IN_DEPOT has been added as an order flag to allow AIs to give stop in depot orders.
Yata! :mrgreen:

Thanks for the quick update Yexo

Re: Recent api additions

Posted: 22 Apr 2009 04:56
by fanioz
Sound a good improvement, AI's can do like human(giving to depot order) :D wich nigthlies minimum required?
edit:: I guess R 16107 :)

Re: Recent api additions

Posted: 28 Apr 2009 08:45
by Maninthebox
Yexo 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.
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 start :mrgreen: