Commit Graph
11 Commits
Author SHA1 Message Date
Ben SpurlockandCursor 0fc88ab16c [Plugin API] Automation helpers for park directors and programmatic ride building (#26675)
* [Plugin API] Add automation helpers for park directors and ride building

Expose ride maintenance metrics, context.gameSpeed, map bulk queries,
riderefurbish action alias, FootpathElement.isAdditionFull, and
TrackSegment.getNextValidSegments. Bump plugin API version to 115.

Includes TrackPieceSelection from markusklock's work (#25840).

Co-authored-by: Cursor <cursoragent@cursor.com>

* Add PR #26675 to distribution/changelog.txt

Co-authored-by: Cursor <cursoragent@cursor.com>

* Fix CI: clang-format and changelog ordering

Reorder 0.5.3 changelog entries and apply format-changelog.js output.
Apply clang-format fixes to ScriptEngine.cpp and ScMap.cpp.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Fix contributor name to Ben Spurlock (BenDaSpur)

Co-authored-by: Cursor <cursoragent@cursor.com>

* Fix changelog EOF for CI check-changelog-formatting

Remove trailing blank line so the file matches formatter output via
echo (bash strips trailing newlines from command substitution).
Also correct contributor name to Ben Spurlock (BenDaSpur).

Co-authored-by: Cursor <cursoragent@cursor.com>

* Remove #25840 TrackPieceSelection overlap from PR #26675

Per maintainer feedback, drop TrackSegment.getNextValidSegments and the
TrackPieceSelection implementation copied from markusklock's open PR #25840
so this change set can be reviewed independently. Those additions will be
picked up when #25840 lands.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Simplify plugin API per maintainer review

Drop the riderefurbish alias and bulk map query APIs in favor of existing
primitives, and consolidate the changelog entry.

* Fix isAdditionFull to only report visibly full / emptiable bins

Per review feedback, a litter bin slot is only "full" (shows the full
sprite and can be emptied by a handyman) once its 2-bit edge slot reaches
0, not whenever the status byte is below 255. Mirror the engine's own
Staff::updatePatrollingFindBin logic and require the addition to be a bin.

* Remove unused includes left over from dropped APIs

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-20 09:16:29 +02:00
MaukWM 1ef6b7e941 Add save game binding in plugin API (#26560)
* Add context.saveGame() binding in plugin API.

* Add option to save games to a specific path via the plugin API.

* Alter documentation for SaveGameOptions.

* Bump kPluginApiVersion to 116.

* Use IsFilenameValid to disallow saving files with invalid characters

* Add changelog entry
2026-07-08 11:40:39 +00:00
73chn1cand73chn1c 229d35bce2 Document ListViewItem shape for multi-column list views (#26746)
Clarify that items is string[][] (one string[] row per entry) when
columns are used, not a flat string[], per confusion reported in #17855.

Co-authored-by: 73chn1c <73chn1c@users.noreply.github.com>
2026-07-07 19:33:45 +02:00
mrmbernardi a64f0eff6c Fix crash when ScPark::generateGuest fails to generate a guest (#26681) 2026-06-16 20:24:53 +02:00
MarcelVos96 86f282f7c0 Add cheat to disable grass growing (#26442) 2026-06-09 23:03:27 +02:00
Stephan SpenglerandTulio Leao bcdac632a4 Add footpath object flags to API (#26322)
* add footpath object flags to API

* Add changelog

---------

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2026-06-06 16:31:03 -03:00
Aaron van Geffen dd31d9ad44 Minor correction to StaffSetCostumeArgs in openrct2.d.ts (#26604) 2026-05-23 18:30:15 +02:00
Harry Hopkinson 9d5e532064 Rename enum members to lowerCamelCase in actions/ (#26593)
* Rename enums in LoadOrQuitAction.h

* Rename enums in ScenarioSetSettingAction.h

* Rename enums in TileModifyAction.h

* Rename enums in NetworkModifyGroupAction.h

* Rename enums in LandBuyRightsAction.h

* Rename enums in LandSetRightsAction.h

* Rename enums in ParkSetParameterAction.h

* Rename enums in PeepPickupAction.h

* Rename enums in StaffSetPatrolAreaAction.h

* Rename enums in RideFreezeRatingAction.h

* Rename enums in RideSetAppearanceAction.h

* Rename enums in RideSetSettingAction.h

* Rename enums in RideSetVehicleAction.h

* Rename enums in BannerSetStyleAction.h
2026-05-21 19:16:07 +00:00
73 08ca5ec987 Fix copyright years in files that state 2025 still (#26540) 2026-05-16 17:51:22 +02:00
Marino Rottier ab3eea631c docs: update scripting.md from Duktape to QuickJS-NG (#26411) 2026-05-07 20:15:10 +02:00
Marino Rottier 6e45d802ec Automatically publish plugin types to NPM (#26283)
* add workflow and package.json for publishing plugin TypeScript types

* move scripting-related files to scripting folder

* add support for trusted publishers

* fix path to scripting readme

* rename scripting README.md back to scripting.md

* support tagged/dev releases

* add workflow for development versions

* Update package.json website

* change dependencies in publish-plugin-types

* add timestamp to dev plugin versions

* note ScriptEngine.h grep dependency from CI

* use gh-describe to track release version for dev plugin types
2026-04-28 21:25:57 +02:00