Commit Graph
29719 Commits
Author SHA1 Message Date
Michał Janiszewski 37545dfd5e Use assets.json as single source of truth for OpenRCT2 assets (#25968)
* Use assets.json as single source of truth for OpenRCT2 assets

This ensures there's single source of truth for all downloadable assets.
I figured the "version" information is actually redundant because we can
embed the whole URL as the "zipversion", therefore this is dropped now.

The newly-introdcued MSBuild task uses Roslyn-based code and I updated
`DownloadDependency` task to RoslynCodeTaskFactory as well.

* Rename OpenMSX to OpenMusic
2026-02-12 21:44:42 +01:00
frozensnowy 8ff9efa3a1 Fix #25963: Crash when loading corrupted saves with duplicate entity indices (#25980)
Corrupted RCT1/RCT2 save files may contain entities with duplicate or invalid EntityIndex values and when importing these saves, CreateEntityAt returns nullptr for duplicate indices, causing a null pointer dereference crash in ImportEntityCommonProperties, this sanitises each entity's (entities?) EntityIndex to match its array position, so that CreateEntityAt always succeeds. Added unit tests too for just this case, with a crashing save file.
2026-02-12 13:33:06 +00:00
Michael Steenbeek 12ac765500 Merge pull request #26005 from frozensnowy/vehicle-refactor-p2
Refactor: Split more of Vehicle.cpp into focused files
2026-02-11 23:44:59 +01:00
frozensnowy 7c5caea558 Fix: Remove unused constants + fixed include order 2026-02-11 22:42:55 +01:00
frozensnowy e00c8aade8 Refactor: Move door animation logic to Vehicle.SceneryDoors.cpp
Moves scenery and landscape door functions to a dedicated file
2026-02-11 22:33:46 +01:00
frozensnowy 1140f441af Refactor: Move dodgems logic to Vehicle.Dodgems.cpp
Moves dodgems mode, motion, and collision detection to a dedicated file
2026-02-11 22:24:37 +01:00
frozensnowy 68274c31f5 Fix: Removed unused constants 2026-02-11 21:51:27 +01:00
frozensnowy e68f249c0e Refactor: Move collision logic to Vehicle.Collision.cpp
Moves collision detection and reverser car functions to a dedicated file for it
2026-02-11 21:09:09 +01:00
frozensnowy 7a7a4ebb49 Refactor: Move track motion logic to Vehicle.TrackMotion.cpp
Moves velocity updates, forward and backward motion and block brake functions to a dedicated file
2026-02-11 20:57:28 +01:00
Michael Steenbeek 5a73dc39d5 Merge pull request #25996 from Gymnasiast/refactor/track-import-export
Small refactor of TD4/6 import/export
2026-02-11 11:15:46 +01:00
OpenRCT2 git bot 01ed383cdd Merge Localisation/master into OpenRCT2/develop 2026-02-11 04:41:58 +00:00
spacek531 4b616d53df Fix #25999: Scenery picker tool does not pick tertiary colour of LS correctly 2026-02-10 22:36:45 +00:00
spacek531 52aef7b77c Fix indentation of RTDs 2026-02-10 23:09:18 +01:00
spacek531 c72fd6b8ac Set powered launch speed without operating limits cheat (#25994) 2026-02-10 19:17:44 +00:00
frozensnowy 4c88430ebb Preview images from different windows overwrite each other when using OpenGL (#25986)
The Map, Track Design List, Track Design Placement, Install Track, and Park Preview windows all shared a single SPR_TEMP sprite ID for rendering dynamic preview images. In OpenGL mode, this caused them to overwrite each other's textures when multiple windows were open simultaneously. To fix it I added separate temp sprite IDs for each window that needs one, with an array of G1Elements to store each separetely
2026-02-10 19:42:32 +01:00
Gymnasiast 1a05e28b46 Create Limits::kTD6MaxMazeElements and Limits::kTD6MaxSceneryElements 2026-02-10 19:14:30 +01:00
Gymnasiast fe1a89a76f Refactor TrackDesignTrackElementFlags 2026-02-10 17:59:58 +01:00
Gymnasiast 13756665ba Move TD46Flags into cpp file and remove bogus enum classification 2026-02-10 17:47:53 +01:00
Gymnasiast 4abd15e0cf Rename members of TD46TrackElement 2026-02-10 17:40:45 +01:00
Gymnasiast e32ee3a9ad Move TD46TrackElement to TD46.h 2026-02-10 17:38:05 +01:00
Gymnasiast 6223d78440 Slight cleanup of TD6 version handling 2026-02-10 17:33:45 +01:00
Gymnasiast ba44f5f2c3 Move TD6 element exporting into member functions 2026-02-10 17:31:35 +01:00
Gymnasiast 6864e2170b Move TD4 element importing into member functions 2026-02-10 17:19:12 +01:00
Gymnasiast 9938c7c335 Move TD6 element importing into member functions 2026-02-10 17:14:31 +01:00
Aaron van Geffen 1cc7006127 Reorganise game actions into folders (#25987) 2026-02-10 08:57:40 +01:00
Aaron van Geffen f954f7b66e Merge pull request #25985 from AaronVanGeffen/game-actions-split
Create separate unit for GameActionRunner
2026-02-09 19:31:02 +01:00
Michał Janiszewski df47091d6e Fix gradle issues (#25984) 2026-02-09 18:35:13 +01:00
Aaron van Geffen ef054c1f24 Split off GameCommand enum to its own header as well 2026-02-09 16:06:56 +01:00
Aaron van Geffen 773ba479cd Create separate unit for GameActionRunner 2026-02-09 16:06:56 +01:00
Michał Janiszewski 506991962e Merge pull request #25983 from janisozaur/ci-images-25
CI images 25
2026-02-09 11:43:25 +01:00
Michał Janiszewski fd96c8208c Cache gradle
This targets initial gradle task which takes over a minute in CI:
> `Calculating task graph as no cached configuration is available for tasks: app:assembleRelease`
2026-02-09 09:50:48 +01:00
Michał Janiszewski d21ca43917 Android: Force use of build tools 36
build tools 36 is installed in the image already
2026-02-08 21:48:08 +01:00
Michał Janiszewski c9609ac64d Return empty strings instead of nullptr 2026-02-08 21:40:14 +01:00
Michał Janiszewski b8547d4409 Throw exception instead of returning nullptr 2026-02-08 21:39:47 +01:00
Michał Janiszewski a427f41f9b CI: Use images v25
Leave AppImage on now-removed 24-jammy
2026-02-08 21:39:45 +01:00
Max 9a1e41cb33 Fix #25978: Frozen peeps start clapping when the scenario is won (#25979) 2026-02-08 17:48:40 +01:00
frozensnowy d2ab49a267 Fix Crash during startup from window list race condition (#25918)
Background jobs in PreloaderScene call OpenProgress/SetProgress/CloseProgress which modify gWindowList. Meanwhile, Tick() was iterating gWindowList viaContextHandleInput() and InvalidateAll(), causing iterator invalidation whenthe vector reallocates.

This commit fixes it by skipping window iteration while background jobs are running, which is safe because the progress window has no interactive elements during loading (close button is hidden, viewport inhibited)
2026-02-08 15:48:44 +01:00
matheusvb3 c5904e1138 Convert RideEntry flags into a FlagHolder (#25957) 2026-02-08 10:36:17 +01:00
OpenRCT2 git bot 8ec712faa4 Merge Localisation/master into OpenRCT2/develop 2026-02-08 04:43:28 +00:00
Michael Steenbeek f228d73815 Merge pull request #25971 from frozensnowy/vehicle-refactor
Refactor: Split Vehicle.cpp into focused files
2026-02-07 23:43:45 +01:00
Michael Steenbeek 4878894a7e Use PaletteIndex in RenderTarget (#25948) 2026-02-07 23:41:40 +01:00
frozensnowy 4ad964c03d Fix #25954: Guests display hats, balloons and umbrellas while puking (#25972) 2026-02-07 22:40:36 +00:00
frozensnowy fc92dd74ee Fix: Remove unused spin speed constants from Vehicle.cpp
Oops.
2026-02-07 22:44:25 +01:00
frozensnowy 203d8bb19f Refactor: Split mini golf logic out of Vehicle.cpp
This putts all mini golf track motion, flag handling, collision detection, and hole measurement logic into Vehicle.MiniGolf.cpp. Two static helper functions (GetAccelerationDecrease2 and PitchAndRollStart) are hole in ...two'd (duped) since they're also used by the main Vehicle.cpp
2026-02-07 22:22:14 +01:00
frozensnowy 74423de85f Refactor: Move station logic to Vehicle.Station.cpp
This commit departs Synchronised departure, loading/waiting, departing, travelling, and arriving functions. They're now are now stationed in Vehicle.Station.cpp
2026-02-07 21:56:42 +01:00
frozensnowy 8f16a7e740 Refactor: Move animation functions to Vehicle.Animation.cpp
This moves the flat ride operating logic like the swinging, ferris wheel, rotating, simulator, haunted house, top spin, circus, etc etc, swing/spin car physics, and the vehicle animation system for the steam locomotive, swan boat, multi-dimension, animal flying,  etc etc etc to  Vehicle.Animation.cpp. Animates vehicleBreakdown from static to extern to allow shared access across translation units
2026-02-07 20:40:26 +01:00
frozensnowy 1e19337ec5 Refactor: Move the sound functions to Vehicle.Sound.cpp
Part of #25951

This moves vehicle sound logic like UpdateSound, scream and friction sound handling, lift hill sounds and Claxon to Vehicle.Sound.cpp. Also, it promotes SoundIdVolume struct definition from Vehicle.cpp to Vehicle.h to allow shared access across translation units. Music to my ears. Except.. not really.
2026-02-07 19:52:34 +01:00
frozensnowy 3ed3acb80b Refactor: Split crash logic out of Vehicle.cpp
Part of #25951

This moves all crash and collision functions from Vehicle.cpp into a dedicated Vehicle.Crash.cpp file. Functions are moved intact with
no logic changes. Also, ride_get_train_index_from_vehicle is made non static and it's now declared in Vehicle.h as it's now needed across translation units
2026-02-07 19:31:49 +01:00
frozensnowy 61ba0eb344 Refactor: Split boat hire logic out of Vehicle.cpp
Part of #25951

Moved all boat hire functions from Vehicle.cpp into a dedicatedVehicle.BoatHire.cpp file. Functions are moved intact with nologic changes.

Moved functions:
- UpdateTravellingBoatHireSetup
- UpdateDepartingBoatHire
- UpdateTravellingBoat
- TryReconnectBoatToTrack
- UpdateMotionBoatHire
- UpdateBoatLocation
- vehicle_boat_is_location_accessible
2026-02-07 19:08:06 +01:00
mix 03c33b026e Invalidate tiles in RideSetVisibilityAction::Execute (#25958) 2026-02-06 15:22:36 +01:00