Commit Graph

1915 Commits

Author SHA1 Message Date
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
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
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
ζeh Matt 5bb267e0c9
Update changelog.txt 2023-04-26 23:21:55 +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
Hielke Morsink 5f798d98db
Undo removal of entry that was no regression 2023-04-24 22:43:41 +02:00
Hielke Morsink 5dea828769
Changelog fixes 0.4.5 2023-04-24 07:33:59 +00:00
ζeh Matt d5f93fe6ae
Update changelog.txt 2023-04-23 00:16:54 +03: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
AuraSpecs 53642c0ae9
Update OpenSFX to version 1.0.3 (#20009) 2023-04-22 09:41:34 +01: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
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
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
Ted John d471d7a4b7 Use strings for research category 2023-04-18 21:38:10 +01:00
Ted John fe3f32e82e Fix code review comments on research 2023-04-18 21:38:10 +01:00
Ted John 59f9d099b9 Update openrct2.d.ts 2023-04-18 21:38:10 +01:00
Ted John dc8187d949 Update changelog 2023-04-18 21:38:09 +01:00
Ted John f35e595d0e Add research plugin API 2023-04-18 21:38:09 +01:00
Stephan Spengler 2fd3eb47e7
SetCheatAction has wrong ID in plugin API 2023-04-18 13:23:44 +02:00
Rik Smeets 35674ac627
Add Spiral Slide pallette (#19952) 2023-04-17 09:49:30 +00:00
Rik Smeets 55adb71cd8
Add keyboard shortcut to Keyboard Shortcuts window 2023-04-17 11:15:32 +02:00
73 7011a9775c
fix #19858 (#19940)
this will fix issue 19858 by changing water colour used in simulate flag to nonwater colour
2023-04-16 14:27:20 +01:00
Michael Steenbeek d088533ac4
Fix #19950: Mine train block brake supports drawn incorrectly (#19954) 2023-04-16 14:19:17 +01:00
Rik Smeets a31ff7e02e
Add prompt before resetting shortcut keys (#19905) 2023-04-16 09:22:05 +00:00
Chase 7e313d45cd
Fix #19906: Destructible cheat does not allow ride modification (#19924) 2023-04-14 21:10:54 -03:00
Kevin Strehl f7b8a2fde7
Disable marketing tab when marketing is prohibited (#19828)
Disable marketing tab when marketing is prohibited

---------

Co-authored-by: Rik Smeets <30838294+rik-smeets@users.noreply.github.com>
2023-04-14 18:25:35 +02:00
Nikolas Parshook ef35dfa40a
Expose obj image offset and num images to plugins (#17567)
Co-authored-by: Duncan <duncans_pumpkin@hotmail.co.uk>
2023-04-13 19:09:15 +00:00
undermark5 78aa02fe8a
Fix #13130: Android respects device locale (#19419)
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2023-04-13 09:30:18 +00:00
Spacek531 433ef96a36 add changelog entry 2023-04-11 19:28:27 -07:00
Duncan 9493af44dd
Fix rand colours missing final colour (#19901) 2023-04-11 18:27:45 -03:00
AuraSpecs d8f9bc3146
Add Powered Lifthill to Giga Coaster (#19276)
Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com>
2023-04-11 06:44:05 -03:00
Raed 1bb1767577
Fix #19733: Favorite ride of X guests integer overflow (#19887)
* Fix #19733: Favorite ride of X guests integer overflow

Changed the variable for the number of guests favoring a ride to
match the maximum number of guests able to be in a park.

* Bump network stream and park file versions

* Added changelog entry for #19733 fix

* Reorder changelog entry
2023-04-10 20:03:25 +01:00
Meehoi b4156c0c77
Fix highlight path issues not hiding wall elements (#19830)
* Fix highlight path issue not hide wall element

* Add changelog and contributors
2023-04-09 19:13:47 +02:00
Hielke Morsink e6d439dc5b
Fix #19801: Cannot resize load/save window anymore (#19872)
The main issue was that the min/max sizes of the window were set in the constructor, then being overwritten by the WindowCreate function. That function calls the OnOpen function, which can be used to set them properly.

The other two changes are just minor cleanups; a pixel difference in padding on the right side, and an overriden function that's identical to the base.
2023-04-08 07:25:46 +02:00
Rik Smeets c2d55e9535
Fix Looping Coaster trains clipping through steep quarter turns down 2023-04-06 21:34:00 +02:00
kyphii 39790779bb
Extend color selection dropdown with more colors (#19446)
* Setup for extended palette

* Define order for color picker cells

* Init G2 Palettes in ColoursInitMaps

* Add Glass Palettes

* Use special sprite for Invisible color

* Set up new cheat for special colors

* Add glass palettes to palette_to_g1_offset

* Add entries for new colors in TranslucentWindowPalettes

* Finish implementation of special colors cheat

* Some cleanup

* New colors almost work

* Correct g2 palette loading indices

* Invisible color sprite displays properly

* Repaint works with large scenery and walls

* Prevent random shop items from overflowing to junk palettes

* More cleanup

* Fix glass palettes

* Add mapping of new colors to original colors for UI themes

* Fix junk palettes for random shop items

* Fix missing highlight color in software renderer

* Convert small scenery support flag to allow use of new colors

* Progress on displaying new colors in software renderer

* Fix invisible color scheme sprite

* Formatting cleanup

* Resolve comparison of integer expressions of different signedness

* Index g2 palette maps to fix visible chain lift

* Progress on fixing new colors in software renderer

* Fix station and support colors

* Fix dropdown selected index

* Get invisible color (mostly) working in software renderer

* Use forceBmp for palette resources

* Remove test function definition left in by mistake

* Remove some obsolete range checks for original color values

* Add changelog entry

* Reorder color dropdown based on NE user feedback

* Some cleanup

* Further cleanup

* Formatting

* Add include for GetPaletteMapIndexForColour

* Fix a couple things I broke

* Fix function placement

* Revert "Add include for GetPaletteMapIndexForColour"

This reverts commit 0af9611e6656d792adb7a36efe7dbf3387a4a759.

* Use color constants for color order list

* Make remappable colors contiguous

* turn off clang format for ordered color list

* Appease clang

* Use all colors for random shop item animation

* Improvements to palette map resources

* Fix chain lifts again + adjustments to a few colors

* Update changelog and contributors.md

* Revert changes to S4 and S6 importers which are no longer needed

* Bump network, plugin, and minimum park versions

* Revert "Progress on displaying new colors in software renderer"

This reverts commit 337602e4a7.

* Remove unnecessary comment

---------

Co-authored-by: Trevor Finney <8711258+finneyt@users.noreply.github.com>
2023-04-06 08:36:07 +01:00
AuraSpecs 19a8384547
Update OpenMusic to version 1.2.0 (#19833) 2023-04-05 20:21:12 +01:00
Hielke Morsink 28252bcb79
Add changelog entry for #12598 (#19834) 2023-04-05 17:08:18 +02:00
X123M3-256 3c4e32458a
Add large sloped turns to hybrid and single rail (#19547)
* Implement large sloped turns

* Fix formatting

* Add sprites

* Fix large turns button being active on steep slopes

* Remove bad comment

* Increment network,plugin,park version numbers

* Update changelog

* Increment park file version again
2023-04-05 13:47:56 +01:00
John Mulcahy 18ce417dc0
Fix 19231 - Fix Tile Copy/Paste null pointer exception 2023-04-04 11:35:20 +02:00