1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 12:03:07 +01:00
Commit Graph

19294 Commits

Author SHA1 Message Date
Ted John
cbd4c78cf6 Handle legacy objects correctly 2023-05-02 20:28:14 +01:00
Ted John
069a2b3192 Implement object manager for plugins 2023-05-02 20:28:14 +01:00
Ted John
f95472c70a Add API for installed objects 2023-05-02 20:28:14 +01:00
Ted John
f1ac4363ce Fix openrct2.d.ts 2023-05-02 20:28:14 +01:00
Ted John
d3a65443f2 Increment plugin API version 2023-05-02 20:28:14 +01:00
Ted John
58dc3f193b Use simple identifiers 2023-05-02 20:27:57 +01:00
Ted John
bf3c6964be Remove scenery from object type names 2023-05-02 20:27:56 +01:00
Ted John
74fc4d3666 Revert re order of small scenery function 2023-05-02 20:27:56 +01:00
Ted John
1a73a0be68 Implement other scenery objects 2023-05-02 20:27:56 +01:00
Ted John
2729956cef Add scenery group object interface 2023-05-02 20:27:56 +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
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
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
Tulio Leao
c849a75bc8 Close #13782: Refactor Multiplayer window to class (#19948) 2023-04-27 07:05:14 -03:00
ζeh Matt
d6b340b34d Fix comments 2023-04-26 21:58:44 +03:00
ζeh Matt
5439c7ffeb Improve dirty grid rendering performance. 2023-04-26 18:37:00 +03:00
Chase
d6ebeca483 Fix #19935: Part of old multiplayer name remains when entering a shorter name (#20004)
* clear _playerName

* Change _playerName to a u8string

* Explicitly set underlying string ptr on change
2023-04-26 08:34:39 +01:00
Michael Steenbeek
c96762517f Use strong enum for metal supports (#20045) 2023-04-24 21:46:33 -03:00
Duncan
ee100f59c0 Fix #19800. Crash when more than 62 stations on a ride (#20039)
* Fix #19800. Crash when more than 62 stations on a ride

This is a bit of a temporary fix. The crash happens due to exhausting the space in the formatter but the format string only ever handled 4 stations so it was still not going to work for 5 <=> 62 stations. So for the time being capped the output at 4 stations.

* Add changelog entry

* Apply review comment
2023-04-24 21:16:21 +00:00
Ted John
9dac7f889f Fix #18583: Land dropdown is incorrect if there are surface entry holes (#20035) 2023-04-24 22:00:12 +01:00
Ted John
0cf24f0100 Fix #20033: Asset packs cannot reference game data (#20034) 2023-04-24 21:55:36 +01:00
Michael Steenbeek
2f25d4054b Refactor/wooden supports 2 (#20005)
* Use new enum in MiniatureRailway.cpp

* Add new paint functions for Wooden B supports

* Update and consolidate Wooden B supports calls for Minetrain RC

* Consolidate Wooden A supports calls for Minetrain RC

* Replace some unnecessary calls to PaintAddImageAsParentRotated()
2023-04-24 21:54:16 +01:00
kyphii
c74e69b8a0 Fix #20027: Looping coaster with the reverse train option makes the wrong sound (#20028)
* Always use carEntry 0 for friction sound

* Use front car entry for sound index

* Add note for carEntry sound properties

* Bump network version

---------

Co-authored-by: Trevor Finney <8711258+finneyt@users.noreply.github.com>
2023-04-24 08:03:01 +01:00
Matthias Moninger
21a0ccbb77 Merge pull request #20024 from ZehMatt/fix-20018
Fix #20018: Shops not calculating up-keep cost
2023-04-23 01:29:37 +03:00
ζeh Matt
aa00f1768b Bump up network version 2023-04-23 00:16:04 +03:00
Matthias Moninger
c0abafb4cc Merge pull request #20023 from Broxzier/bugfix/20008-roto-drop-paint-crash
Fix #20008: Crash in PaintRotoDropTowerSection
2023-04-22 23:10:07 +03:00
ζeh Matt
4dbe3fa5d7 Fix #20018: Shops not calculating up-keep cost 2023-04-22 22:56:59 +03:00
Hielke Morsink
5ade3e704c Fix #20008: Crash in PaintRotoDropTowerSection 2023-04-22 21:52:06 +02:00
kyphii
9ca4e48c79 Fix: #13397: Broken Stations with Simulate Mode 2023-04-22 19:41:26 +02:00
Hielke Morsink
c88fe4d2d2 Fix: small scenery details group box is unnecessarily big (#20016)
Small mistake from d46f981f03 that I only noticed just now.
2023-04-22 14:31:03 +02:00
Duncan
cdccb21dd5 Refactor of colours (#19998)
* Move dropdown functions to dropdown code

* Use a map for the colour tip

* Keep dropdownidx and colour seperated

* Allow number of rows to match vanilla

* Apply review comment

* Bump network version
2023-04-22 08:58:13 +00:00
Ted John
713bb09990 Merge pull request #19930 from IntelOrca/plugin/research
Add research plugin API
2023-04-21 21:17:34 +01:00
kyphii
6dfc6225e2 "Reversed Trains" Option (#19305)
* Initial commit for backwards-facing trains

* Allow persistence for reversed cars across save/load

* Make log flume turntable compatible with new reversal implementation

* Style fixes + Better implementation of inverted bank angles

* Further Style Fixes

* Code cleanup from PR feedback

* Fix GetBankRotationForDrawing function declaration

* Use update flag for reversed state

* Replace modulo operation with bit mask

* Correct guest pathing destination when entering reversed cars

* More style fixes

* Add plugin support for reversed vehicles

* Fix formatting error

* Derive reversal from ride mode for car spawning

* Formatting

* Rename function to GetPaintBankRotation

* Add reversed trains modes to Multi Dimension Coaster

* Change name of isReversed plugin API parameter for consistency

* Replace reversal operating modes with separate ride setting

* Add ALLOW_REVERSED_TRAINS flag to more ride types

* Make clang-format happy

* More Formatting

* Fix ALLOW_REVERSED_TRAINS flag on a couple rides

* Exclude flat rides from Reverse Trains tickbox when cheats are enabled

* Formatting

* Use Disable Vehicle Limits cheat for checkbox appearance condition

* Use correct swinging sprites when cars are reversed

* Update changelog and Plugin/Network/Park version numbers

* Formatting

* Add separate error String ID for clarity

* Add name to contributors.md

* Fix ride vehicle preview window with reversed trains for RCT1 train types

* Bump version numbers again

---------

Co-authored-by: Trevor Finney <8711258+finneyt@users.noreply.github.com>
2023-04-21 19:22:33 +03:00
Wenzhao Qiu
8f0db4cb20 Fix #16791: rotodrop top piece is replicated (#19970)
* Fix rotodrop top piece replication issue (#16791)

* Add changelog entry

* Raise network version

* Move changelog entry
2023-04-21 09:48:17 -03:00
Michał Janiszewski
784237202b Raise water and land height limits to 254 units/182m/600ft (#19988)
* Raise water and land height limits to 254 units/182m/600ft

New parks load correctly in older versions, but cannot be altered there.

Fixes #17739

* Add changelog, bump network and park file version
2023-04-21 12:58:39 +02:00
Matthias Moninger
698a06121f Merge pull request #19975 from Broxzier/bugfix/issue-form-fields
Fix: version info is not filled on bug report
2023-04-21 00:45:26 +03:00
Ted John
e820956a59 Move research API to .cpp file 2023-04-20 22:09:23 +01:00
Duncan
be30930b4a Merge pull request #19955 from Gymnasiast/refactor/wooden-supports
Introduce normalised Wooden A supports functions
2023-04-20 19:14:12 +01:00
Rik Smeets
d10be6d0e7 Fix #19911: Guests stuck at railway crossings (#19939)
In continuous circuit operating mode, not only the train head should be used for (un)blocking path. Because of this change, a previous change regarding which trailing track blocks should be unblocked has been reverted, as to prevent path being unblocked too soon.
2023-04-20 18:53:21 +02:00
Gymnasiast
33bd5c494f Introduce normalised Wooden A supports functions 2023-04-20 18:35:58 +02:00
Matthias Moninger
e614584f65 Fix #19991: Crash when using cut-away view (#19968)
* Fix #19991: Crash using cut-away view

* Update changelog.txt

* Document the use of temporary paint head
2023-04-20 16:00:22 +01:00
Gymnasiast
809e172a84 Fix Mine Train support bug (original bug) 2023-04-19 16:22:08 +02:00
Matthias Moninger
98aa816e5f Fix #19989: Crash with small scenery objects having no offsets defined (#19990) 2023-04-19 06:35:09 +01:00
Ted John
d471d7a4b7 Use strings for research category 2023-04-18 21:38:10 +01:00
Ted John
83bf0d7dce Make expectedDay in plugin in 1 to 31 range. 2023-04-18 21:38:10 +01:00
Ted John
00eb2aae95 Move uninvented item to invented list when research is complete
When an item began initial research, it was moved to the invented list. This is not intuitive for plugins, so move it once the item is fully researched.
2023-04-18 21:38:10 +01:00