Commit Graph

24940 Commits

Author SHA1 Message Date
Silent c4b70358c8
More MAX_PATH removals (#20113)
* Refactor FileScanner to lift a MAX_PATH limit

* Replace Platform::EnsureDirectoryExists with Path::CreateDirectory

* Remove MAX_PATH from Platform.Posix.cpp
2023-05-09 20:08:46 +01:00
Michael Steenbeek 58baa85a27
Small path additions cleanup (#20076)
* Split off path addition paint calls

* Replace occurences of “path bit” with “path addition”

* Replace occurences of “footpath item“ with “path addition”
2023-05-09 20:08:25 +01:00
Matthias Moninger 8c165dd455
Merge pull request #20110 from ZeeMaji/rct1buildheights
Fix a few RCT1 build height discrepancies
2023-05-09 19:44:07 +03:00
Hielke Morsink 037e103e93
Update all backtrace commits in body 2023-05-08 23:53:25 +02:00
ZeeMajora 7118249715 Fix a few RCT1 build height discrepancies 2023-05-08 10:26:31 -04:00
Michał Janiszewski b6f64bae9e Start v0.4.6 2023-05-08 14:53:01 +02:00
Michał Janiszewski 76ca8400ca Release v0.4.5
- Feature: [#18713] Block brakes have speed control and brakes slower than adjacent block brakes copy block brake speed when block brake open.
- Feature: [#19276] Add Powered Lifthill to Giga Coaster.
- Feature: [#19305] Add new Reversed Trains ride setting to run trains backwards, granting a bonus to ride ratings.
- Feature: [#19305] [Plugin] Add “Car.isReversed” to allow individual ride vehicles to run backwards.
- Feature: [#19446] Add new color options to color dropdown.
- Feature: [#19547] Add large sloped turns to hybrid coaster and single rail coaster.
- Feature: [#19930] Add plugin APIs for research.
- Feature: [OpenMusic#25] Added Prehistoric ride music style.
- Feature: [OpenMusic#26] Fairground Organ style 2 with new recordings from Herman's 35er Voigt (Previously known as Bressingham Voigt).
- Feature: [OpenMusic#28] Add Ragtime style 2 ride music.
- Improved: [#17739] Raise water and land height limits to 254 units/182m/600ft.
- Improved: [#18490] Reduce guests walking through trains on level crossing next to station.
- Improved: [#18996] When marketing campaigns are disabled, disable the Marketing tab in the Finances window.
- Improved: [#19764] Miscellaneous scenery tab now grouped next to the all-scenery tab.
- Improved: [#19830] “Highlight path issues” will now hide wall elements.
- Improved: [#19905] Add prompt before resetting shortcut keys.
- Improved: [#19952] Add colour preset to Spiral Slide using the new colour options.
- Improved: [#19953] Add keyboard shortcut to Keyboard Shortcuts window.
- Improved: [#20055] Performance improvement for the software renderer.
- Change: [OpenSFX#17] Update Hybrid RC lifthill loop.
- Fix: [#12598] Number of holes is not set correctly when saving track designs.
- Fix: [#13130] Android always defaulting to UK locale for language, currency and temperature.
- Fix: [#13397] Ride simulation causes strange station behaviour and makes the ride unusable in some cases.
- Fix: [#16791] Rotodrop top piece replicates when walls are placed around it and clearance checks are disabled (original bug).
- Fix: [#18583] Land dropdown is incorrect if there are surface entry index holes.
- Fix: [#18895] Responding mechanic blocked at level crossing.
- Fix: [#19231] Crash due to null pointer to previously deleted banner in tile copy/paste functionality.
- Fix: [#19296] Crash due to a race condition for parallel object loading.
- Fix: [#19733] Favorite ride of X guests integer overflow.
- Fix: [#19756] Crash with title sequences containing no commands.
- Fix: [#19767] No message when path is not connected to ride exit and is therefore unreachable for mechanics.
- Fix: [#19800] Crash when displaying station stats with more than 62 stations.
- Fix: [#19801] The in-game load/save window cannot be resized anymore.
- Fix: [#19854] Looping Coaster trains clipping through steep quarter turns down.
- Fix: [#19858] Issue drawing simulate flag icon on alternate colour palettes.
- Fix: [#19901] Random shop colours never assigning last colour.
- Fix: [#19911] Guests stuck at certain railway crossings.
- Fix: [#19924] Destructible cheat does not allow partial ride modification.
- Fix: [#19950] Mine train block brake supports drawn incorrectly.
- Fix: [#19955] Mine Train Roller Coaster has incorrect supports on the sloped left small turn (original bug).
- Fix: [#19987] [Plugin] ‘SetCheatAction’ has wrong ID in plugin API.
- Fix: [#20016] The group box for small scenery details in the Tile Inspector window has unused empty space.
- Fix: [#20018] Shops not calculating up-keep cost.
- Fix: [#20033] Asset packs cannot reference game data.
- Fix: [#20104] [Plugin] Some network APIs use player index and group index.
- Fix: [#20099] Some scrollbar is glitched or have incorrect size when open window for the first time
- Fix: [#20134] Grass length being updated for tiles in the void, causing unneccesary drawing operations.
2023-05-08 13:02:02 +02:00
Michał Janiszewski 7ac60645bb Merge branch 'develop' 2023-05-08 12:50:13 +02:00
Michał Janiszewski 9026568074
Update objects to v1.3.11 (#20153) 2023-05-08 10:10:11 +00:00
AuraSpecs 535747ae5f
Update OpenMusic to version 1.3.0 (#20133) 2023-05-08 10:02:14 +02:00
Michał Janiszewski f1c79f6ac4
Iterate widgets only until last (#20116) 2023-05-07 20:37:06 +00:00
Michał Janiszewski 0871525850
Use precompiled headers for libopenrct2 with MSVC (#15997)
* Use precompiled headers for libopenrct2 with MSVC

* Exclude PCH from duktape

duktape needs all the warnings turned off and forcing PCH also enables
warnings. As there is nothing duktape would consume from our header,
remove forcing inclusion of that header into duktape.

* Provide msbuild parameter for using PCH only in CI
2023-05-07 21:53:50 +02:00
Matthias Moninger 4afa56e373
Merge pull request #20143 from janisozaur/gcc-13.1
Fix compatibility with GCC 13.1
2023-05-07 22:09:17 +03:00
Michał Janiszewski 6f2bf26ce1 Do the seekg thing 2023-05-07 20:46:05 +02:00
Michał Janiszewski 01f32a660f Fix length calculation 2023-05-07 20:00:37 +02:00
Matthias Moninger 4cb5620f43
Fix #20145: Add missing OnRidePhoto to the special element table (#20147) 2023-05-07 19:52:11 +02:00
Michał Janiszewski 851632510f Use unique_ptr 2023-05-07 19:37:56 +02:00
spacek531 61d820e614
Refactor special track elements list part 2 (#19951)
Part 2 of #19922
Fixes #19964

There are a lot of files changed, so this PR is structured to be easy to follow by looking at individual commits.

This PR refactors how the special track element list is created. The refactors include:

Divorces creating the list from RideConstructionWindow for modularity, including potential plugin API
Adds list of special track elements which can be re-ordered for more sensible organization
Same-named track elements will collapse into as few entries as possible
Separates up helixes from down helixes in track flags
Track flag separation was done to remove special code related to alpine coaster. Refactors to ride construction window were tested against and confirmed working with:

alpine coaster
suspended swinging coaster
hybrid coaster
inverted coaster
2023-05-07 09:13:22 +00:00
Michał Janiszewski be145da783 Fix compatibility with GCC 13.1 2023-05-06 23:02:26 +02:00
Matthias Moninger 1917a0b3f5
Merge pull request #20135 from ZehMatt/fix-20134
Fix #20134: Don't update grass length outside of the actual map
2023-05-06 19:27:20 +03:00
ζeh Matt 5683cf9520
Bump up network version 2023-05-06 18:25:27 +03:00
ζeh Matt 627a4f69c2
Update changelog.txt 2023-05-06 18:25:27 +03:00
ζeh Matt 4c78c8e512
Remove pointless masking 2023-05-06 18:25:27 +03:00
ζeh Matt cc1eee5bee
Fix #20134: Don't update grass length outside of the actual map 2023-05-06 18:25:27 +03:00
Meehoi 936f017147
Fix #20096: Server list window scroll is glitched when server list is empty (#20099)
* Fix initial scroll size of server list and change cast to int32_t

* set actual width for server list too

* add indentation

* fix pixel size of other scroll

* revert unnecessary changes

* add changelog entry
2023-05-06 17:01:14 +03:00
Matthias Moninger 756c516540
Merge pull request #20138 from ZehMatt/contributors-update
Update contributors.md
2023-05-06 16:14:07 +03:00
Michał Janiszewski 733eb07dd2
Run ctest tests in parallel (#20137) 2023-05-06 15:54:33 +03:00
Jochen Löppenberg 8627a5875f
Fix #20007: Wrong Error message when raising land or water: "Too low!" (#20123) 2023-05-06 12:23:17 +00:00
ζeh Matt e66fd199cc
Update contributors.md 2023-05-06 14:57:29 +03:00
Michał Janiszewski 21e15918a9
Use compiler hash instead of volatile mtime for macOS ccache
The mtime is volatile in macOS jobs, causing cache misses.

As compiler binary is the same, use compiler's binary hash instead of its mtime.

See https://github.com/hendrikmuhs/ccache-action/issues/146

When upstream action is updated, this can be adapted
2023-05-06 12:03:26 +02:00
kyphii 6f55454ae8
Add ratings modifier for reversed trains (#20091)
* Add ratings modifier for reversed trains

* Add test save file and ratings for this

* Changelog entry

* Bump network version

* Modify changelog

* Changelog edit

---------

Co-authored-by: Trevor Finney <8711258+finneyt@users.noreply.github.com>
2023-05-06 02:40:41 +03:00
OpenRCT2 git bot c964ced43f Merge Localisation/master into OpenRCT2/develop 2023-05-04 04:01:43 +00:00
Matthias Moninger e9c480c66e
Fix #20121: Guard against nullptr on viewport scroll (#20122) 2023-05-03 20:15:02 +01:00
Ted John 530dfac7c9
Fix #20104: [Plugin] Some network APIs use player index and group index (#20115)
Change all APIs that took a player index or group index so that they now take unique IDs.
2023-05-02 15:25:05 +01:00
Michał Janiszewski 42fa4cb6b9
Update backtrace token (#20117) 2023-05-01 23:03:30 +02:00
OpenRCT2 git bot 87b0ccdf5e Merge Localisation/master into OpenRCT2/develop 2023-05-01 04:01:53 +00:00
kyphii fe219281ec
Refactor Ride Ratings 2023-04-29 22:03:25 +02:00
kyphii 4237a02105
Fix mine train diagonal piece drawing incorrectly (#20082)
Co-authored-by: Trevor Finney <8711258+finneyt@users.noreply.github.com>
2023-04-29 07:41:49 +01:00
Tom c2042d541a
Refactor window to class: Research (#19910)
* Refactor window to class: Research (#13794)

- Update Research window to new window class

- Refactor dependant windows (Finances and NewRides)

* Refactor window to class: Research (#13794)

- Refactor all shared logic for both pages in research window. Reused by Finances and NewRides windows.

* Refactor window to class: Research (#13794)

- Fix style issues

* Refactor window to class: Research

- Fix style issues, again

* Refactor window to class: Research

- Override Window class methods

* Refactor window to class: Research

- Remove old method comments

* Refactor window to class: Research

- Addresses code review comments

* Refactor window to class: Research

- Adds ResearchWindow ctor

* Refactor window to class: Research

- Hide funding dropdown in no money scenarios
- Addresses code review comments
2023-04-28 23:54:02 -03:00
Gymnasiast 83612a98e1
Move all other uninverted Lay-down coaster parts to Corkscrew 2023-04-29 00:21:15 +02:00
Gymnasiast 6281e8b603
Use Corkscrew RC for 46 other Lay-down track elements 2023-04-29 00:21:14 +02:00
Gymnasiast a534a94286
Use Corkscrew RC for 16 Lay-down track elements 2023-04-29 00:21:14 +02:00
OpenRCT2 git bot d464e71b1a Merge Localisation/master into OpenRCT2/develop 2023-04-28 04:01:57 +00:00
Die4Ever 74c1f5a695
Fix openrct2.d.ts duplicate slopes25Banked67 (#20065) 2023-04-27 18:53:24 +01:00
Matthias Moninger 79af072cf4
Merge pull request #20055 from ZehMatt/dirty-grid
Improve dirty grid rendering performance.
2023-04-27 18:16:33 +03:00
spacek531 1bbdba40b5
Implement paint code for spiral lifthill down (#19567)
* spiral lifthill down paintcode

* rename string anyway

* add some stuff I forgot and add documentation

* use static assert on SpriteGroupMultiplier

* add slope to list of opposite slopes

* bump scripting version

* update openrct2.d.ts

* improve documentation
2023-04-27 15:11:22 +01:00
Matthias Moninger f975a914eb
Merge pull request #20054 from ZehMatt/rating-tests
Add BigTestMap to ride rating tests
2023-04-27 15:43:54 +03:00
Tulio Leao c849a75bc8
Close #13782: Refactor Multiplayer window to class (#19948) 2023-04-27 07:05:14 -03:00
OpenRCT2 git bot a38fc1109c Merge Localisation/master into OpenRCT2/develop 2023-04-27 04:02:07 +00:00
ζeh Matt 5bb267e0c9
Update changelog.txt 2023-04-26 23:21:55 +03:00