Commit Graph

2180 Commits

Author SHA1 Message Date
Michael Steenbeek 457d40bf2b
Merge pull request #21642 from Gymnasiast/feature/classic-standup-2024
Add Classic Stand-Up Roller Coaster
2024-03-26 00:28:19 +01:00
Michał Janiszewski 0581b1edd3
Fix #18413: Trying to set tooltip using null vehicle (#21662) 2024-03-24 21:21:18 +01:00
Harry Hopkinson 249c8259c1
Fix #20338: Scenery Picker Hotkey not selected with re-paint tool 2024-03-24 12:29:40 +01:00
Max bc926057eb
Fix #21419: Cannot build walls under sloped terrain
Co-authored-by: Gymnasiast <Gymnasiast@users.noreply.github.com>
2024-03-23 12:39:00 +01:00
Gymnasiast 40394389ef
Add Classic Stand-Up and objects release to changelog 2024-03-22 17:31:02 +01:00
Andrew a972d231d7
Add shortcut key for sorting tile elements (#21636) 2024-03-22 15:24:10 +01:00
Andrew 693c422cd4
Prevent TI hotkey from setting wall slope for non-slopeable objects (#21635) 2024-03-22 11:20:48 +01:00
Michael Steenbeek 74364e2afc
Fix #21641: NPE when creating track iterator from invalid tile element 2024-03-22 02:51:11 +01:00
Michał Janiszewski 4484dc647c
Merge pull request #21631 from janisozaur/android-enable-more-libraries
Android: enable more libraries
2024-03-21 14:22:36 +01:00
Stephan Spengler 304ce22756
Improve research documentation for plugin API 2024-03-21 14:11:52 +01:00
Michał Janiszewski 3a6115b2b5 Android: Add changelog entry 2024-03-18 12:18:20 +01:00
Michael Steenbeek 0968d87668
Use non-breaking spaces around currency units 2024-03-14 21:43:51 +00:00
Jan Kelemen 9bb678688e
Fix #21434: Number of guests overflows in objective text 2024-03-14 19:49:57 +01:00
Ryan Gudonis 65fa51976b
Classify some LL scenarios as expert
Adjust difficulty categories for Loopy Landscape scenarios:
- Southern Sands
- Tiny Towers
- Nevermore Park
- Pacifica
2024-03-10 15:06:43 +00:00
Harry Hopkinson 0c1fb5fec0
Fix #21543: Game Crashing with invalid TrackIterator (#21547)
* Check if el is nullptr

Check if el is nullptr

Format

* Add changelog
2024-03-09 14:15:28 +00:00
Matt a2fdd600cf
Merge pull request #21424 from ZehMatt/viewport-update
Store the rotation in viewports
2024-03-07 22:42:00 +02:00
ζeh Matt 64bc52c5f6
Update changelog.txt 2024-03-07 21:57:37 +02:00
Stephan Spengler 01248c26a4
Improve API documentation: use Direction type in FootpathElement
Change type of slopeDirection and queueBannerDirection of footpaths to Direction in openrct2.d.ts
2024-03-06 18:22:50 +01:00
mrmbernardi a0b18688ec
Merge pull request #21460 from mrmbernardi/map-layout
Fix #21289: Map window does not layout properly
2024-03-02 22:52:31 +01:00
Michał Janiszewski e05ae5f051 Start v0.4.10 2024-03-02 22:47:13 +01:00
Michał Janiszewski a17240544b Release v0.4.9
- Feature: [#20376] Add Ukrainian language.
- Feature: [#20709] [Plugin] Plugins can now check metadata from all registered plugins.
- Feature: [#21376] Add option to reload an object (for object developers).
- Feature: [#21413, OpenSFX#19] Add log flume lift sound effect (when “chainlift” is enabled).
- Feature: [#21455] Add option to control hidden scenery.
- Feature: [objects#282] Added RCT1 beta terrains.
- Improved: [#20093] Use new colours for guests’ clothing when they spawn.
- Improved: [#21356] Resize the title bar when moving between displays with different scaling factors on Windows systems.
- Improved: [#21388] Tooltips will now show even when an error message is present.
- Improved: [#21423] Add mechanism to allow building partly underground.
- Improved: [objects#272, objects#276, objects#277, objects#278, objects#279, objects#280, objects#281] Add most remaining ports of RCT1 ride and vehicle objects (for import only).
- Improved: [objects#275, objects#284, objects#286] Add remaining RCT1 walls (for import only).
- Change: [#21350] Group Dodgems and Flying Saucers vehicles.
- Change: [#21453] Reintroduce lost RCT1 Jet skis colour presets to the boat hire.
- Change: [objects#285] Mark old reversed train objects as compatibility objects.
- Fix: [#17610] Some scenery items are unavailable in RCT1 scenarios.
- Fix: [#18963] Research table in parks from Loopy Landscapes is imported incorrectly.
- Fix: [#20164] Grass and Rock terrain objects cannot be de-selected.
- Fix: [#20907] RCT1/AA scenarios use the 4-across train for the Inverted Roller Coaster.
- Fix: [#21037] Map animations in the title sequence are stuck.
- Fix: [#21208] Error message will stay open only for a brief moment when the game has been running a while.
- Fix: [#21220] When creating a new park from a SC4 file, the localised park name is not applied.
- Fix: [#21286] Cannot build unbanking turns with RCT1 vehicles.
- Fix: [#21288] Text overlaps in the “About ‘OpenRCT2’” window for Arabic, Chinese, Japanese, Korean and Vietnamese.
- Fix: [#21310] Some half loop elements require more clearance than their upward/downward counterparts.
- Fix: [#21318] Virtual Floor for building scenery is not properly invalidated.
- Fix: [#21330] Tooltips from dropdown widgets have the wrong position.
- Fix: [#21332] Mini Helicopters and Monorail Cycles ride types are swapped in research within RCT1 scenarios.
- Fix: [#21343] “Pause” and “Build Path” hotkeys do not work if top toolbar is hidden.
- Fix: [#21347] Too many options are hidden if the platform has no file picker.
- Fix: [#21350] Maze and Mini Golf track designs from RCT1 not shown in track designs list.
- Fix: [#21425] Additional missing/misplaced land & construction rights tiles in Japanese Coastal Reclaim.
- Fix: [#21484] Upkeep costs for some rides/facilities/shops are not calculated correctly.
- Fix: [#21498] Crash when the size of text can’t be determined.
- Fix: [objects#262, objects#263, objects#265, objects#266, objects#267, objects#268, objects#270, objects#271, objects#283] Various errors in expansion pack objects (original bug).
- Fix: [OpenSFX#18] B&M Roar sound effect not looping correctly.
2024-03-02 21:26:41 +01:00
Michael Bernardi 1cb0650cba Fix #21289: Map window does not layout properly 2024-03-02 16:00:10 +01:00
ζeh Matt 9a8ca8e2d1
Update changelog.txt 2024-03-02 15:35:44 +02:00
Michael Steenbeek 9d77219b5d
Add #21037 to changelog
[ci skip]
2024-03-02 14:20:30 +01:00
Matt 9a100b82b4
Fix #21498: Crash when the size of text can’t be determined 2024-03-02 13:22:59 +01:00
Andrew 5aed126cac
Use new colours for peeps' clothing when they spawn 2024-03-02 02:06:47 +01:00
Michael Steenbeek 8916b3ce9d
Merge pull request #21350 from Gymnasiast/objects-1.4.0
Update to v1.4.0 objects release
2024-03-02 01:46:25 +01:00
Gymnasiast e9fc4473bb
Clarify RCT1 ride objects in changelog 2024-03-02 01:33:52 +01:00
Gymnasiast de0c681b80
Remove RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY from some rides
Maze, Mini Golf, Dodgems and Flying Saucers,
2024-03-02 01:33:51 +01:00
Gymnasiast 05e5bb5106
Add remaining features from objects release to changelog 2024-03-02 01:33:51 +01:00
Gymnasiast 6506b1d1fa
Fix #17610: Some scenery items unavailable in RCT1 scenarios 2024-03-02 01:33:51 +01:00
Gymnasiast 12c00dedeb
Use RCT1 walls during import
Co-authored-by: ZeeMaji <ZeeMaji@users.noreply.github.com>
Fix wgw2 and restore RCT2 walls
2024-03-02 01:33:51 +01:00
Gymnasiast c1ca8f729f
Use RCT1 trains 2024-03-02 01:33:51 +01:00
Katherine Norton 534ba4f339
Fix #20164: Grass and Rock terrain objects cannot be de-selected (#21399) 2024-03-01 21:33:45 -03:00
Harry Hopkinson bb743f0c88
Fix: pause and build path hotkeys not working when the toolbar is hidden
Part of #21175.
2024-03-01 23:49:26 +01:00
AuraSpecs a3659b7ca4
Add log flume lift sound effect (when “chainlift” is enabled) 2024-03-01 21:01:50 +00:00
Michael Steenbeek 25ec1e4211
Create game actions and UI for restricted scenery 2024-02-28 20:38:43 +01:00
ZeeMaji 47a221de4e
Reintroduce lost RCT1 Jet ski color presets to boat hire (#21453) 2024-02-25 09:32:43 -03:00
HtotheTML 90ad01bc40
Fix additional park boundary errors in Japanese Coastal Reclaim (#21425) 2024-02-25 06:33:44 -03:00
AuraSpecs d11a82aa4f
Add Ukrainian Language
Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com>
2024-02-23 20:37:48 +01:00
Severin Paul Höfer 3b8de13af9 Update changelog.txt 2024-02-21 17:23:45 +01:00
Gymnasiast 276b599470
Add changelog entry, bump network version 2024-02-20 19:15:37 +01:00
Romain a3ce64c009
Add launchable to appdata 2024-02-19 07:37:46 +01:00
Ota e9b214282d
Fix #21039: Text rendering bleeds pixels through windows
Should fix [#21039 ](https://github.com/OpenRCT2/OpenRCT2/issues/21039).

As it is explained in the issue, the outline and inset code would not respect the DPI bounds in the drawing process by accessing e.g. `*(dst + 1)` to draw an outline, in this case to the right.
#### Approach
I approached this issue by creating a function `GetPixel()`  in `TTFSurface` that would return a value if the given x and y coordinates is a part of a TTF text, else 0. 

In the for loop, iterating through the TTF text, the if condition
```
if (surface->GetPixel(xx + srcX_start + 1, yy + srcY_start)
                        || surface->GetPixel(xx + srcX_start - 1, yy + srcY_start)
                        || surface->GetPixel(xx + srcX_start, yy + srcY_start + 1)
                        || surface->GetPixel(xx + srcX_start, yy + srcY_start - 1))
```
checks if the coordinates **(xx, yy)** is an outline of a text. the writing bounds. Adding `srcX_start`, which is 0 or `-skipX` if `skipX < 0`, when calling `GetPixel()`, would shift the pixel access to the correct position, where the text begins on the surface. The same is done for the Y axis. (Not having this would lead to the outlines/insets not moving with the text when the window with the TTF text moves)
2024-02-17 23:31:07 +01:00
Alex Parisi efb6d48c4c
Add plugin API to get registered plugin metadata (#20709)
* Added API for getAllPlugins

Added functionality to the Scripting API to allow Contexts to return a list of all registered plugins.

* Fixed naming conventions, returning list of authors

Changed function names to follow get/set convention. Removed unnecessary copies of shared pointers, now using auto instead. Changed the functionality to return an array of authors instead of a string.

* Added changelog entry

Also added myself to list of contributors

* Moved all functionality to ScPlugin

Created a ScPlugin class and moved the current getPlugins functionality there.

* Changed from method to property

Function names now match the get/set convention for properties. Also did some code cleanup.

* Update copyright

* Bump plugin version

---------

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2024-02-16 05:53:48 -03:00
Matt d929e6a540
Allow tooltips to show up when an error window is present 2024-02-15 13:32:58 +01:00
David Sungaila 89f83d6c0d
Fix #21288: Overlapping text in the About window 2024-02-13 23:10:39 +01:00
Severin Paul Höfer 0c7b94255f
Fix #21318: VirtualFloor not properly invalidated (#21386)
* Fix condition for setting VirtualFloor coordinates

* Update changelog.txt
2024-02-13 16:53:55 -03:00
Matt 19be093569
Fix #21208: Error messages disappear too quickly if the game runs for a while (#21394)
* Reset gCurrentRealTimeTicks when the map is initialized

* Use 32 bit for gWindowUpdateTicks

* Update changelog.txt
2024-02-13 16:03:30 -03:00
Michael Steenbeek c3380e29dd
Fix #21286: Cannot build unbanking turns with RCT1 vehicles 2024-02-12 23:23:05 +01:00
Michael Steenbeek 1a13cdcc57
Fix #21220: Localised park name not used when loading SC4 2024-02-11 20:51:23 +00:00
Michael Steenbeek 70b9d0ca47
Add button to reload object 2024-02-11 20:45:31 +00:00
Matt c8b28ca457
Fix #21330: Tooltips from dropdown widgets have the wrong position 2024-02-10 18:47:40 +01:00
Matt 0c1991c004
Merge pull request #21361 from karst/opensfx-1.0.4
Update OpenSFX to version 1.0.4
2024-02-10 16:02:01 +02:00
David Sungaila 920e39fb34
Windows: add app manifest to enable PerMonitorV2 2024-02-10 14:08:16 +01:00
Karst da8594cec1 Update OpenSFX to version 1.0.4 2024-02-09 21:36:59 +01:00
Michael Steenbeek 8a5e7d32f6
Update changelog
[ci skip]
2024-02-08 22:04:46 +01:00
Gymnasiast 8e64eaca94
Fix #18963: Razor Rocks and BPB import too few research items 2024-02-08 02:13:31 +01:00
Michael Steenbeek 6a9f9025ff
Fix: too many options are hidden if the platform has no file picker
Mainly affects Android.

Co-authored-by: Basssiiie <Basssiiie@users.noreply.github.com>
2024-02-07 22:38:45 +00:00
ZeeMaji 1849c7de47
Fix mini helicopters & monorail bicycles being swapped in RCT1 2024-02-07 22:51:36 +01:00
Romain 80948c36bb
Fix and improve Linux appdata (#21328)
* Fix appdata screenshot URL

* Add developer name to appdata

* Follow best practices for appdata summary

* Add caption to appdata screenshot
2024-02-04 20:41:24 -03:00
Michael Steenbeek 9efe25c11c
Fix #20907: RCT1/AA scenarios use the 4-across train for the Inverted RC (#21303) 2024-02-04 20:39:52 -03:00
Michał Janiszewski f89dbf0d15 Start v0.4.9 2024-02-04 16:26:34 +01:00
Michał Janiszewski 05efdb2497 Release v0.4.8
- Feature: [#21062] [Plugin] Add API for managing a guest's items.
- Improved: [#18632, #21306] Land ownership and construction rights are now shown on top of the water.
- Improved: [#20951] Activate OpenRCT2 window after using native file dialog on macOS.
- Improved: [#21184] The construction marker for rides, paths and large scenery is now shown on top of the water.
- Improved: [#21192] Tooltips will now follow the cursor.
- Improved: [#21227] Entrance style dropdown is now sorted alphabetically everywhere.
- Change: [#21200] Raise maximum lift speeds of the Reverser Coaster, Side Friction Coaster, and Virginia Reel for RCT1 parity.
- Change: [#21225] Raise maximum allowed misc entities to 1600.
- Fix: [#19494] RCT1 fence gate walls not imported properly if they were placed on slopes.
- Fix: [#20196] New scenarios start with an incorrect temperature.
- Fix: [#20255] Images from the last hovered-over coaster in the object selection are not freed.
- Fix: [#20616] Confirmation button in the track designer’s quit prompt has the wrong text.
- Fix: [#20628] Moving caret using Ctrl+left can move too far when using a multibyte grapheme.
- Fix: [#20631] IME window not positioned correctly.
- Fix: [#20845] Trying to save under a folder with no write permissions causes a crash.
- Fix: [#21054] “No entrance” style is selected by default in the track designer.
- Fix: [#21145] [Plugin] setInterval/setTimeout handle conflict.
- Fix: [#21157] [Plugin] Widgets do not redraw correctly when updating disabled or visibility state.
- Fix: [#21158] [Plugin] Potential crash using setInterval/setTimeout within the callback.
- Fix: [#21171] [Plugin] Crash creating entities with no more entity slots available.
- Fix: [#21178] Inca Lost City’s scenario description incorrectly states there are height restrictions.
- Fix: [#21179] Additional missing land/construction rights tiles in Inca Lost City & Renovation.
- Fix: [#21198] [Plugin] Setting brake or booster speeds on a tile element doesn’t work.
- Fix: [#21290] Sound keeps playing when paused from fast-forward mode.
- Fix: [#21291] Hungry guests heading to any flat ride do not count for warning threshold (original bug).
- Fix: [#21309] Africa - Oasis & Blackpool Pleasure Beach’s monorails are built outside the park’s land rights.
- Fix: [#21316] Isolated land for sale tile on Extreme Hawaiian Island.
2024-02-04 15:29:56 +01:00
ζeh Matt c5ca671d5f
Update changelog.txt 2024-02-03 19:28:48 +02:00
HtotheTML 43b9ffb2b8
Fix park boundaries for out-of-bounds monorails in Africa - Oasis & Blackpool Pleasure Beach (#21309) 2024-02-02 07:54:27 -03:00
Michael Steenbeek 40c7e73189
Render selection grid for Map ownership on the water 2024-02-01 10:30:33 +01:00
HtotheTML a377538f0a
Add missing owned land in Extreme Hawaiian Island (#21316)
* Update S6Importer.cpp

* Update changelog.txt
2024-02-01 06:22:31 -03:00
wstagg 4a51e7f362
Fix #20631: IME window not positioned correctly 2024-01-30 23:44:58 +01:00
Gymnasiast eb99798f4b
Fix typo in changelog 2024-01-29 21:01:30 +01:00
Severin Paul Höfer 89094cad0d
Fix #21290: Sound keeps playing when paused from fast-forward mode (#21301)
* Stop additional calls to UpdateLogic after pausing

* Update changelog.txt
2024-01-29 15:35:28 +01:00
Severin Paul Höfer 704333344e
Fix #21291: Wrong conditions for hungry guests warning
In `PeepProblemWarningsUpdate()`, when determining the number of hungry guests that need help (in order to check whether the threshold for showing the warning about hungry guests is reached), guests that are heading towards any flat ride (checked using the `RIDE_TYPE_FLAG_FLAT_RIDE` on the ride the guest is heading to (if any)) are discarded.  
For thirsty guests (and those needing to go to the toilet) on the other hand, the more specific `RIDE_TYPE_FLAG_SELLS_DRINKS` (or `RIDE_TYPE_FLAG_IS_TOILET`) is used. (So, a guest that becomes thirsty while on its way to the merry-go-round would count for the threshold here.)

This PR makes the function use the more specific `RIDE_TYPE_FLAG_SELLS_FOOD` for hungry guests, so it's consistent with the other cases.
2024-01-28 23:35:17 +00:00
HtotheTML be9970b274
Fix additional missing land/construction rights tiles in WW's Inca Lost City & Renovation 2024-01-28 23:46:50 +01:00
Michael Steenbeek 396af1f34c
Fix #19494: RCT1 sloped gates not imported correctly 2024-01-28 14:56:38 +01:00
Michael Steenbeek 3f83cad03a
Close #21184: Draw selection square on water 2024-01-25 18:57:46 +00:00
ZeeMaji ff03844b35
Raise lift speeds for RCT1 parity 2024-01-25 11:24:38 +01:00
Severin Paul Höfer 794ee9be78 Update changelog.txt 2024-01-23 21:42:30 +01:00
tanzimchowdh cba53fd3ce
Fix #20196: New scenarios start with an incorrect temperature 2024-01-22 20:18:31 +01:00
Severin Paul Höfer 2c26799ca4
Fix #20845: Outdated message box in case of save failure 2024-01-22 19:44:20 +01:00
Matt 7141fb4574
Merge pull request #21225 from ZehMatt/raise-mix-limit
Raise maximum allowed misc entities to 1600
2024-01-20 17:02:42 +02:00
Katherine Norton 0450435377
Add Plugin API for managing a guest's items (#21062)
* Add API for guest items in openrct2.d.ts

* Create GuestItem interfaces

* Set fields to readonly and add documentation

* Implement getting items array

* Implement checking if a guest has an item

* Implement removing items from guests

* Implement giving a guest an item

* Re-merge GuestItemType with FoodDrinkType

* Add more data validation for the EnumMaps

* Update versioning and changelog

* Add some errors to the give_item method

* Bump network version

* Update VoucherType to if/else

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>

* Add static_assert to ScGuest.hpp

---------

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2024-01-20 11:51:23 -03:00
Severin Paul Höfer 39a37f14eb
Fix #21054: `No entrance` style selected by default in track designer 2024-01-19 23:42:44 +01:00
Ota 33523c98c2
Fix #20628: Stop caret left moving off the input string 2024-01-19 13:48:51 +01:00
ζeh Matt 8ae4709aac
Update changelog.txt 2024-01-19 14:45:31 +02:00
Matt 4c84215196
Merge pull request #21157 from Basssiiie/fix-plugin-widget-invalidation
[Plugin] Fix widgets not redrawing correctly when updating disabled or visibility state.
2024-01-16 21:05:36 +02:00
Matt 9527e9658b
Merge pull request #21204 from Sadret/patch-1
Plugin documentation: Added missing field to SmallSceneryElement
2024-01-16 20:59:47 +02:00
Basssiiie cc7c528885 Fix widgets not redrawing correctly when updating disabled/visible state 2024-01-16 14:05:21 +00:00
Severin Paul Höfer 15e0402c63
Fix #20255: Images not freed in Track Designs Manager (#21205)
* Add missing deallocation in track manager

* Update changelog.txt
2024-01-15 21:38:46 -03:00
Stephan Spengler e8a7bc43b3
Plugin documentation: Added missing field to SmallSceneryElement 2024-01-15 12:42:40 +01:00
Max 7a9e8a5e44
Fix: setting brake/booster speeds via plug-in does not work 2024-01-15 08:28:21 +01:00
Severin Paul Höfer 62d0fd76e0
Fix #20616: Confirmation button in track designer's quit prompt has the wrong text
Wrapped the logic for determining the text to be displayed on title
and buttons of the save prompt in an if condition, so it's not run for
the pure quit prompt.
2024-01-15 08:26:58 +01:00
ζeh Matt d202f0044d
Update changelog.txt 2024-01-12 17:56:27 +02:00
Michał Janiszewski 7d8f13a97f
Add changelog entry for 20951 (#21186) 2024-01-12 08:48:35 -03:00
Michael Steenbeek 0e5c82e2d4
Close #18632: Display land ownership on the water (#21150)
Co-authored-by: pfroud <pfroud@users.noreply.github.com>
2024-01-12 07:14:11 +00:00
HtotheTML 50cf1aed67
Fix Inca Lost City’s scenario description
The scenario Inca Lost City from the Wacky Worlds expansion states that there are height restrictions. Since there aren't, I've removed the corresponding text.
2024-01-11 21:17:58 +00:00
Matt ce0cc9fc84
Merge pull request #21162 from ZehMatt/fix-intervals
Fix #21145, #21158: Keep handles for intervals stable and resolve crash
2024-01-11 20:30:30 +02:00
Matt c137d20a0b
Merge pull request #21163 from fidwell/plugin-api-SmallSceneryPlaceArgs
Plugin documentation: Added missing required field to SmallSceneryPlaceArgs
2024-01-06 20:02:45 +02:00
Andrew 2768716238 Added missing required field to SmallSceneryPlaceArgs 2024-01-06 11:28:00 -05:00
ζeh Matt c7a716e050
Update changelog.txt 2024-01-06 10:42:17 +02:00
James103 1d8dc111f1
Replace 2023 with 2024 in copyright headers (#21139)
Replace all instances of the year 2023 with 2024 in all copyright headers
2024-01-01 12:52:28 +01:00