Commit graph

1324 commits

Author SHA1 Message Date
Duncan
50d22ededd
Create a hookable location checking function for actions (#11860)
* Create a hookable location checking function for actions

* Add location valid to a number of game actions

Actually pass the coordinates to the script

Use LocationValid on further game actions

Add further actions to the LocationValid. Update api

Update remaining actions to use LocationValid

* Fix bug with peep pickup

Adjust api
2020-06-16 20:57:11 +01:00
Irrelevant Irreverent
efd5b869d1 Update changelog with new feature 2020-06-16 08:57:56 -04:00
Duncan
78d062943b
Fix #11953: Incorrect shade used for wall banner text 2020-06-15 23:04:34 +02:00
Aaron van Geffen
de045978de
Implement #11944: Remember rides sort mode (#11945) 2020-06-13 23:36:43 +02:00
Ted John
a3aed8dce1 Update vehicle powered fields 2020-06-11 17:54:41 +01:00
Ted John
c5b2b2017a Add vehicle API for plugins 2020-06-11 17:54:36 +01:00
XplosiveLugnut
f9c5633c19
Can now pop balloons and quack ducks in title screen. (#9614)
* Can now pop balloons and quack ducks in title screen.

* Chengelog entry

* Narrow check for misc sprite down to only duck and balloon sprite.

* Update distribution/changelog.txt

Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com>

* Use the IsBalloon and IsDuck functions instead.

* Update src/openrct2-ui/interface/ViewportInteraction.cpp

Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com>

* Squash: Bring code up to date.

* Add nullptr check.

* Update src/openrct2-ui/interface/ViewportInteraction.cpp

Co-authored-by: Aaron van Geffen <aaron@aaronweb.net>

Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com>
Co-authored-by: Aaron van Geffen <aaron@aaronweb.net>
2020-06-10 18:31:33 +01:00
Michael Steenbeek
e83b86df4d
Replace occurrences of OpenRCT with OpenRCT2 (#11898) 2020-06-08 15:11:07 +02:00
Peter Ryszkiewicz
3dba0d9ae6
Add mac user directory to scripting docs (#11888) 2020-06-07 10:41:34 -03:00
Ted John
0ca42f453c
Add plugin API for setting button isPressed (#11851) 2020-06-01 23:05:24 -03:00
Michael Steenbeek
654dde4436
Merge pull request #11806 from michielbos/develop
Fix #11422 Add a shortcut key for disabling/enabling clearance checks
2020-05-30 21:21:39 +02:00
Ted John
8f77125cdb
Fix #11298: Unable to advertise server (500): Retry with ipv4 only (#11824)
Add new config option to allow any address to be advertised. This then
doesn't rely on the master server retrieving the server IP address via
the HTTP request which can often be IPv6 by default.
2020-05-30 18:21:22 +02:00
Michiel Bos
670b879235 Added a shortcut key for disabling/enabling clearance checks. 2020-05-30 17:10:08 +02:00
Michael Steenbeek
c3921d9d4c
Merge pull request #11712 from IntelOrca/plugin/ride-fields
[Plugin] Add more ride fields to API
2020-05-29 21:10:51 +02:00
Gymnasiast
0f76ae8005
Add Twitch removal to changelog 2020-05-28 09:30:32 +02:00
Ted John
da8f21fb70 Add ride age and improve documentation 2020-05-23 15:28:03 +01:00
Ted John
f4fb456c50 Add ride value to ScRide 2020-05-23 15:28:03 +01:00
Ted John
a0f76ddc1b Add running cost and inspection 2020-05-23 15:28:03 +01:00
Ted John
bfa96d6205 Fix price in ScRide 2020-05-23 15:28:03 +01:00
Ted John
f6fbd272ec Add built_date to ScRide and add GetAge() 2020-05-23 15:28:03 +01:00
Ted John
819208f3cb Add more ride fields to plugin API 2020-05-23 15:28:03 +01:00
Gymnasiast
d5e60e0e71
Create command to export images from .DAT file 2020-05-23 15:30:50 +02:00
tylerleamon
51872f9741
Fix #10634: Guests are unable to use uphill paths out of toilets
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2020-05-22 19:58:38 +02:00
Michael Steenbeek
51ebcac432
Add #11386 to changelog 2020-05-22 10:40:43 +02:00
Michael Steenbeek
7e7b15812d
Merge pull request #11747 from IntelOrca/plugin/small-additions
[Plugin] Add language and split peep into guest and staff
2020-05-20 10:24:24 +02:00
Ted John
03b1974912
Add plugin API for editing park messages (#11755) 2020-05-18 22:59:35 -03:00
Ted John
f5f8f5bd8e Use named flags for Peep instead of number 2020-05-15 00:24:24 +01:00
Ted John
b710e417df Split peep into guest and staff and add more fields 2020-05-14 18:35:21 +01:00
Duncan
79dda7260a
Fix #11695. Mechanics walking to 0,0 on entrance only (#11704)
Mistake made when refactoring that meant that null locations were converted into tile 0, 0. I've fixed the general case but it is preferred to try avoid using null states for coordinates if at all possible.
2020-05-11 20:28:40 +02:00
relic-automaton
3e39e2d0db
[Plugin] Add a script hook for ride ratings calculation (#11698)
The hook is called after ride rating calculation is complete and allows
scripts to override the ratings.
2020-05-10 23:26:10 -03:00
Ted John
e182791a6b
Merge pull request #11685 from IntelOrca/plugin/listview-widget
[Plugin] Implement the list view widget
2020-05-10 22:36:44 +01:00
Hielke Morsink
cb62e1a320
Add missing return type to typescript definitions (#11708) 2020-05-10 23:20:11 +02:00
Ted John
b96fdee531
Add plugin API to remove entities (#11702) 2020-05-10 14:07:27 -03:00
Ted John
ec06a9ca4b
Add plugin API for showing an error message (#11706) 2020-05-10 14:06:31 -03:00
Ted John
5288caec02
[Plugin] Add support for SetCheatAction and cheat retrieval (#11700)
* Add cheats interface API

* Add plugin support for SetCheatAction

* Remove ctx from ScCheats
2020-05-10 13:02:10 -03:00
Ted John
41950d75f0 Implement scrollbars field on list view 2020-05-09 17:24:16 +01:00
Ted John
092fee076d Remove unimplemented APIs for list view 2020-05-09 17:24:15 +01:00
Ted John
4701dd3b9b Add get / set highlighted cell / selected cell 2020-05-09 17:24:15 +01:00
Ted John
45a1184b0e Implement selection 2020-05-09 17:24:15 +01:00
Ted John
928bba9795 Implement sorting 2020-05-09 17:24:15 +01:00
Ted John
096de3ccc8 Implement list view 2020-05-09 17:24:15 +01:00
Hummel95
aac55d2cc0
Fix #10876: Peeps spawns can stack and are not removable (#11155) 2020-05-09 16:17:08 +02:00
Tulio Leao
16c5960e99
Merge pull request #11635 from IntelOrca/plugin/ride-game-actions
[Plugin] Add named parameters for ride related game actions
2020-05-09 10:46:41 -03:00
Ted John
6db16ffcad
Implement showTextInput plugin API (#11678) 2020-05-09 14:18:50 +01:00
Ted John
45d32bec68
[Plugin] Add API for taking captures and giant captures of the park 2020-05-09 13:55:24 +02:00
Michael Steenbeek
3d3dbde642
Merge pull request #11668 from IntelOrca/plugin/peep-stats
[Plugin] Add more stats to Peep interface
2020-05-09 13:53:36 +02:00
Ted John
fa0dd4e0d6 Add more peep stats for plugins 2020-05-09 12:37:51 +01:00
Michael Steenbeek
3ceecb33f0
Fix #11676: Spiral Roller Coaster has regular lift hill available (#11681) 2020-05-09 13:23:55 +02:00
Ted John
59ab39178f Add most fields from RideObject struct 2020-05-08 15:28:48 +01:00
Ted John
46d69126ea Split identifier and legacyIdentifier on Object 2020-05-08 15:28:48 +01:00
Michael Steenbeek
8660bbe9d7
Fix #1013: negative length in Ride window (#11651) 2020-05-06 11:32:10 +02:00
Ted John
ec7b52d555 Add action and args to GameActionResult 2020-05-05 18:00:56 +01:00
Michael Steenbeek
4f6f3feeb2
Merge pull request #11601 from Broxzier/bugfix/corrupt-elem-type-typescript
Add missing "openrct2_corrupt" element type
2020-05-05 18:53:08 +02:00
Michael Steenbeek
097b90a3db
Fix #11640: Object shows with blank description (#11641) 2020-05-05 18:49:58 +02:00
Michael Steenbeek
362ea7bbc0
Fix #11455: Object Selection window cuts off scenery names (#11639) 2020-05-05 18:19:30 +02:00
Fred-1044276
b03fbc086d
Fix #11450: Can't open rides, even with "Enable all track pieces" 2020-05-05 11:16:24 +02:00
Michael Steenbeek
80933dc0cc
Fix #11002: Rides list shows both red and green light activated (#11622) 2020-05-04 19:38:48 -03:00
Hielke Morsink
f88951eb33 Add isHidden field to plug-in TileElements
With this field, plug-in creators are encouraged to use `isHidden` rather than spawning corrupt elements to hide other tile elements, and their scripts won't need updating when `isHidden` becomes a real field that does not alter anything other than the element itself.
2020-05-05 00:16:09 +02:00
Ted John
2c153477a6
Add network.currentPlayer plugin API (#11607) 2020-05-03 13:53:36 +01:00
Hielke Morsink
e5b1508694 Rename openrct2_corrupt to openrct2_corrupt_deprecated 2020-05-03 13:47:48 +02:00
Hielke Morsink
f4fcaef0cd Add missing "openrct2_corrupt" element type 2020-05-02 20:14:50 +02:00
Tulio Leao
1f7ef019fc
Merge pull request #11580 from IntelOrca/plugin/custom-tool
[Plugin] Implement custom tool API
2020-05-02 08:28:59 -03:00
Ted John
e3016cdc03
Fix plugin game action hook player and result (#11587)
- Player was not being attached to the game action event args.
- OpenRCT2 was looking for error on the event args object rather than the result sub object.
2020-05-02 11:45:05 +01:00
Ted John
1e56ae0d99 Rename Coords2 and Coords3 in d.ts to same names as in code base 2020-05-02 11:42:43 +01:00
Ted John
e5b05747d3 Apply code review refactors 2020-05-02 11:38:33 +01:00
Ted John
be0e4a2869 Implement custom tools 2020-05-02 11:08:43 +01:00
Ted John
0ca52e58fd Implement tile selection API 2020-05-02 11:08:43 +01:00
Ted John
76e7e61f73
Correct openrct2.d.ts, tabs is optional (#11582) 2020-05-01 18:31:37 -03:00
tylerleamon
30e6b475a9
Fix #5451: Guests scream on every descent, no matter how small 2020-05-01 22:05:52 +02:00
Tulio Leao
9960e4b563
Merge pull request #11552 from IntelOrca/plugin/window-tabs
[Plugin] Implement custom window tabs
2020-05-01 13:49:31 -03:00
Ted John
00f78cc8fa Use ScreenCoordsXY for tab image offset 2020-05-01 13:53:28 +01:00
Michael Steenbeek
fc860e8b6e
Merge pull request #11521 from Gymnasiast/refactor/oein3
Make ResearchItem use ObjectEntryIndex
2020-05-01 13:28:21 +02:00
Ted John
98249c777d Implement string tooltips for plugins 2020-05-01 00:06:58 +01:00
Ted John
4501173c0d Implement custom window tabs 2020-04-30 23:42:28 +01:00
Ted John
8798811561
Fix #11526: Plugin: Crash when using sprite type in park.postMessage (#11533) 2020-04-30 19:51:47 +02:00
Michael Steenbeek
948c393bc1
Fix #8110: Use a single name for the title sequences directory (#11545) 2020-04-30 18:50:26 +02:00
Michael Steenbeek
76f41285b4
Merge pull request #11511 from IntelOrca/plugin/improve-network-apis
Improve network plugin APIs
2020-04-30 18:50:05 +02:00
Gymnasiast
6cdee9db93
Fix #7006: Use RTDs for determining ride category 2020-04-30 12:59:18 +02:00
Ted John
bbe7ff0d80
Refactor game action binding for plugins (#11528)
* Refactor game action binding for plugins

Adds parameter visiting for game actions to reduce code needed for binding game actions to JavaScript objects

* Apply suggestions from code review

Co-Authored-By: Tulio Leao <tupaschoal@gmail.com>

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2020-04-30 06:56:57 -03:00
Ted John
d0154d08e9 Implement network join / leave hooks 2020-04-28 19:33:30 +01:00
Aaron van Geffen
dd9e579633
Add new OS requirements to changelog.txt 2020-04-28 20:31:35 +02:00
Ted John
2c731273c1
Fix #11494: Old console commands don't work at headless console since plugin system (#11508) 2020-04-27 23:02:38 +02:00
Ted John
ecce4da6e8 Add ipAddress and publicHashKey properties to player API 2020-04-27 20:50:56 +01:00
Ted John
7b9fa972b6 Add addGroup, removeGroup, groups, players API 2020-04-27 18:39:42 +01:00
Ted John
06bbf5ddda
Implement SmallSceneryObject for getObject plugin API (#11489) 2020-04-27 18:41:49 +02:00
Ted John
af625f95c3
Fix two property names in peep plugin documentation (#11487) 2020-04-27 02:23:02 +02:00
Ted John
90f3a9b846 Add dukglue and duktape copyright information 2020-04-26 14:49:21 +01:00
Ted John
b553850307 Add minimum API version information to scripting readme 2020-04-26 14:35:08 +01:00
Ted John
4162ad0eb6 Remove unused getWindow parameter 2020-04-26 14:35:08 +01:00
Ted John
3fe49ca2a3 Apply suggestions from code review
Co-Authored-By: Michał Janiszewski <janisozaur@users.noreply.github.com>
Co-Authored-By: Aaron van Geffen <aaron@aaronweb.net>
Co-Authored-By: Tulio Leao <tupaschoal@gmail.com>
2020-04-26 14:35:08 +01:00
Ted John
c1ab8b0b31 Apply suggestions from code review
Co-Authored-By: Breno Rodrigues Guimarães <brenorg@gmail.com>
2020-04-26 14:35:07 +01:00
Ted John
6cbea2fd37 Change baseZ / clearanceZ to baseHeight / clearanceHeight 2020-04-26 14:35:07 +01:00
Ted John
d480fb8daa Apply suggestions from code review
Co-Authored-By: Tulio Leao <tupaschoal@gmail.com>
Co-Authored-By: Michael Steenbeek <m.o.steenbeek@gmail.com>
2020-04-26 14:35:07 +01:00
Ted John
efbb385bf7 Remove TabbedWindow API
This doesn't exist yet.
2020-04-26 14:35:07 +01:00
Ted John
ea632a8eed Rename thing to entity 2020-04-26 14:35:07 +01:00
Ted John
940cd6db73 Fix type for isChecked in d.ts 2020-04-26 14:35:06 +01:00
Ted John
b9f3886ca8 Implement more footpath APIs 2020-04-26 14:35:06 +01:00
Ted John
76ebef10e3 Add APIs for getting info about loaded objects 2020-04-26 14:35:06 +01:00
Ted John
7a62d55c5f Clean up and remove unused APIs 2020-04-26 14:35:06 +01:00
Ted John
ea8890aaaa Improve shared storage read / write 2020-04-26 14:35:06 +01:00
Ted John
0c71886941 Implement shared storage 2020-04-26 14:35:06 +01:00
Ted John
61da82c711 Add random number generator 2020-04-26 14:35:05 +01:00
Ted John
efcf9fd22a Implement hooking game actions 2020-04-26 14:35:05 +01:00
Ted John
2ad37db817 Implement registering game actions 2020-04-26 14:35:05 +01:00
Ted John
07ed0f5c0e Implement query and execute of game actions 2020-04-26 14:35:05 +01:00
Ted John
971c6e201d Improve some of the map APIs 2020-04-26 14:35:05 +01:00
Ted John
4e12c9541e Implement more tile element APIs 2020-04-26 14:35:05 +01:00
Ted John
82639bae1b Implement more tile element APIs 2020-04-26 14:35:04 +01:00
Ted John
4d5e7f19ca Implement surface style API and improve plugin calling 2020-04-26 14:35:04 +01:00
Ted John
32d72471b8 Add more tile APIs 2020-04-26 14:35:04 +01:00
Ted John
09c8c6d508 Implement window colours API 2020-04-26 14:35:04 +01:00
Ted John
5c1fabec56 Implement API for spinners 2020-04-26 14:35:04 +01:00
Ted John
9dd9e600b5 Implement API for image buttons 2020-04-26 14:35:04 +01:00
Ted John
e6011c891d Add more questions to scripting readme 2020-04-26 14:35:04 +01:00
Ted John
0cf0121f30 Fix API definitions 2020-04-26 14:35:04 +01:00
Ted John
c73bb63f0e Implement window classification and number 2020-04-26 14:35:04 +01:00
Ted John
ae0c2638e3 Distribute openrct2.d.ts and scripting.md 2020-04-26 14:35:03 +01:00
Ted John
08cdb831af Improve readme 2020-04-26 14:35:03 +01:00
Ted John
03e861945a Add scripting readme 2020-04-26 14:35:03 +01:00
Ted John
d670c656ae Add more window APIs 2020-04-26 14:35:02 +01:00
Ted John
057155e5ab Use a function to register plugin rather than return value 2020-04-26 14:35:02 +01:00
Ted John
b93e5b3456 Fix d.ts so it works correctly in TypeScript and GameDate 2020-04-26 14:35:02 +01:00
Ted John
e0f66fe3cd Implement viewport widgets 2020-04-26 14:35:02 +01:00
Ted John
da98ef63d3 Implement checkboxes and disabling widgets 2020-04-26 14:35:02 +01:00
Ted John
a9a67a7a7e Implement group boxes 2020-04-26 14:35:02 +01:00
Ted John
7274e45c93 Implement main viewport API 2020-04-26 14:35:02 +01:00
Ted John
3596480016 Add viewport APIs 2020-04-26 14:35:02 +01:00
Ted John
560be19cdf Implement Ride and RideObject API 2020-04-26 14:35:02 +01:00
Ted John
91043cec51 Add RideObject API 2020-04-26 14:35:01 +01:00
Ted John
ab5bfffde0 Fix tile element scripting 2020-04-26 14:35:01 +01:00
Ted John
4b95a3a9d0 Implement custom menu items 2020-04-26 14:35:01 +01:00
Ted John
a915cb0998 Add more APIs relevant to game actions 2020-04-26 14:35:01 +01:00
Ted John
c8fbc2e529 Improve chat subscription 2020-04-26 14:35:01 +01:00
Ted John
3ac22476c6 Implement basic send message 2020-04-26 14:35:01 +01:00
Ted John
3f58a0d9f8 Implement network mode 2020-04-26 14:35:01 +01:00
Ted John
0a81cabd6d Add more APIs to the plugin schema 2020-04-26 14:35:01 +01:00
Ted John
e6915e8799 Do not load plugins on title screen 2020-04-26 14:35:01 +01:00
Ted John
f9d7237e92 Split peep stuff out of Thing 2020-04-26 14:35:01 +01:00
Ted John
f29e4f3263 Add storage APIs 2020-04-26 14:35:01 +01:00
Ted John
098348d3c3 Add hooking for chat message 2020-04-26 14:35:01 +01:00
Ted John
082eaf7c9c Add more network API 2020-04-26 14:35:00 +01:00
Ted John
5d78a1f2bf Add initial network API 2020-04-26 14:35:00 +01:00
Hielke Morsink
e8468e71bb Update typescript definition 2020-04-26 14:35:00 +01:00
Hielke Morsink
d7123834df Expose more footpath and footpath-adition properties 2020-04-26 14:35:00 +01:00
Hielke Morsink
9b2ed0d641 Expose properties for path scenery 2020-04-26 14:35:00 +01:00
Hielke Morsink
6e45c23833 Update TrueScript definition file to match the properties 2020-04-26 14:35:00 +01:00
Ted John
918022da3e Get custom buttons working 2020-04-26 14:34:59 +01:00
Ted John
291143c3cd Add opening of a custom window 2020-04-26 14:34:59 +01:00
Ted John
237e0be7ef Add basic window API 2020-04-26 14:34:59 +01:00
Ted John
5697bcf0bd Add basic map and thing support 2020-04-26 14:34:59 +01:00
Ted John
4a575975f6 Add hook system 2020-04-26 14:34:59 +01:00
Ted John
1ae9e531ce Update plugin definition file 2020-04-26 14:34:59 +01:00
Ted John
27a8597214 Add scripting API definition file 2020-04-26 14:34:58 +01:00
Fred-1044276
a3e7f0958c
Allow Air Powered Vertical Coaster without complete circuit
This changes the Air Powered Vertical Coaster so that it can be tested and opened without the need for a complete circuit (mirroring RCT1 and RCT3 behaviour). There appears to be no technical reason for RCT2's requirement for having a complete circuit.
2020-04-26 11:25:08 +02:00
Breno Rodrigues Guimarães
ab53ddf59f Avoid fast-forwarding peep into the ride
The code being removed in the patch tries to fast forward a peep into the ride when it is the second peep for a vehicle that is used in pairs. Problem is that funds checking does not happen, so it happens that a peep may pay against its will.
Lets say a rich peep enters in line and a poor peep enters in line right after.
If the price of the ride is such that the rich peep can pay and the poor peep can't, it will be dragged into the ride because funds checking only happened for the first.
The second part of the patch just adjusts we consider the vehicle a full car if the second position is filled.

Add test to verify that a peep is not dragged into a ride it can't pay

This test puts two peeps in a Ferris Wheel. The first peep is rich and the second peep is poor. When they are both in line, the ride price is raised so that the poor peep can't pay.
Make sure the poor peep turns back and leaves the ride.

During development, a mistake in the logic would have broken all rides other than ferris wheels in a way that multiple guests could enter the same car.
Also add a test to make sure that is never broken.
2020-04-25 18:27:33 -03:00
Kevin Strehl
5456899afc
Close #10572: Add cheat to allow building at invalid heights 2020-04-25 01:07:36 +02:00
WantDiscussion
37e9270c00
Close #6024: Closing object selection now advances to next step
In the scenario editor and track designer X button in object selector
will now close the object selector window and advance to the next stage
instead of closing the scenario editor and track editor entirely and
returning to the main menu.

Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com>
2020-04-24 17:19:06 +02:00
Michael Steenbeek
baf6f1587a
Add #11390 to changelog 2020-04-24 13:27:25 +02:00
Michael Steenbeek
144d312ead
Fix RCT1 import importing too many vehicle types (#11419) 2020-04-24 04:00:41 +02:00
ifimfree
aaaae16d15
Close #11209: Show a warning when the user is running OpenRCT2 in Wine (#11395) 2020-04-23 19:12:54 +02:00
Michael Steenbeek
092b9c0086
Update changelog for #11405
[skip-ci]
2020-04-23 14:51:02 +02:00
Olivier Wervers
3830347294
Switch tile inspector copy paste button placement (#11358) 2020-04-19 22:41:45 +02:00
Gymnasiast
860924dfb0
Fix #1148: Research funding dropdown not shown in finances window 2020-04-19 14:29:56 +02:00
Ted John
b9e85f6b90
Fix #11259: Custom JSON object breaks saves (#11356)
Do not attempt to pack JSON objects into S6 files.
2020-04-19 14:18:12 +02:00
Michael Steenbeek
d17b4606f3
Fix changelog entry for #11306 2020-04-19 12:24:13 +02:00
frutiemax
d3b702603d
Fix #10483: Changing footpath type won't remove the elements on it. (#11306)
Changing footpath type for an existing footpath does not remove elements on it, such as benches, lamps, etc. Also handles changes from and to queue paths properly.

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
Co-authored-by: Michał Janiszewski <janisozaur@gmail.com>
2020-04-19 07:11:15 -03:00
Tulio Leao
e2be89648e
Fix #6119: Advertising campaign for ride window not updated properly (#11335) 2020-04-18 16:15:04 +02:00
Olivier Wervers
b71062ce1b
Fix #6530: Make land tools work consistently on park borders (#11181)
Makes all land tools behave the same
2020-04-18 08:19:03 -03:00
Olivier Wervers
bb72fd6021
Fix #9029: Set animation frame on doors using the tile inspector (#11206) 2020-04-18 07:43:46 -03:00
Gymnasiast
a295f3c003 Fix #11315: Never opened ride shown as favourite ride of 74 guests 2020-04-18 07:39:24 +01:00
Olivier Wervers
506b06bd73
Fix #11072: Land and water tools work out of bounds (#11179)
Tool tried to act out of bounds, where it shouldn't do anything
2020-04-17 19:34:32 -03:00
Aaron van Geffen
9ed74d2ccd Amend changelog. 2020-04-17 18:35:21 +02:00
Gymnasiast
dd935c4114
Start v0.2.6+1 2020-04-17 16:51:34 +02:00
Gymnasiast
6c3c857dfa
Release v0.2.6
- Feature: [#10925] Show hovered values on finance charts.
- Feature: [#11013] Ctrl+C copies input dialog text to clipboard.
- Feature: [#11218] load_park command for console
- Feature: [#11272] Option for toggling notifications for 'Ride casualties' and 'Stuck or stalled vehicles'.
- Feature: [#11281] add_news_item command for console
- Feature: [#11300] Add powered launch and reverse incline launched shuttle mode to the Stand-Up Roller Coaster (for RCT1 parity).
- Fix: [#475] Water sides drawn incorrectly (original bug).
- Fix: [#6123, #7907, #9472, #11028] Cannot build some track designs with 4 stations (original bug).
- Fix: [#6238] Invalid tile elem iteration in Guest::UpdateUsingBin
- Fix: [#7094] Back wall edge texture in water missing.
- Fix: [#9719] Hacked walls in RCT1 saves are imported incorrectly.
- Fix: [#10372, #10509, #10806] Lift base sections incorrectly exporting, causing various lift related bugs.
- Fix: [#10928] File browser's date column is too narrow.
- Fix: [#10951, #11160] Attempting to place park entrances creates ghost entrances in random locations.
- Fix: [#11005] Company value overflows.
- Fix: [#11027] Third color on walls becomes black when saving.
- Fix: [#11063] Scrolling position persists when switching tabs in the scenery window.
- Fix: [#11106] Crash on getting invalid vehicle index.
- Fix: [#11126] Cannot place Frightmare track design.
- Fix: [#11208] Cannot export parks with RCT2 DLC objects.
- Fix: [#11230] Seat Rotation not imported correctly for hacked rides.
- Fix: [#11225] Replay manager cannot handle track designs.
- Fix: [#11246] Fix Various Import/Export issues with Boat locations, balloon frame number.
- Fix: [#11258] Properly remove format codes from imported strings.
- Fix: [#11286] Fix banner tooltip colour.
- Fix: Small red gardens in RCT1 saves are imported in the wrong colour.
- Improved: [#11157] Slimmer virtual floor lines.
2020-04-17 16:13:30 +02:00
Gymnasiast
f2c153a67e
changelog.md: form fixes 2020-04-17 14:55:21 +02:00
Duncan
4a81219521
Merge pull request #11291 from brenoguim/fix_banner_string_coloring
Fix coloring of Banners on tooltip
2020-04-16 22:27:27 +01:00
Duncan
92449773c5
Fix #11106: Crash on getting invalid vehicle index (#11305)
* Fix #11106: Fix crash on bad value prev_vehicle

This allows Thorpe Park to be loaded again. This is ultimately not a great fix. In the future it should be made so that the vehicle pointers are validated on load to ensure there are no loops or bad values.
2020-04-16 18:24:07 -03:00
Michał Janiszewski
d8994920f8
Add #11218, #11281 to changelog (#11307) 2020-04-16 21:55:53 +02:00
Aaron van Geffen
a81488d704
Fix #11272: Make casualty and stalled vehicle notifications optional 2020-04-16 14:41:39 +02:00
Fred-1044276
a80905e30d
Implement #11300: Add RCT1 operating modes to Stand-up Roller Coaster 2020-04-16 13:12:43 +02:00
Breno Guimaraes
347c402984 Fix #11286: Fix coloring of banners on tooltip
This patch moves the function that adds coloring to the buffer text into the Buffer struct with a flag.
It also changes both Banner printing and Banner tooltip to use the colored version
2020-04-16 08:06:07 -03:00
Breno Rodrigues Guimarães
174a480870
Use utf8_remove_format_codes to remove format codes from user strings (#11289)
The previous code used RCT12::RemoveFormatCodes to remove format codes from RCT strings. But that function uses utf8 methods to identify format codes. In this new version, rct2_to_utf8 is called first to obtain an utf8 string, and then utf8_remove_format_codes can be used.
2020-04-15 07:17:43 +02:00
duncanspumpkin
b01e9381f7 Update network version. Add changelog entry 2020-04-11 09:07:02 +01:00
Michał Janiszewski
a197e529e8
Fix #6238: Invalid tile elem iteration in Guest::UpdateUsingBin (#11248) 2020-04-08 01:03:02 +02:00
Michał Janiszewski
2851f8654b
Update changelog.txt 2020-04-07 21:50:08 +02:00
Hielke Morsink
81d7988f00
Update readme for Discord (#11235)
* Update readme for Discord

This removes the remaining references to Gitter and adds invite links to the relevant Discord channels instead, as well as fixing a few typos.
2020-04-06 08:43:03 +02:00
Duncan
53b948299a
Merge pull request #11226 from duncanspumpkin/fix_trackdesign
Fix track design replays.
2020-04-05 13:08:27 +01:00
Michael Steenbeek
8a12ad8f6b
Fix #9719: Hacked walls in RCT1 saves are imported incorrectly (#11222) 2020-04-05 13:49:36 +02:00
duncanspumpkin
de7051d940 Fix #11225: Track design replays.
The replay state was not being passed to all sub actions this prevented the replay from working. Note replays made before this still work its just they couldn't be replayed.

name the flag

Update changelog
2020-04-05 12:48:42 +01:00
Gymnasiast
cfdc8567f7
Fix #11230: Seat Rotation not imported correctly for hacked rides 2020-04-05 12:29:07 +02:00
Michael Steenbeek
13a2f67400
Fix #11208: Cannot export parks with RCT2 DLC objects (#11212)
* Do not try to export official objects

* Do not override legacy object's source games

* Amend changelog
2020-04-04 07:06:34 +01:00
Michael Steenbeek
87dd126e2a
Fix small red gardens getting imported incorrectly from S4 (#11215) 2020-04-03 19:55:39 +02:00
Michael Steenbeek
1e70c4806e
Fix #11126: Cannot place Frightmare track design (#11186) 2020-04-01 17:37:09 +02:00
jeysbach
e9611ffaff
Fix #11063: Exchange hack for call to update_scroll (#11178) 2020-03-31 16:03:14 +02:00
Michael Steenbeek
41bf6def69
Fix #10951, #11160: Placing park entrances creates bugged ghosts (#11180) 2020-03-31 13:47:37 +01:00
Aaron van Geffen
e6dadaab66
Merge pull request #10953 from AaronVanGeffen/fix/10928
Fix #10928: File browser's date column is too narrow
2020-03-30 23:00:57 +02:00
Olivier Wervers
26546448e1
Improvement: Slimmer virtual floor lines 2020-03-30 22:45:39 +02:00
Aaron van Geffen
484956e006 Fix #10928: File browser's date column is too narrow. 2020-03-30 22:42:58 +02:00
Peter Ryszkiewicz
fa1ddbd9e3
Show hovered values on finance charts (#10925) 2020-03-28 11:03:10 +01:00
Thijs Versfelt
3613c660a0
Fix #11005: Company value overflows (#11012)
* Clamp park value to prevent integer overflow.

* Replace casting with built-in clamping.

* Add changlog entry for #11005.

* Modify casting to prevent skewed company value.

* Increment network version

Co-authored-by: Michał Janiszewski <janisozaur@gmail.com>
2020-03-27 13:25:16 +01:00
Gymnasiast
905ba0c47b
Fix #475: GFX water sides drawn incorrectly 2020-03-26 20:01:25 +01:00
Gymnasiast
aeb1b32078
Fix #7094: Back wall edge texture in water missing 2020-03-26 20:00:53 +01:00
Daan de Heij
9035ba2827
Simple implementation of copy input to clipboard (Ctrl+C) (#11013)
This is a simple implementation of copying all current input text to the clipboard using ctrl+c. A simple dialog acknowledges that text is copied. This commit includes a new string ID for the text in this dialog.
2020-03-26 17:53:34 +01:00
Tulio Leao
8373fe6f7b
Update changelog to state fix of original bug (#11031) (#11035) 2020-03-25 18:42:56 +01:00
Michael Steenbeek
3f473ec3f0
Fix #6123: Cannot build some track designs with 4 stations (#11031) 2020-03-25 14:20:29 +01:00
Michael Steenbeek
766339d771
Fix #11027: Third color on walls becomes black when saving (#11029) 2020-03-25 13:57:15 +01:00
Michał Janiszewski
164a7750f1 Start v0.2.5+ 2020-03-24 22:32:54 +01:00
Michał Janiszewski
4f6e77e30a Release 0.2.5
- Feature: [#3154] Use a random title sequence each time it is shown.
- Feature: [#6553] Android version now runs in full screen.
- Feature: [#7865] Transport rides can now be synchronised.
- Feature: [#9073] Shortcut keys for the Tile Inspector.
- Feature: [#10305] Add two shortcuts for increasing and decreasing the scaling factor.
- Feature: [#10189] Make Track Designs work in multiplayer.
- Feature: [#10357] Added window for scenery scatter tool, allowing for area and density selection.
- Feature: [#10637] Console command to remove all floating objects.
- Change: [#1164] Use available translations for shortcut key bindings.
- Change: [#10997] Speed is automatically reset to normal upon scenario completion.
- Fix: [#2485] Hide Vertical Faces not applied to the edges of water.
- Fix: [#5249] No collision detection when building ride entrance at heights > 85.5m.
- Fix: [#6766] Changelog window doesn't open on some platforms.
- Fix: [#7784] Vehicle tab takes 1st car colour instead of tab_vehicle's colour.
- Fix: [#7854] Cannot build a custom spiral roller coaster design.
- Fix: [#7854] Empty entries in spiral roller coaster designs list.
- Fix: [#8151] Game freezes upon demolishing mazes at odd heights.
- Fix: [#8875] RCT1 competition scenarios are classified incorrectly.
- Fix: [#10176] Mistake in the sprite for the land tool's 6x6 grid.
- Fix: [#10196] Doors unable to be placed at end of track corners.
- Fix: [#10228] Can't import RCT1 Deluxe from Steam.
- Fix: [#10313] Path furniture can be placed on level crossings.
- Fix: [#10325] Crash when banners have no text.
- Fix: [#10376] No ratings generated when a shop and track intersect.
- Fix: [#10420] Money effect causing false positive desync.
- Fix: [#10477] Large Scenery cannot be placed higher using SHIFT.
- Fix: [#10489] Hosts last player action not being synchronized.
- Fix: [#10543] Secondary shop item prices are not imported correctly from RCT1 saves.
- Fix: [#10547] RCT1 parks have too many rides available.
- Fix: [#10587] Update last action coordinates on correct player.
- Fix: [#10631] Game bugs out and crashes if you get too many stations via copying stations with the tile inspector.
- Fix: [#10662] Duck cheat tooltips look odd and do not explain anything.
- Fix: [#10694] The lift hill speed of the flying roller coaster cannot be changed (original bug).
- Fix: [#10705] Apply multithreaded rendering to all viewports.
- Fix: [#10739] Mountain tool overlay for even-numbered selections.
- Fix: [#10752] Mute button state not correctly set at startup.
- Fix: [#10822] Can place too many peep spawns.
- Fix: [#10898] Banner text has an offset in tile inspector window.
- Fix: [#10904] RCT1/LL-scenarios with red water won't open.
- Fix: [#10941] The Clear Scenery tool gives refunds for ghost elements.
- Fix: [#10963] Light effects are drawn off-centre in some rotations.
- Fix: [#10993] Bottom toolbar not refreshing when a guest leaves the park.
- Fix: [#11001] Rides list does not use natural sorting.
- Fix: [objects#54] Stage Coach cars are not considered covered by the game.
- Fix: [objects#56] Handymen cut grass incorrectly.
- Improved: [#682] The staff patrol area is now drawn on the water, instead of on the surface under water.
- Improved: [#10858] Added horizontal grid lines to finance charts.
- Improved: [#10884] Added y-axes and labels to park window charts.
- Improved: [#10970] Introduced optional light effects for vehicles at night.
- Removed: [#6898] LOADMM and LOADRCT1 title sequence commands (use LOADSC instead).
2020-03-24 21:46:30 +01:00
Daan de Heij
3dc0110fe1
Fix #10993: Guest Count Intent Not Listened To (#11008)
* Fix #10993: Guest Count Intent Not Listened To

Because of a missing intent case, the guest count did not redraw whenever a guest leaves.

* Update changelog.

Co-authored-by: Aaron van Geffen <aaron@aaronweb.net>
2020-03-24 18:35:00 +00:00
Michael Steenbeek
82e5ceb30d
Update objects to v1.0.13 (#11011) 2020-03-24 15:37:54 +01:00
Hielke Morsink
cb5bae1988
Consistent use of periods in changelog (#11009) 2020-03-24 00:06:57 +01:00
Tulio Leao
3e2533ac50
Fix #11001: Rides list does not use natural sorting (#11007) 2020-03-23 22:33:57 +01:00
Aaron van Geffen
a2f8e8c72b
Automatically reset speed to normal upon scenario completion. (#10998) 2020-03-22 23:22:28 +01:00
Gymnasiast
0f8fec1413
Fix #10631: Assertion fails when modifying copied station pieces 2020-03-21 18:43:34 +01:00
Gymnasiast
e433ed7d7c
Fix #8151: Game freezes upon demolishing mazes at odd heights
Co-Authored-By: Felix Pelletier <felixpelletier@users.noreply.github.com>
2020-03-20 16:06:12 +01:00
WantDiscussion
828eef7411
Introduced optional light effects for vehicles at night. (#10970) 2020-03-20 11:47:31 +01:00
WantDiscussion
d6c7aaf69c
Fix: Light effects are drawn off-centre in some rotations 2020-03-18 15:04:57 +01:00
Aaron van Geffen
a56a3fb804
Fix #6766: Changelog window won't open (#10954) 2020-03-17 21:38:15 +01:00
Michael Steenbeek
fd2e3f7b08
Add #10637 to changelog 2020-03-16 09:49:39 +01:00
Michael Steenbeek
e32518208f
Fix Clear Scenery refunding ghost tile elements (#10941) 2020-03-15 23:26:32 +01:00
Aaron van Geffen
dfe1c8dea8 Use COMMA32 instead of UINT16 for future-proofing; amend changelog. 2020-03-11 19:25:32 +01:00
Michael Steenbeek
8113c89f9b
Fix #10904: RCT1/LL-scenarios with red water won't open (#10905)
Co-authored-by: Ted John <ted@brambles.org>
2020-03-11 19:21:02 +01:00
Hielke Morsink
8737d3c2f0
Fix #10898: banner text has an offset in tile inspector window (#10900)
Interesting how this only gets reported now, it has been broken for 8 months already. It's likely a copy-paste error from 61d64ab8c5.
2020-03-08 23:02:55 +01:00
Michael Steenbeek
60f768e966
Fix #10822: Can place too many peep spawns (#10889) 2020-03-08 21:17:41 +01:00
Michael Steenbeek
425b05d011
Add #10662 to changelog 2020-03-04 11:20:33 +01:00
Peter Ryszkiewicz
e322519025
Added horizontal grid lines to finance charts (#10851)
Co-authored-by: Aaron van Geffen <aaron@aaronweb.net>
2020-03-02 21:59:05 +01:00
ζeh Matt
b86854a259
Fix #10587: Update last action coordinates on correct player (#10845) 2020-02-28 16:23:41 +01:00
Michael Steenbeek
938f2a891f
Implement #682: Staff patrol area now drawn on the water (#10830) 2020-02-24 13:47:28 +01:00
pizza2004
57605f36e3
Fix #2485: Hide Vertical Faces not applied to water 2020-02-23 21:32:57 +01:00
Michael Steenbeek
4c2a0f279b
Fix #10752: Mute button state not correctly set at startup (#10816) 2020-02-22 19:20:14 +01:00
Michael Steenbeek
86c7dbf1d5
Fix #7854: Cannot build custom Spiral RC; dummy entries in track designs list (#10814) 2020-02-22 19:06:57 +01:00
Michael Steenbeek
e16a53df1d
Fix #10694: Lift hill speed of the Flying RC cannot be changed 2020-02-22 18:47:33 +01:00
Aaron van Geffen
71bd161143 Add changelog entry for scenery scatter tool. 2020-02-22 17:25:30 +01:00
Aaron van Geffen
ae814571df Add changelog entry for #10739. 2020-02-19 11:25:15 +01:00
Aaron van Geffen
dd869c8c0a
Fix #10176: Mistake in sprite for the land tool's 6x6 grid. (#10735) 2020-02-19 09:45:00 +01:00
Ted John
a8b5304786
Remove exe / com wrapper around openrct2.dll for Windows (#10727)
We get repeated reports of people saying the game is incorrectly reported as a virus. It is becoming more inconvenient for players and even myself, because when we attempt to download a build, it is immediately deleted by scanners (including the default for Windows: Windows Defender).

One scanner is not too much of an issue, but the game is flagged by almost half of available scanners as reported by VirusTotal.

So why is it being flagged?

Windows has a very annoying concept, the subsystem for a binary. The console subsystem allows stdin / stdout as you would expect, just like posix. Unfortunately if a user runs a console subsystem binary from the desktop or explorer, the game will be opened under conhost and thus you get a console showing alongside the game window. This is not a good user experience for most players. To resolve this, you can use the windows subsystem, but this will detach stdin and stdout immediately on launch. There are hacks that can be done in code to allocate a new console but I found this to not work very well with stdin or other terminal emulators.

My solution to the problem was to have two binaries: openrct2.exe and openrct2.com. Both are executable but openrct2.exe is windows subsystem, openrct2.com is console subsystem. The desktop shortcut opens openrct2.exe with no console window showing. Typing openrct2 on the command line will execute openrct2.com (as .com has higher PATH precedence than .exe by default) with working stdin and stdout. In order to reduce the size, I have the entire game inside openrct2.dll and then supply two tiny wrapper EXEs that simply route main(...) into the DLL.

These wrapper EXEs are the problem, they are very small and do nothing but call into a DLL, this must match virus signatures too closely and their size probably reduces the data available for the scanner to analyse.

So as I can not find any other way of achieving my goal of a cli and gui version of OpenRCT2, this changes the build to publish openrct2 as a single executable (rather than a DLL + wrapper EXE), and then duplicate the entire ~10MB exe again and flip the subsystem flag. The installer and zip size won't be affected as this extra size will be completely compressed out, but when unpacked will lead to an extra ~10MB on disc. But I think it is a fair compromise.

VirusTotal now reports all artefacts as safe, for now anyway.
2020-02-18 11:35:27 +00:00
Matt
3d16b6c538
Update changelog.txt 2020-02-16 14:06:16 +01:00
aw20368
c76378bc8b Fix #8064 Ride construction errors shown as (undefined string)
The search for height to build track ended at a half-height, leading to (undefined string) error. Changed to always end at whole height and search as high as possible.
2020-02-10 21:54:26 -03:00
Gymnasiast
afab401660
Add #6553 to changelog 2020-02-08 10:09:12 +01:00
Duncan
661be85193
Fix #10196: Cannot place doors at end of track corners (#10663) 2020-02-08 00:02:33 +01:00
Ted John
519ea1c8c3 Fix #10376: No ratings generated when a shop and track intersect (#10387) 2020-01-25 23:09:58 +01:00
Aaron van Geffen
5cf7618610 Update changelog. 2020-01-22 11:41:34 +01:00
Michael Steenbeek
4781ee3176
Add #9073 to changelog [ci skip] 2020-01-21 22:51:46 +01:00
Michael Steenbeek
0f306d6f5c
Fix #10547: RCT1 parks have too many rides available (#10556) 2020-01-13 19:23:05 +01:00
Michael Steenbeek
3fc5f75eb8
Fix #8875: RCT1 competition scenarios are classified incorrectly (#10548) 2020-01-12 14:29:02 +01:00
Michael Steenbeek
d7f23bc5bf
Close #6898: Remove LOADMM and LOADRCT1 commands (#10546) 2020-01-12 14:26:33 +01:00
Michael Steenbeek
f05aeb1fcd
Fix #7784: Vehicle tab takes 1st car colour instead of tab_vehicle's colour (#10544) 2020-01-12 10:32:11 +01:00
Michael Steenbeek
5e5752d49d
Fix secondary prices being imported incorrectly from SV4 (#10543)
An oversight that has been present since the very first version of the SV4 import code.
2020-01-11 23:27:01 +01:00
Michael Steenbeek
08ab15ef36
Fix #10313: Path furniture can be placed on level crossings 2020-01-05 17:59:02 +01:00
Matt
0807bd4d89
Update changelog.txt 2019-12-31 10:35:00 +01:00
Duncan
c74339fed9 Fix #10477. Fix upper max height limit being very low for large scenery
Mistake made while improving mouse control when zoomed out caused the upper limit for multi tile scenery to be limited by the sum of all clearance z values instead of the greatest clearance z value.
2019-12-31 09:15:46 +01:00
Michael Steenbeek
9de8fa233f
Fix #5249: No collision detection when building ride entrance at heights > 85.5m (#10473) 2019-12-30 14:01:36 +01:00
Matt
3a3367f179
[ci skip] Update changelog.txt 2019-12-22 07:50:55 +01:00
duncanspumpkin
d4e15d7238 Update changelog 2019-12-15 08:23:21 +00:00
frutiemax
18ba9b27a3 Implement #7865: Allow transport rides to synchronise with adjacent stations (#10280) 2019-12-14 09:58:00 +01:00
Abd Narane
1ace96ccc4 Add shortcuts for changing the scaling value. (#10341)
Fixes #10305
2019-12-13 17:31:23 +01:00
ζeh Matt
ab5be44ccb Fix #10325: Crash when banners have no text (#10327)
* Fix #10325: Crash when banners have no text

* Update changelog.txt
2019-12-04 11:22:07 +01:00
Ted John
f7a8f5a0c7 Fix #10228: Can't import RCT1 Deluxe from Steam (#10260)
Use size of buffer rather than the size of a pointer which would always return 4 or 8 for the buffer size.
2019-11-18 10:05:16 +01:00
ζeh Matt
7744fc71e4 Fix #10256: Desync because of client advancing ahead of server ticks during map change (#10257) 2019-11-17 23:26:32 +01:00
ζeh Matt
5606b4895b Fix desync because of ride status (#10227) 2019-11-16 16:12:33 +01:00
Aaron van Geffen
71699543dd Remove obsolete key label strings; update changelog. 2019-11-01 21:14:01 +01:00
Michał Janiszewski
9836293305 Start v0.2.4+ 2019-10-28 23:33:20 +01:00
Michał Janiszewski
d645338752 Release 0.2.4
- Feature: [#9285] Remember current group in scenario list window.
- Feature: [#9918] Increase image list capacity by about 100k units.
- Change: [#1349] Increase the number of ride music played simultaneously from 2 to 32.
- Fix: [#4927] Giant screenshot cut off at bottom and top.
- Fix: [#7572] Queue paths connect to regular paths through fences.
- Fix: [#7690] Problem with guests freezing on certain tiles of path.
- Fix: [#7883] Headless server log is stored incorrectly if server name contains CJK in Ubuntu
- Fix: [#8136] Excessive lateral G penalty is too excessive.
- Fix: [#8584] Duck spawning function does not check tiles with x or y coordinate of 0..64 (Original bug)
- Fix: [#9179] Crash when modifying a ride occasionally.
- Fix: [#9533] Door sounds not playing.
- Fix: [#9574] Text overflow in scenario objective window when using CJK languages.
- Fix: [#9603] Don't render audio when master volume is turned off.
- Fix: [#9625] Show correct cost in scenery selection.
- Fix: [#9669] The tile inspector shortcut key does not work with debugging tools disabled.
- Fix: [#9675] Guest entry point limit can be bypassed in scenario editor.
- Fix: [#9683] Cannot raise water level if part of the tool's area of effect is off of the map.
- Fix: [#9684] Entering custom size for water/land tool allows confirmation with main enter key, but not numpad enter key.
- Fix: [#9690] The keyboard shortcut for rotating the game view can be set to Enter or KP Enter, but not both.
- Fix: [#9717] Scroll bars do not render correctly when using OpenGL renderer.
- Fix: [#9729] Peeps do not take into account height difference when deciding to pathfind to a ride entrance (original bug).
- Fix: [#9902] Doors/Portcullis do not check to make sure doors are open causing double opens.
- Fix: [#9926] Africa - Oasis park has wrong peep spawn (original bug).
- Fix: [#9953] Crash when hacked rides attempt to find the closest mechanic.
- Fix: [#9955] Resizing map in while pause mode does not work and may result in freezes.
- Fix: [#9957] When using 'no money' cheat, guests complain of running out of cash.
- Fix: [#9970] Wait for quarter load fails.
- Fix: [#9994] Game action tick collision during server connect and map load.
- Fix: [#10017] Ghost elements influencing ride excitement.
- Fix: [#10036] Do not allocate large chunks of memory for save file classification.
- Fix: [#10106] Ride circuits should not be used for modes that do not support it.
- Fix: [#10149] Desync in headless mode with rides that create smoke particles.
- Improved: [#9466] Add the rain weather effect to the OpenGL renderer.
- Improved: [#9987] Minimum load rounding.
- Improved: [#10125] Better support for high DPI screens.
2019-10-28 21:18:47 +01:00
ζeh Matt
040a0e58aa Fix desync in headless mode with rides that create smoke particles 2019-10-27 16:55:34 +01:00
Tom Lankhorst
6eea943083 Pass SDL_WINDOW_ALLOW_HIGHDPI to SDL_CreateWindow (#10125) 2019-10-21 22:36:05 +02:00
Tulio Leao
9d468167e4 Fix #10106: Reset number of circuits if unsupported
Closes #10106
2019-10-18 18:06:51 -03:00
Denis Khabenkov
6632b979d7 Fix #9684 and #9690: Enter and keypad enter are treated as different keys
* Remapped keypad Enter to return scancode

Fix #9684: Entering custom size for water/land tool allows confirmation
with main enter key, but not numpad enter key

Fix #9690: The keyboard shortcut for rotating the game view can be set
to Enter or KP Enter, but not both

* Add changelog entry
2019-10-18 10:40:07 +02:00
Matt
e149b8c051
Update changelog.txt 2019-10-05 13:14:21 +02:00
ζeh Matt
e4a2b1f9c5 Fix #9953: Crash when hacked rides attempt to find the closest mechanic 2019-10-03 23:08:40 +02:00
Gymnasiast
d5866e1d14
Update changelog [ci skip] 2019-10-03 22:27:19 +02:00
ζeh Matt
a39bd39268 Fix #10036: Do not allocate large chunks of memory for save file classification (#10040) 2019-10-03 17:36:58 +02:00
ζeh Matt
0b95dcd0d0 Fix #8584: Duck spawn search now uses entire map (#9743) 2019-10-02 22:14:56 +02:00
aw20368
ff1698bcb9 Improve #9987: Minimum load rounding (#9987)
Refactor code for vehicles waiting for a specific load level.
Original code rounded the target load down, changed to round up.
2019-09-28 20:51:13 +02:00
ζeh Matt
b2a42de579 Fix ghost elements influencing ride excitement 2019-09-23 22:36:51 +02:00
Gymnasiast
856075a781
Bump network version and amend changelog 2019-09-22 23:07:57 +02:00
gill984
565ad3798d Fix #9957: Guests complain about running out of money in no money parks 2019-09-22 16:52:53 +02:00
Joseph Atkins-Turkish
2e5f46fcf1 Fix raise/lowering water at edge of map (#9979) 2019-09-22 14:13:52 +02:00
Joseph Atkins-Turkish
747e00512d Fix #7572: Queue paths connect to regular paths through fences 2019-09-18 23:31:29 +02:00
Michael Steenbeek
ce41b8f793
Add #9902 to changelog [ci skip] 2019-09-18 23:27:31 +02:00
Joseph Atkins-Turkish
6b21aac4ea Fix #9675: Inconsistent number of guest entry points (#9990) 2019-09-15 18:57:21 +02:00
Matt
787979cfe9
[ci skip] Update changelog.txt 2019-08-25 18:15:37 +02:00
Aaron van Geffen
0e795b376f Update changelog for #9285, #9918. [ci skip] 2019-08-23 23:04:36 +02:00
Hielke Morsink
371f1fd016 Fix #9926: Africa - Oasis park has wrong peep spawn (#9927) 2019-08-23 21:54:54 +02:00
r0
9f6a944174 Fix #9603: Don't render audio when master volume is turned off (#9907) 2019-08-21 23:36:07 +02:00
Ted John
f4079434dc Fix #4927: Giant screenshot cut off at bottom and top 2019-08-21 20:11:06 +01:00
Gymnasiast
1f4d721a2b
Update changelog [ci skip] 2019-08-18 12:05:26 +02:00
Ted John
7fd4fd0c2a
Fix #9179: Crash when modifying a ride occasionally (#9756)
Add lots of nullptr and tile element checks in the ride_modify call chain.
2019-08-08 12:59:06 +01:00
duncanspumpkin
ad06491d21 Abstract the common score generator 2019-08-07 20:35:20 +01:00
duncanspumpkin
8ba5b43636 Fix #9729. Change peep pathfinding to take entrance height into account
When choosing which entrance to head to peeps would not take into account the height difference between the locations. This caused peeps to choose badly especially when useing lift transport rides.
2019-08-06 21:28:34 +01:00
Michael Steenbeek
073e4b0ccc
Fix #7690: Problem with guests freezing on certain tiles of path (#9723) 2019-08-04 17:19:40 +02:00
Ted John
a8f4db7b4b Fix #9717: Scroll bars do not render correctly when using OpenGL renderer 2019-08-03 11:02:44 +01:00
Duncan
77f1905271
Fix #8136. Fix incorrect calculation of excessive lateral G penalty. (#9667)
* Fix #8136. Fix incorrect calculation of excessive lateral G penalty.

This penalty had been modified for OpenRCT2 moving it from before certain other penalties were applied to after. The move accidently removed the ride type multiplier which caused a very large penalty to be applied. In addition the excitement penalty applied to the whole calculation instead of just the gforce bonus. This caused an excessive penalty to the excitement.

* Add changelog entry. Fix default initilisation.

* Increment network version
2019-07-29 19:35:04 +01:00
Aaron van Geffen
5066ebebf9
Fix #9574: Text overflow in scenario objective window. 2019-07-29 15:16:36 +02:00
Hielke Morsink
3ac43114a6 Fix: tile inspector hotkey does not work with debugging tools disabled (#9669)
* Fix: tile inspector hotkey does not work with debugging tools disabled

* Update changelog
2019-07-28 16:55:11 +02:00
Duncan
75e0757ee9
Merge pull request #9632 from ZehMatt/fix-9625
Fix #9625: Show correct cost in scenery selection
2019-07-26 07:12:57 +01:00
Michael Steenbeek
e5ed5568a8
Remove conversion from UTF-8 to widechar and back again (#9637) 2019-07-24 21:56:49 +02:00
Matt
126226dbe3
Fix #9625: Show correct cost in scenery selection 2019-07-23 18:03:26 +02:00
Matt
5e79c65d47
[ci skip] Update changelog.txt 2019-07-18 20:55:23 +02:00
Aaron van Geffen
57347d5710 Start v0.2.3+ [ci skip] 2019-07-10 23:44:41 +02:00
Aaron van Geffen
ac7a1ebf71 Release v0.2.3.
- Feature: [#485] Rides can now be simulated with ghost trains during construction.
- Feature: [#1260] Option for making giant screenshots have a transparent background.
- Feature: [#2339] Find local servers automatically when fetching servers.
- Feature: [#7296] Allow assigning a keyboard shortcut for the scenery picker.
- Feature: [#8029] Add the Hungarian Forint (HUF) to the list of available currencies.
- Feature: [#8481] Multi-threaded rendering.
- Feature: [#8558] Guest debugging tab.
- Feature: [#8659] Banner and sign texts are now shown in tooltips.
- Feature: [#8687] New multiplayer toolbar icon showing network status with reconnect option.
- Feature: [#8791] Improved tile element flag manipulation in Tile Inspector.
- Feature: [#8919] Allow setting ride price from console.
- Feature: [#8963] Add missing Czech letters to sprite font, use sprite font for Czech.
- Feature: [#9154] Change map toolbar icon with current viewport rotation.
- Change: [#7877] Files are now sorted in logical rather than dictionary order.
- Change: [#8427] Ghost elements now show up as white on the mini-map.
- Change: [#8688] Move common actions from debug menu into cheats menu.
- Change: [#9428] Increase maximum height of the Hypercoaster to RCT1 limits.
- Fix: [#2294] Clients crashing the server with invalid object selection.
- Fix: [#4568, #5896] Incorrect fences removed when building a tracked ride through
- Fix: [#5103] OpenGL: ride track preview not rendered.
- Fix: [#5889] Giant screenshot does not work while using OpenGL renderer.
- Fix: [#5579] Network desync immediately after connecting.
- Fix: [#5893] Looking at guest window tabs other than the main tab eventually causes assertion.
- Fix: [#5905] Urban Park merry-go-round has entrance and exit swapped (original bug).
- Fix: [#6006] Objects higher than 6 metres are considered trees (original bug).
- Fix: [#7039] Map window not rendering properly when using OpenGL.
- Fix: [#7045] Theme window's colour pickers not drawn properly on OpenGL.
- Fix: [#7323] Tunnel entrances not rendering in 'highlight path issues' mode if they have benches inside.
- Fix: [#7729] Money Input Prompt breaks on certain values.
- Fix: [#7884] Unfinished preserved rides can be demolished with quick demolish.
- Fix: [#7913] RCT1/RCT2 title sequence timing is off.
- Fix: [#7700, #8079, #8969] Crash when unloading buggy custom rides.
- Fix: [#7829] Rotated information kiosk can cause 'unreachable' messages.
- Fix: [#7878] Scroll shortcut keys ignore SHIFT/CTRL/ALT modifiers.
- Fix: [#8219] Faulty folder recreation in "save" folder.
- Fix: [#8480, #8535] Crash when mirroring track design.
- Fix: [#8507] Incorrect change in vehicle rolling direction.
- Fix: [#8537] Imported RCT1 rides/shops are all numbered 1.
- Fix: [#8553] Scenery removal tool removes fences and paths while paused.
- Fix: [#8598] Taking screenshots fails with some park names.
- Fix: [#8602] Wall piece collision detection deviates from vanilla
- Fix: [#8649] Setting date does not work in multiplayer.
- Fix: [#8873] Potential crash when placing footpaths.
- Fix: [#8882] Submarine Ride does not count as indoors (original bug).
- Fix: [#8900] Peep tracking is not synchronized.
- Fix: [#8909] Potential crash when invoking game actions as server.
- Fix: [#8947] Detection of AVX2 support.
- Fix: [#8988] Character sprite lookup noticeably slows down drawing.
- Fix: [#9000] Show correct error message if not enough money available.
- Fix: [#9067] Land/water tools show prices when money is disabled.
- Fix: [#9124] Disconnected clients can crash the server.
- Fix: [#9132] System file browser cannot open SV4 files.
- Fix: [#9152] Spectators can modify ride colours.
- Fix: [#9202] Artefacts show when changing ride type as client or using in-game console.
- Fix: [#9240] Crash when passing directory instead of save file.
- Fix: [#9245] Headless servers apply Discord Rich Presence.
- Fix: [#9293] Issue with the native load/save dialog.
- Fix: [#9322] Peep crashing the game trying to find a ride to look at.
- Fix: [#9324] Crash trying to remove invalid footpath scenery.
- Fix: [#9402] Ad campaigns disappear when you save and load the game.
- Fix: [#9411] Ad campaigns end too soon.
- Fix: [#9476] Running `simulate` command on park yields `Completed: (null)`.
- Fix: [#9520] Time Twister object artdec29 conversion problem.
- Fix: Guests eating popcorn are drawn as if they're eating pizza.
- Fix: The arbitrary ride type and vehicle dropdown lists are ordered case-sensitively.
- Improved: [#6116] Expose colour scheme for track elements in the tile inspector.
- Improved: Allow the use of numpad enter key for console and chat.
2019-07-10 22:52:26 +02:00
Michael Steenbeek
b973d51c73
Remove fix for feature introduced after 0.2.2 [ci skip] 2019-07-06 19:08:42 +02:00
Michael Steenbeek
8ff0cf9546
Update objects to 1.0.11 (#9529) 2019-07-06 16:50:58 +02:00
Ted John
f9101a2d7a Fix #9476: Running simulate command on park yields Completed: (null) 2019-06-24 23:17:48 +01:00
nhair
eb13c5a776 Fix #9245: Headless servers apply Discord Rich Presence 2019-06-19 23:02:57 +02:00
Michael Steenbeek
bbd93f93cc
Increase maximum height of Hypercoaster to RCT1 limits 2019-06-18 21:44:06 +02:00
ζeh Matt
7c0f04903e Fix crash with truetype fonts and multi threading (#9424) 2019-06-16 17:43:53 +02:00
ζeh Matt
2044dbcad5 Fix #9324: crash trying to remove invalid footpath scenery 2019-06-16 13:40:15 +02:00
Hielke Morsink
b94cd2b30a
Fix campaign bugs (#9402 and #9411) (#9413)
Fix campaign bugs (#9402 and #9411)
2019-06-14 23:54:59 +02:00
aw20368
9effe21dd0 Fix #8602: Wall piece collision detection deviates from vanilla (#9414)
Wall piece collision used the base height of the wall. Changed to use the clearance height.
2019-06-13 20:03:53 +02:00
Gymnasiast
72c4baebda Fix #9411: Ad campaigns end too soon 2019-06-12 22:31:16 +02:00
Gymnasiast
3933e2ffc6 Fix #9402: Ad campaigns disappear when you save and load the game 2019-06-12 22:20:00 +02:00
Michael Steenbeek
1993704e8f
Add #8553 to changelog [ci skip] 2019-06-10 22:34:29 +02:00
Hielke Morsink
5418eb6e34 Add transparency setting to options window 2019-06-09 11:03:01 +02:00
aw20368
834d1e828a Fix #7829 Rotated information kiosk can cause 'unreachable' messages (#9337)
Some entrance directions were lost upon rotation. Corrected rotation of entrance directions.
2019-06-05 09:33:39 +02:00
aw20368
df263eb1f6 Fix #5896 Fences not always removed when building a tracked ride through (#9341)
Fence removal did not account for track direction. Added the rotation for the track/fence intersection test.
2019-06-04 23:27:36 +02:00
aw20368
3823befa10 Fix #7323 Tunnel entrances not rendering in 'highlight path issues' (#9339)
Hiding path scenery caused function that draws tunnel to prematurely return. Changed to only skip drawing scenery.
2019-06-04 20:34:39 +02:00
Aaron van Geffen
f1ac847fce
Merge pull request #9222 from IntelOrca/implement/485-ghost-train-simulation
Implement #485: ghost train simulation
2019-06-04 20:24:16 +02:00
ζeh Matt
bc14f427a5 Fix #9322: Peep crashing the game trying to find a ride to look at 2019-05-30 20:49:54 +02:00
Ted John
c4e18e570e Add and implement simulation mode for rides 2019-05-28 16:50:08 +01:00
Ted John
abf72eda7f
Fix #9293: Issue with the native load/save dialog (#9294)
Do not set OpenRCT2 as the owner of the file dialog so that it has its own taskbar button and can be independently focused.
2019-05-24 19:31:29 +01:00
Ted John
7f2936b8fb Fix #7045: Theme window's colour pickers not drawn properly on OpenGL
Remove unnecessary transparent flag when drawing colour buttons.
2019-05-20 19:47:26 +01:00
Ted John
b6ae8a758e Update changelog
Add fix note for #7039, fixed in 710da039a4.
2019-05-20 19:46:04 +01:00
Michael Steenbeek
f39c3fdb1a
Add #8480 and #8535 to changelog [ci skip] 2019-05-15 22:33:51 +02:00
Michael Steenbeek
77d0c07d2c
Add #9067 to changelog [ci skip] 2019-05-15 22:31:25 +02:00
ζeh Matt
1a01a49002 Fix #9124: Disconnected clients can crash the server 2019-05-15 19:55:16 +02:00
Michael Steenbeek
c9cbe391eb
Merge pull request #8427 from Mikroscopic/minimap-fix
Fix #8385: Ghost objects rendered in minimap
2019-05-14 22:38:26 +02:00
Michael Steenbeek
abc13422ed
Fix #9132: System file browser cannot open SV4 files 2019-05-14 22:12:23 +02:00
joshtucker132
4dc77bf121 Feature #8791: Improved tile element flag manipulation in Tile Inspector 2019-05-14 21:38:31 +02:00
ζeh Matt
0ff19f071f Fix #9240: crash when passing directory instead of save file 2019-05-13 21:34:58 +02:00
Ted John
131a6dad34 Update changelog 2019-05-12 00:51:33 +01:00
Matt
46c9b89259
Update changelog.txt 2019-05-11 21:39:01 +02:00
Ted John
7074d6f3ae Apply review suggestions 2019-05-11 13:57:18 +01:00
Tom Lankhorst
bbd69496b4 Sanitize screenshot path 2019-05-11 13:54:16 +01:00
Hielke Morsink
b51f6a4d90 Use case-insensitive compare for soring ride and vehicle types (#9229) 2019-05-11 12:06:29 +01:00
Michael Steenbeek
0eccb3495b
Add #8558 to changelog [ci skip] 2019-05-10 22:45:39 +02:00
Ted John
710da039a4 Show ghost elements as white on mini-map
Also fixes refresh of map when using OpenGL drawing engine
2019-05-08 21:37:33 +01:00
Gymnasiast
7f5c9622c0 Fix guests eating popcorn being drawn eating pizza 2019-05-08 20:57:20 +02:00
Ted John
bf50d98e42 Update changelog [ci skip] 2019-05-04 11:33:14 +00:00
Aaron van Geffen
f1b9c71524
Merge pull request #8687 from Xkeeper0/f/multiplayer-plus
Multiplayer dropdown additions
2019-05-02 22:53:50 +02:00
Aaron van Geffen
21104376ea Add changelog entry; add Xkeeper0 to contributors. [ci skip] 2019-05-02 22:53:05 +02:00
Florian Will
8c109307cf Fix #8507: Incorrect change in vehicle rolling direction
In OpenRCT2, when vehicles roll backward on a long, flat track piece,
they would eventually change their direction of movement and move
forward instead, after their velocity reached -4095. The acceleration
due to rolling resistance and drag changes to 0 at that point, which
caused the "implicit boost" up to a velocity of ~+32k (close to 2km/h)
to trigger.

The behavior is different in vanilla RCT2, where vehicles just keep on
very slowly rolling backwards.

This commit disables the "implicit forward boost" for vehicles rolling
backward to mimic vanilla RCT2 behavior.
2019-05-02 22:22:59 +02:00
Michael Steenbeek
76956a8fc1
Add missing issue to changelog [ci skip] 2019-05-02 21:50:04 +02:00
Ted John
39123f68eb Fix #5889: Giant screenshot does not work while using OpenGL renderer 2019-05-02 00:07:43 +00:00
Ted John
f842d8a693 Fix #5103: OpenGL: ride track preview not rendered 2019-05-02 00:07:43 +00:00
Aaron van Geffen
6098c1c3cc
Merge pull request #8659 from Xkeeper0/f/better-sign-tooltips
Better tooltips for banners and signs
2019-05-02 00:21:26 +02:00
Aaron van Geffen
05a1ce6339 Update changelog. [ci skip] 2019-05-02 00:21:02 +02:00
Aaron van Geffen
df42cfe1e1
Change map toolbar icon with current rotation (#9154) 2019-05-02 00:07:20 +02:00
ζeh Matt
c5b66c0294 Fix #9152: Spectators can modify ride colours 2019-04-29 20:08:09 +02:00
Michael Steenbeek
57201c12db
Merge pull request #9128 from Broxzier/feature/6116-tile-inspector-colour-scheme
Expose colour scheme in the tile inspector (#6116)
2019-04-24 19:42:12 +02:00
Michael Steenbeek
b2535ba35a
Merge pull request #9117 from Gymnasiast/fix/7729
Fix #7729: Money Input Prompt breaks on certain values
2019-04-24 19:41:24 +02:00