Commit Graph
30246 Commits
Author SHA1 Message Date
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
Michał Janiszewski 9ad3b333c7 Upgrade action-gh-release from v2 to v3 (#26755) 2026-07-06 22:46:30 +02:00
Michał Janiszewski 0b0f1336b4 Start v0.5.4 2026-07-05 18:54:51 +02:00
Michał Janiszewski 9472994a7a Merge branch 'master' into develop 2026-07-05 18:52:23 +02:00
Michał Janiszewski f503f57bdb Release v0.5.3
- Feature: [#26308] Add all new track pieces to the inverted roller coaster.
- Feature: [#26442] Add cheat to disable grass growing.
- Improved: [#7921] On Linux, RCT2 and RCT1 installs in Wine are now automatically detected.
- Improved: [#26325] Changing the train type, length, or direction no longer resets the number of laps if there is just one train.
- Improved: [objects#437] Re-order St. Basil’s Cathedral pieces to be more consistent.
- Change: [#26689] A clear scenario editor can now be opened directly from the command line.
- Change: [objects#439] Drop numbers from Wacky Worlds scenery descriptions.
- Fix: [#24613] Incorrect sprites drawn for path elements without a valid object.
- Fix: [#26323] Ride stats do not reset when changing the number of trains changes the number of laps.
- Fix: [#26494] The limits for where walls on the path side of the first tile block the view of rides/scenery are wrong (original bug).
- Fix: [#26504] The boosts/penalties to excitement and nausea that air time provides are calculated wrong.
- Fix: [#26545] Game crashes when plugin API function generateGuest fails to generate a guest.
- Fix: [#26578] Crash when drawing path elements without a valid object.
- Fix: [#26605] Desync when placing a track design in multiplayer.
- Fix: [#26654] Fix Alton Towers stall and Rock’n’Roll Revival toilet being closed on scenario start.
- Fix: [#26722] Missing construction rights owned on UCES Sand Dune scenario.
- Fix: [objects#411] Some colours in green, acid green, pink and red water are inconsistent with natural water.
- Fix: [objects#436] St. Basil’s Cathedral building pieces are incorrectly labelled as “Kremlin” pieces.
- Fix: [objects#438] Some walls are not marked as see-through while they don’t fully block the view.
- Fix: [objects#440] Inconsistencies in scenario/park name capitalisation.
2026-07-05 18:24:58 +02:00
Michał Janiszewski d2d5334a68 Merge branch 'develop' 2026-07-05 18:18:37 +02:00
Michał Janiszewski da2b947035 Update BACKTRACE_TOKEN in Crash.cpp 2026-07-05 18:16:53 +02:00
OpenRCT2 git bot ee385604d5 Merge Localisation/master into OpenRCT2/develop 2026-07-05 05:17:43 +00:00
Aaron van Geffen c50b46fc39 Rename getScenarioEditorScene to disambiguate 2026-07-03 12:35:22 +02:00
Harry Hopkinson 070cb63993 Refactor Focus constructor to use member initialisers (#26740) 2026-07-02 21:13:38 +02:00
OpenRCT2 git bot 5b38787405 Merge Localisation/master into OpenRCT2/develop 2026-07-01 05:30:21 +00:00
Aaron van Geffen 2e4f21b1b0 Rename EditorObjectSelectionSession to EditorController and namespace (#26729)
* Rename EditorObjectSelectionSession to EditorController

* Move EditorController into Editor namespace
2026-06-30 22:56:35 +02:00
Aaron van Geffen cfadbe53e8 Counter false positive warning for gcc 15.2 (used for MinGW CI) 2026-06-27 15:57:49 +02:00
Aaron van Geffen d543de0807 Work around GameLoadInit switching scene away from editor 2026-06-27 15:36:49 +02:00
Aaron van Geffen 75683c6014 Fix ConvertSaveToScenarioCallback 2026-06-27 15:02:44 +02:00
Aaron van Geffen bd3d24b181 Add clarification around GameLoadInit calls 2026-06-27 14:59:08 +02:00
Aaron van Geffen 35180cbefe Fold remaining Editor unit into EditorController 2026-06-27 14:49:12 +02:00
Aaron van Geffen 8455d576f7 Move SetAllLandOwned into EditorScene 2026-06-27 14:32:19 +02:00
Aaron van Geffen 85bcdf6bf3 Replace editor load functions with scene switching 2026-06-27 14:25:23 +02:00
Aaron van Geffen 7fec8707dd Let TrackDesigner/ManagerScene inherit from EditorScene 2026-06-27 14:23:00 +02:00
Aaron van Geffen fb6d596ada Integrate more editor functions into EditorScene 2026-06-27 14:14:06 +02:00
Tulio Leao 069d0aea8b Fix #26722: Missing construction rights owned on UCES' Sand Dune (#26725) 2026-06-27 08:54:40 -03:00
Aaron van Geffen b41cb2eaf3 Introduce TrackDesignerScene, TrackManagerScene 2026-06-27 12:15:27 +02:00
Michael Steenbeek f4f66c9b79 Make CLI exit code into strong enum (#26723) 2026-06-26 22:43:32 +02:00
Michael Steenbeek bc87826fbe Merge pull request #26717 from Gymnasiast/fix/g1-export
Bring G1 building more in line with vanilla
2026-06-26 22:42:51 +02:00
Aaron van Geffen ead32abd75 Split off clearFinances from clearMapForEditing; clarify LoadLandscape 2026-06-26 16:27:14 +02:00
Daniel Rödl 4da7daa2f9 Fix OpenRCT2#7921: Search in user's wine path for RCT2 and RCT1 install files (#26292) 2026-06-25 20:41:25 +02:00
Michael Steenbeek 3ff49155f2 Merge pull request #26325 from MarcelVos96/resetStatsWhenNumLapsChanges
Add stats reset when lap count is forcibly changed & avoid unnecessary lap count resets
2026-06-24 16:44:50 +02:00
MarcelVos96 06a325e895 Don't reset lap count if changing train type, length. or direction of a single train 2026-06-24 16:30:57 +02:00
MarcelVos96 d30e0c5d83 Make ride stats reset when changing the number of trains changes the number of laps 2026-06-24 16:30:07 +02:00
Gymnasiast 51b7b6cc43 Fix RLE check in GfxDrawSpriteRawMaskedSoftware() 2026-06-24 13:59:48 +02:00
Gymnasiast ad4bbd02db Do not write two stray null bytes if we hit the last pixel of a compressed image 2026-06-24 12:34:53 +02:00
Gymnasiast 5bc368dfdb Set G1Flag::hasZoomSprite when a zoom offset has been specified in JSON 2026-06-24 12:34:53 +02:00
Gymnasiast 0833b474c4 Always set G1Flag::hasTransparency (bit 0) when importing an image
RCT1/2 always set this flag when an entry is an image of any sort (as opposed to a palette entry). It may be misnamed, as both regular and compressed/"RLE" images support transparency.

This modifies a single bit in the example.dat file, as expected. For convenience:

2c2
< 00000010: 0000 0000 0400 0000 0001 0501 0a01 0f01  ................
---
> 00000010: 0000 0000 0500 0000 0001 0501 0a01 0f01  ................
2026-06-24 12:34:04 +02:00
Gymnasiast 96fae1b2ae Allow images over 256×256 pixels
RCT1 uses these and RCT2 may too (specifically for the reverse freefall coaster), so this limit does not seem to be inherent to g1.
Maybe it could be removed outright.
2026-06-24 12:10:38 +02:00
Alex Parisi 99ea620836 Fix desync when placing tracks (#26605)
When any player in multiplayer places a track design, `TrackDesignAction::Execute` runs on every client which calls `UtilRand()`, resulting in every client getting a different colour since it's non-deterministic. Each client then commits its own local colour to `Vehicle::colours`. Since that field is part of the entity checksum, `NetworkBase::CheckSRAND` will flag a desync.

This PR adds a parameter to `RideGetUnusedPresetVehicleColour` to allow the caller to pass in a random value and make the choice of determinism. The UI call sites can still use `UtilRand`, but `TrackDesignAction` should be using `ScenarioRand`.
2026-06-24 09:39:00 +00:00
Gymnasiast b38b8505e1 Fix changelog entry 2026-06-24 11:10:20 +02:00