Commit Graph
30282 Commits
Author SHA1 Message Date
Tulio Leao 31760893d6 Merge branch 'master' into develop 2026-08-02 08:15:16 -03:00
Tulio Leao 4a7ee146ca Release v0.5.4
- Improved: [#26560] [Plugin] Scripts can now be used to trigger saving a game (limited to the user save folder).
- Improved: [#26638] Guests will no longer watch rides while they’re underground.
- Improved: [#26747] Exporting a sprite file now also outputs a JSON file, allowing for round-trip conversions.
- Improved: [#26763] The ride colour/appearance tab now visually separates fields using group boxes.
- Improved: [#26765] The ride operations tab now visually separates fields using group boxes.
- Improved: [#26839] Magnify picked-up peeps when viewport is in double or quadruple zoom.
- Fix: [#26288] Land bordering map edges does not blend at certain angles.
- Fix: [#26610] Player list is not updated automatically when a player joins or leaves.
- Fix: [#26639] Handymen could begin a task while another handyman was already doing the exact same task.
- Fix: [#26752] The Cut-away View window doesn’t display negative height values correctly on some platforms.
- Fix: [#26756] Guests cannot puke or litter on sloped path.
- Fix: [#26758] [Plugin] IPv6 addresses are reported incorrectly.
- Fix: [#26775] Maze gets wrong intensity boost from size (0.02 per tile instead of 0.01 per 2 tiles).
- Fix: [#26805] Park entrance path is sometimes invisible when placed.
- Fix: [#26826] Invalid ride types can be set when the “Allow arbitrary ride type changes” cheat is enabled.
- Fix: [#26842] Best staff award doesn’t need one of each staff type.
2026-08-02 07:38:40 -03:00
Tulio Leao cd44174f9b Merge branch 'develop' 2026-08-02 07:34:16 -03:00
Tulio Leao 9198ff13f4 Update to objects v1.7.11 2026-08-02 07:33:27 -03:00
Tulio Leao 775c4e7635 Update backtrace for upcoming release 2026-08-02 07:17:29 -03:00
mix a4f0d22988 Fix #26288: Land bordering map edges does not blend at certain angles (#26844)
The current surface tiles position was being set to session.SpritePosition, which changed depending on the camera angle, rather than session.MapPosition. Depending on the camera angle, this puts the current tile position out of bounds at the edges of the map, skipping the blend.

This fixes that, and then adjusts the neighbouring tile coordinates so that they work for the correct starting position. These now make a lot more sense, the previous coordinates were quite strange in order to compensate for the original offset position.

This also renames that array of coordinates to a better name. As far as I know this array doesn't already exist elsewhere.

The current surfaces position is only being used to check when blending, so this should not affect anything else.

I've checked by diffing giant screenshots of a couple of parks at all rotations and found no other differences, but this could probably do with a double check.
2026-08-02 07:46:54 +00:00
OpenRCT2 git bot d181e640ac Merge Localisation/master into OpenRCT2/develop 2026-08-02 05:03:04 +00:00
MarcelVos96 d81c3a7f14 Fix #26842: Best staff award doesn't need one of each staff type (#26843) 2026-08-01 20:22:13 +00:00
RayKoopa e555c76500 Prevent setting invalid (not unknown) ride types (#26826) 2026-08-01 21:59:33 +02:00
Harry Hopkinson 69872010ae Reorder/remove more includes (#26847)
* Remove unneeded includes from src/openrct2/interface

* Remove unneeded includes from src/openrct2/entity

* Remove unneeded includes from src/openrct2/localisation

* Remove unneeded includes from src/openrct2/management

* Remove unneeded includes from src/openrct2/network
2026-07-31 21:33:22 +02:00
Aaron van Geffen ac6030f011 Magnify picked-up peeps when viewport is in double or quadruple zoom (#26839) 2026-07-29 10:38:53 +00:00
OpenRCT2 git bot 727d107be7 Merge Localisation/master into OpenRCT2/develop 2026-07-28 05:02:02 +00:00
OpenRCT2 git bot 910d112919 Merge Localisation/master into OpenRCT2/develop 2026-07-26 05:06:07 +00:00
Aaron van Geffen 8ed1ac4c57 Move SSE4.1 and AVX2 drawing declarations to Drawing.Sprite.h (#26818) 2026-07-21 22:32:11 +02:00
Harry Hopkinson df2a210fd8 Rework openrct2/drawing includes (#26815) 2026-07-21 17:00:55 +02:00
Harry Hopkinson 1b48206334 Remove more unused includes (#26804) 2026-07-20 14:19:59 +02:00
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
mix d92b18f978 Initialise pathTypeIsLegacy in ParkEntrancePlaceAction constructor (#26805) 2026-07-18 20:45:19 +00:00
MarcelVos96 9de2d43fb6 Fix typo of "trough" to "through" for PoweredLaunchPassthrough and PATH_THROUGH_VERTICAL_LOOP (#26800) 2026-07-17 22:14:28 +02:00
OpenRCT2 git bot 1fa9a9955b Merge Localisation/master into OpenRCT2/develop 2026-07-17 05:00:38 +00:00
Aaron van Geffen 5421e5812f Prune unnecessary includes from a few more headers (#26798)
* Drop unused includes from DataSerialiserTraits.h

* Remove Window.h include from Input.h

* Remove BackgroundWorker.hpp include from Context.h
2026-07-16 23:24:15 +02:00
Aaron van Geffen e56c1de947 Revert fix for malformed mapRequest decoding (#26797)
This reverts commit 8e64399c50 (#26555).
2026-07-16 22:17:13 +02:00
RayKoopa b7ec766a62 Update player automatically when a player joins or leaves (#26610)
Send intent to refresh list when a player joins / leaves / has group changed.
2026-07-16 20:21:36 +02:00
RayKoopa 9f6aa8f3ef Update "Disable vehicle limits" tooltip (#26790)
Old tooltip stated "31 trains", changed to "255 trains"
2026-07-16 17:19:06 +02:00
KushidaandTulio Leao 02c42246fe Fix negative marketing campaign durations (#26789)
* fix: reject non-positive marketing durations

* Bump network version

---------

Co-authored-by: Tulio Leao <tupscal@pm.me>
2026-07-16 11:01:00 +00:00
Alex Parisi 8e64399c50 Fix malformed mapRequest decoding (#26555)
* Fix malformed packet unpacking

* Make mapRequest require authentication

* Add tests for malformed packet decoding

* Fix tests

* clang-tidy

* clang-format

* Use unique ports for network tests

* Serialize network tests instead

* Load park for stricter tests

* Serialize network tests again

* Renaming
2026-07-16 07:49:00 -03:00
Aaron van Geffen a6d9cebff9 Make cut-away view clip height rounding more deterministic (#26774) 2026-07-15 21:22:27 +00:00
Aaron van Geffen 72ed2a896c Ignore group boxes when determining top widget (#26781) 2026-07-15 17:53:03 +02:00
mhlas7 50d91c4e5f Let handymen check if a tile is being serviced by another handyman (#26639) 2026-07-15 17:52:38 +02:00
Aaron van Geffen d4df0267b4 Fix block sections label for powered launch (#26786) 2026-07-15 16:15:03 +02:00
OpenRCT2 git bot 3174ecf8ac Merge Localisation/master into OpenRCT2/develop 2026-07-15 04:58:42 +00:00
thatsprettygood c6193cc23e Fix clang64 Windows build (#26787) 2026-07-13 22:48:39 +02:00
MarcelVos96 a85b40b3ef Fix #26775: Maze gets wrong intensity boost from size (#26776)
Intensity boost was 0.02 per tile instead of 0.01 per 2 tiles.
2026-07-11 16:30:12 +00:00
Michael Steenbeek 4aa32fd978 Migrate some tile iteration loops to TileElementsView (#26769) 2026-07-11 17:07:54 +02:00
mhlas7andGymnasiast 6903d5310e Let guests no longer watch rides when underground (#26638)
Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com>
2026-07-11 07:50:38 +00:00
OpenRCT2 git bot 609a8cb46a Merge Localisation/master into OpenRCT2/develop 2026-07-11 05:00:46 +00:00
OpenRCT2 git bot a770ffc04e Merge Localisation/master into OpenRCT2/develop 2026-07-10 05:17:36 +00:00
Aaron van Geffen 3f7eca60f2 Rework ride operations tab (#26765)
* Split OperatingOnPrepareDraw into two functions: one for mode, one for wait/load

* Set up modular operating and load widget positioning

* Drop horizontal rule between mode settings and depart settings

* Fix button width calculation in resizeSpinner, resizeDropdown

* Hide mode/load group boxes when not applicable to ride

* Add changelog entry
2026-07-09 17:56:01 +00:00
Michael Steenbeek 1be4d6d94b Update TileElementType to use new codestyle (#26766) 2026-07-09 17:50:25 +00:00
Aaron van Geffen eee5ebdafd Simplify two ride window event functions (#26764)
* ColourUpdate: drop unnecessary call to onPrepareDraw

* MusicUpdate: move invalidation to MusicOnPrepareDraw
2026-07-09 17:23:31 +02:00
Aaron van Geffen 7393fbc661 Add group boxes to ride colour tab (#26763) 2026-07-09 15:15:34 +00: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
Aaron van Geffen c5d8c31829 Merge pull request #26728 from AaronVanGeffen/editor-scenes
Introduce editor scenes
2026-07-08 13:37:56 +02:00
Michael Steenbeek 30f5ab2ed2 Merge pull request #26747 from Gymnasiast/feature/round-trip-g1
Export a JSON file on `sprite exportall`, allowing for round-trip Gx conversion
2026-07-08 13:11:26 +02:00
Gymnasiast 9e59499360 Amend changelog 2026-07-08 13:10:25 +02:00
Gymnasiast 5fbccd8cee Replicate how Sawyer’s tools created g1 entries 2026-07-08 11:45:27 +02:00
Gymnasiast a46542d7dc Write JSON sprites file when exporting a whole GX file 2026-07-08 11:45:27 +02:00
RayKoopaandMarino Rottier 33e10e4783 Fix IPv6 addresses in the plugin API (#26758)
Properly pass the `sockaddr_in` pointer instead of its address to `reinterpret_cast`.

Co-authored-by: Marino Rottier <mail@vanmarino.nl>
2026-07-07 17:41:28 +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
MarcelVos96 b4bdc95c62 Fix #26756: Guests cannot puke or litter on sloped path (#26757) 2026-07-07 19:30:43 +02:00