AI:APISuggestions
From OpenTTD
Development
- Development milestones
- Suggested API changes
AI Programming
- API Documentation
- Introduction
- info.nut file
- main.nut file
- Basics
- Using the road pathfinder
- Using the rail pathfinder
- Saving / Loading data
- Things you need to know
- Squirrel
- Lists
- Coping with OTTD errors
- Trams
- AI Libraries
- Forum
- Forum FAQ
- AI Behavior
AIs
Here is a list of suggestions to extend/change the AI API before it becomes stable. The goal is to improve sustainability and to reduce the chance of needing to break the API in the future. If you miss any functions, please make a topic in the NoAI subforum.
Vehicles
- Support for timetables;
AIAbstractList
- Create an enum for the second parameter to Sort (bool ascending).
- You can use this code as workaround (put in Start, before using it). You can now use AIAbstractList.SORT_ASCENDING and descending as if it was part of the api.
AIAbstractList.SORT_ASCENDING <- true; AIAbstractList.SORT_DESCENDING <- false;
