Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Thu Oct 18, 2018 11:30 pm

All times are UTC

Post new topic  Reply to topic  [ 1 post ] 
Author Message
 Post subject: NoAI Documentation
PostPosted: Tue Aug 07, 2018 9:35 am 

Joined: Sun Jul 22, 2018 8:30 pm
Posts: 11
Sometimes, I find a function in the NoAI Documentation that I want to use, but then it seems that it behaves different from what I expected.

In the following functions, could the behaviour be adjusted, or the documentation updated? I might add more things to the list by editing this post.
  1. AIVehicleList_Station(StationID station_id) - This function only works for the "own" company, but that is not stated. My AI would like to see if any vehicle has orders to a station of another company. Human players can do this by clicking a station of another company.
  2. AIRail.BuildSignal (TileIndex tile, TileIndex front, SignalType signal) - If there is already a signal, its direction will be turned, similar to building signals for human player.
  3. AIMarine.AreWaterTilesConnected (TileIndex tile_from, TileIndex tile_to) - Fails when two locks are built, blocking eachother. This function will return true between the lock tiles, despite the documentation says "whether a ship vehicle can travel from the center of the first tile to the center of the second tile."
  4. AIStation.GetLocation(StationID station_id), AIStation.GetName(StationID station_id) - Doesn't work for stations of another company
  5. AIStation.HasCargoRating(StationID station_id, CargoID cargo_id), AIStation.GetCargoRating(StationID station_id, CargoID cargo_id) - Doesn't work for stations of other companies either

Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 4 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2018 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2018.
Hosted by Zernebok Hosting.