Skip to content

openttdcoop/ai-trans

Repository files navigation

Trans AI

Trans is an AI for OpenTTD. It try to transporting cargoes from/to any towns and industries using Bus, Truck, Tram, Aircraft and Ship. In the future it would try to use all available vehicles. Current strategy is try to use only one type of industry (if possible) as the destination of transporting cargo named Cargo Concept. See implemented feature at ROADMAP.md.

What is this repository for?

  • Quick summary

OpenTTD since version 0.7 allowing us to implement custom AIs to play with. This repository contain code of Trans, in-game AI opponent player for OpenTTD.

How do I get set up?

  • Summary of set up
  1. Cloning repository directly to ai folder
  2. Cloning repository to another folder and manual deploying
  • Clone this repository to :
  • Linux : $(HOME)/.openttd/ai
  • MacOs : $(HOME)/Documents/OpenTTD/ai
  • Windows :
   - `C:\My Documents\OpenTTD\ai` (95, 98, ME)
   - `C:\Documents and Settings\<username>\My Documents\OpenTTD\ai` (2000, XP)
   - `C:\Users\<username>\Documents\OpenTTD\ai` (Vista, 7, 8, 10)
  • Deployment instructions

To create bundle package for deploying to bananas: run powershell script "bundle.ps1". Tar (archive) file produced by this script could be used to upload to bananas or be installed to 'ai' folder.

  • Dependencies

Trans AI would need :

  1. AI Library - Common
  2. AI Library - List
  3. AI Library - String

Extract the .gz into .tar and put in your ../ai/library folder. OpenTTD can read both AI and AILibrary inside tar files but it does not extract .tar.gz files by itself.

Versioning

We uses rolling release model with YYMMDD format for versioning. This number is generated by script bundle.ps1 according to the latest commit date. If you are cloning the AI directly to ai folder, you will get the version number years ahead as written in info.nut. This is to ensure that you are running the latest version from repository. For the last bananas versions, see the bananas tags.

Licensing

Trans AI is licensed under the GNU General Public License version 2.0. For the complete license text, see the file license.txt. This license applies to all files in this distribution. By contributing your code, you agree to license your contribution under the GNU GPL v2 License.

Contributing

Using the issue tracker

The issue tracker is the preferred channel for bug reports, features requests and submitting pull requests, refer to ROADMAP.md for contributing.

Authors

  • Rifani Arsyad - a.k.a fanioz -

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published