OpenTTD GameScript API 20241015-master-gd5b57a56f4
Lists all changes / additions to the API.

Only new / renamed / deleted api functions will be listed here.

A list of bug fixes can be found in the normal changelog. Note that removed API functions may still be available if you return an older API version in GetAPIVersion() in info.nut.

15.0

This version is not yet released. The following changes are not set in stone yet.

API additions:

14.0

API additions:

API removals:

  • GSError::ERR_PRECONDITION_TOO_MANY_PARAMETERS, that error is never returned anymore.
  • GSInfo::CONFIG_RANDOM, no longer used.
  • GSInfo::AddSettings random_deviation is no longer used.

Other changes:

  • GSGroupList accepts an optional filter function
  • GSIndustryList accepts an optional filter function
  • GSSignList accepts an optional filter function
  • GSSubsidyList accepts an optional filter function
  • GSTownList accepts an optional filter function
  • GSVehicleList accepts an optional filter function
  • GSInfo::AddSettings easy_value / medium_value / hard_value are replaced with default_value

13.0

API additions:

Other changes:

12.0

API additions:

1.11.0

API additions:

Other changes:

1.10.0

API additions:

1.9.0

API additions:

Other changes:

1.8.0

No changes

API additions:

1.7.0 - 1.7.2

No changes

1.6.1 - 1.6.0

No changes

1.5.3 - 1.5.1

No changes

1.5.0

API additions:

Other changes:

  • GSNews::Create takes two extra parameters to refer to a location, station, industry, or town. The user can click at the news message to jump to the referred location.

1.4.4 - 1.4.3

No changes

1.4.2

Other changes:

  • GSCargoMonitor delivery and pickup monitor functions have improved boundary checking for their parameters, and return -1 if they are found out of bounds.

1.4.1

No changes

1.4.0

API additions:

Other changes:

  • GSGoal::New can now create up to 64000 concurrent goals. The old limit was 256 goals.
  • GSStation::GetCargoRating does return -1 for cargo-station combinations that do not have a rating yet instead of returning 69.

1.3.3 - 1.3.2

No changes

1.3.1

API additions:

1.3.0

API additions:

Other changes:

  • Company specific goals are now removed when a company goes bankrupt or is taken over.

1.2.3 - 1.2.1

No changes

1.2.0

  • First stable release with the NoGo framework.