1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

2277 Commits

Author SHA1 Message Date
Michał Janiszewski
caacd4d7be Release v0.4.13
- Feature: [#19596] Allow for playing back a replay without camera movement or alert box.
- Feature: [#20831] The ride selection window now shows object authors if debugging tools are active.
- Feature: [#20832] The ride music tab now shows a track listing for the current music style.
- Feature: [#22172] [Plugin] Expose ride satisfaction ratings to the plugin API.
- Feature: [#22184] [Plugin] Expose staff statistics to the plugin API.
- Feature: [#22213] [Plugin] Allow plugins to focus on textboxes in custom windows.
- Feature: [#22272] [Plugin] Expose ride vehicle’s current track type via car trackLocation.
- Feature: [#22301] Loading save games or scenarios now indicates loading progress.
- Feature: [OpenMusic#54] Added Progressive ride music style (feat. Approaching Nirvana).
- Improved: [#22352] The object selection window now groups relevant object tabs together.
- Improved: [#22357] Error messages are now themeable and easier to read.
- Improved: [#22361, objects#342, objects#343] Add additional colour presets to the Observation Tower, Twist, and Ferris Wheel.
- Improved: [#22433] Increase the network timeout from 7 to 20 seconds, should help slow clients getting disconnected.
- Improved: [#22437] File indexing now properly uses all CPU power, improving object and scenario indexing.
- Improved: [#22449] Reduced the time it takes to load and index objects, scenarios and tracks.
- Change: [#12292] The ‘Toggle visibility of toolbars’ shortcut is no longer assigned by default.
- Change: [#21494] Display pixel density is now taken into account for the initial window scale setting.
- Change: [#22230] The plugin/script engine is now initialised off the main thread.
- Change: [#22251] Hide author info in the scenery window unless debug tools are active.
- Change: [#22283] Let heavy snow and blizzard increase chance of brakes failure.
- Change: [#22309] The scenario editor now supports loading landscapes from .sea save files.
- Fix: [#17390] Glitchy animations for the ride type tabs in the object selection window.
- Fix: [#19210] The load/save window executes the loading code twice, resulting in a slowdown.
- Fix: [#21175] Terraform tool hotkeys don't work when toolbars are hidden.
- Fix: [#22056] Potential crash upon exiting the game.
- Fix: [#22101] Wrong tunnel shapes on Log Flume and Giga, Hybrid, Single-Rail and Alpine Coasters.
- Fix: [#22208] Cursor may fail to register hits in some cases (original bug).
- Fix: [#22209] Water tool selection may disappear near edge of map.
- Fix: [#22222] Staff list may remain invalid when changing tabs.
- Fix: [#22265] Button for switching covered tracks on slides doesn’t stay pressed.
- Fix: [#22284] Unrated rides cause high amount of nausea.
- Fix: [#22292] Progress bar widgets in guest and ride windows are not updating correctly.
- Fix: [#22304] Graphs don’t draw lines on the left edge of the screen.
- Fix: [#22308] OpenGL draws lines incorrectly in some cases.
- Fix: [#22318] Water sparkles are missing if transparent water is enabled without RCT1 linked.
- Fix: [#22333] Tile inspector closes other tool windows.
- Fix: [#22339] Printing ui.tool.cursor in console crashes the game.
- Fix: [#22348] Progress bar screen doesn’t handle window resizing.
- Fix: [#22389] Alpine coaster has wrong tunnel entrance type.
- Fix: [#22435] [Plugin] Off-by-one pixel issue in active widget width and height setters.
2024-08-04 19:53:53 +02:00
mrmbernardi
1f411ad792 Merge pull request #22200 from mrmbernardi/fix_lines
Improve line drawing code
2024-08-03 17:15:18 +10:00
tmatale
45d3105508 Fix #22292: Progress bars displayed incorrectly if multiple windows are open 2024-08-02 22:41:40 +02:00
Michael Steenbeek
84d5e80634 Update objects to v1.4.7 2024-08-02 22:25:45 +02:00
Basssiiie
e2641668a4 Fix off-by-one pixel issue in active widget width and height setters 2024-08-02 19:16:22 +00:00
Michael Bernardi
0b50ef6fd2 Added line clipping code to OpenGL renderer 2024-08-03 02:47:57 +10:00
Matt
29006b35e9 Update changelog for #22449 (#22452) 2024-08-01 23:41:33 +02:00
ζeh Matt
9ddd47598d Update changelog.txt 2024-08-01 23:48:54 +03:00
Aaron van Geffen
65bf7753a1 Revert "Fix renderer creation for HW display engine (#22445)"
This reverts commit b1e14c676d.
2024-08-01 22:37:03 +02:00
Michał Janiszewski
b1e14c676d Fix renderer creation for HW display engine (#22445)
SDL requires a renderer to be created in an empty window, i.e. one
without any other renderer nor surface. Leaving the window with earlier
surface from another engine (e.g. when switching from SW to SW+HWD)
caused no renderer to be created (_sdlRenderer set to nullptr) and
setting up a bomb to explode next time we try to render a frame.

I think this can also get triggered when resizing/switching the focus of
a window.

While SDL already has internal checks for window surface presence in
`SDL_DestroyWindowSurface` _in the SDL version I checked_, I have no
certainty if this is correct for all of them. I added check for window
surface presence to better express the code intent as well.

`SDL_DestroyWindowSurface` was introduced in SDL 2.28

This should take care of most of the `BlitPixel`, `DrawRLESpriteMinify`
issues reported by backtrace.
2024-08-01 19:31:34 +02:00
Matt
27febaacce Increase network timeout, small refactors (#22433)
* Refactor consts with kNotion, make static

* Increase the no data timeout to 20 seconds, add constant

* Fix debug builds

* Update changelog.txt
2024-08-01 10:50:50 +02:00
Aaron van Geffen
706fd8f3f0 Fix #21175: Some hotkeys don't work when toolbars are hidden 2024-07-31 21:54:10 +02:00
Tomáš Chvojka
5dc782c0ee Let heavy snow and blizzard increase chance of brakes failure (#22283) 2024-07-31 14:13:27 +00:00
Aaron van Geffen
bd0dd44c10 Don't assign Toggle Toolbars keyboard shortcut by default (#22424) 2024-07-30 21:41:27 +00:00
Gymnasiast
141ad4c810 Fix #22101: Wrong tunnel type on newly added elements 2024-07-30 23:20:24 +02:00
lewyche
79ceb2d5cb Fix #22389: Alpine coaster has wrong tunnel entrance type 2024-07-30 22:33:13 +02:00
Aaron van Geffen
021a49fd19 Amend changelog 2024-07-28 22:24:08 +02:00
Michael Steenbeek
a0be444d24 Improve contrast for error messages
Co-authored-by: Aaron van Geffen <aaron@aaronweb.net>
2024-07-28 11:19:59 +02:00
Aaron van Geffen
0df7e41f59 Fix #17390: Object selection ride tab uses wrong animations (#22351)
* Object selection ride tab uses wrong animations

* Keep track of currently selected sub-tab

* Add changelog entry
2024-07-27 21:54:19 +02:00
Michael Steenbeek
ecbb79db4c Fix apostrophes in changelog 2024-07-26 09:09:18 +02:00
Andrew
df07d9cb2b Close #19596: Disable replay effects with a startup flag (#22303) 2024-07-25 17:29:01 -03:00
Guy Sviry
30a555d3c2 Expose vehicle.trackType to scripting (#22272)
Co-authored-by: Guy Sviry <guy@axissecurity.com>
2024-07-25 17:27:15 -03:00
lewyche
62467199ed Fix #22265: Track button doesn't stay pressed 2024-07-25 09:44:11 +02:00
Arnold Zhou
a749698566 [Plugin API] Feat: Expose staff statistics (#22184) 2024-07-24 20:10:34 -03:00
73
543d4f6ee8 Add RCT1 colour preset for Observation Tower Pole (#22361)
Adds white and yellow preset to Observation tower pole from rct1 thumbnail.
2024-07-25 00:03:16 +02:00
Stephan Spengler
ba779ac64c Change ToolEventArgs.mapCoords from CoordsXYZ to CoordsXY
Testing showed that the event returns CoordsXY instead of CoordsXYZ. The code can be traced back to InteractionInfo.Loc (Viewport.h), which is CoordsXY.
2024-07-24 16:42:02 +02:00
mrmbernardi
3e59b3f72e Fix #22339: Printing ui.tool.cursor in console crashes the game. (#22347) 2024-07-24 07:51:10 +00:00
Aaron van Geffen
4cef38456a Keep progress bar window centred after resize (#22354) 2024-07-23 17:21:06 +00:00
Arnold Zhou
2da5ed6517 [Plugin API] Fix: add missing hook types, order & style (#22134) 2024-07-23 07:49:57 -03:00
mrmbernardi
bdb4823d48 Fix #22209: Water tool selection may disappear near edge of map (#22256) 2024-07-21 20:32:23 +00:00
Karsten Van Fossan
0c318a416e Automatically set window scaling based on display pixel density (#21907)
Co-authored-by: Aaron van Geffen <aaron@aaronweb.net>
2024-07-21 22:10:32 +02:00
mrmbernardi
58e4a5031e Fix #22222: Staff list may remain invalid when changing tabs. (#22342) 2024-07-21 01:35:22 +10:00
mrmbernardi
f9a7d98b21 Fix #22333: Tile inspector closes other tool windows (#22341) 2024-07-20 23:14:37 +10:00
Tomáš Chvojka
c9be2ecca1 Fix #22245: Unrated rides cause high amount of nausea (#22284)
Reverts #22199 changes that seem to cause a nausea bug on untested rides

Nulls are now considered higher values than anything, making them appear on the tail of ascending lists again

Checking for NULL in ratings.intensity and ratings.nausea didn't work, they seem to retain there values pre ratings reset and setting them to null would change the behaviour of the game - so instead we check for ratings.isNull() in the sorting to properly put null ratings to tail of sorted lists.
2024-07-17 12:52:00 +02:00
Aaron van Geffen
a3ea3a70c5 Fix #22318: Water sparkles missing if transparent water enabled (#22319)
The transparent water mode should always be enabled in cases where RCT1 is not linked.
2024-07-16 23:40:03 +03:00
Aaron van Geffen
1d361a07e3 Merge pull request #22301 from AaronVanGeffen/more-progress-bars
Add progress bars to loading saved games and scenarios
2024-07-16 20:04:21 +02:00
Aaron van Geffen
7be74f2746 Add changelog entry 2024-07-16 19:53:17 +02:00
mrmbernardi
461b4b9669 Fix #22304: Graphs don't draw lines on the left edge of the screen (#22315) 2024-07-17 02:01:11 +10:00
Aaron van Geffen
4a981be643 Simplify scenario editor's landscape loading code (#22309) 2024-07-16 08:49:02 +02:00
Aaron van Geffen
d9efdd4cad Prevent loading saved games twice in LoadSave window callback (#22305) 2024-07-15 19:50:53 +00:00
mrmbernardi
cfa507350b Update changelog.txt to list issue #22208 as an original bug 2024-07-16 03:15:17 +10:00
Silent
76b55651b6 Stop (and discard) the replay before tearing down the scripting engine (#22293)
Fixes a shutdown crash on tearing down Duktape values after their
context has already been destroyed.

Fixes #22056
2024-07-15 08:43:06 +02:00
cheweytoo
ab43ebdace Added changelog entry for issue #22208 (#22295) 2024-07-15 00:27:04 +10:00
AuraSpecs
8968c7d3fe Update OpenMusic to version 1.6 (#22262) 2024-07-10 07:43:52 +00:00
Aaron van Geffen
4bfd3f3369 Initialise script engine off main thread (#22230)
* Initialise script engine off main thread

* Do not run ScriptEngine.Tick() during initialisation/preloading

* Add 'Loading plugin engine…' string

* Add changelog entry

---------

Co-authored-by: Bas <Basssiiie@users.noreply.github.com>
2024-07-09 20:19:01 +02:00
AuraSpecs
bc0f6c4489 Hide author info in the scenery window unless debug tools are active (#22251) 2024-07-08 22:21:38 +02:00
Fredrik Tegnell
940c348fa6 Display object author info in ride selection window (#20952)
Co-authored-by: Aaron van Geffen <aaron@aaronweb.net>
2024-07-08 20:17:05 +00:00
Aaron van Geffen
7f281a269d Add changelog entry for #20980 2024-07-08 17:04:50 +02:00
Arnold Zhou
376e749a70 Allow plugins to focus on textboxes in custom windows (#22213) 2024-07-08 14:49:15 +02:00
Arnold Zhou
aa11d8ddfe Expose ride satisfaction to plugin api (#22172) 2024-07-08 10:53:14 +02:00