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