Commit Graph

444 Commits

Author SHA1 Message Date
duncanspumpkin 33e04b8bd6 Implement game_command_place_park_entrance 2015-10-01 21:24:24 +01:00
duncanspumpkin b5711638bc Implement game_command_set_peep_name
Note this is how most of the existing cheats are used
2015-09-30 21:55:36 +01:00
duncanspumpkin ecc2f74b63 Implement game command footpath from track.
Fixes #1954
2015-09-29 23:07:07 +01:00
nightroan bd51c7ed80 Fixed #1939 by adding a callback to delay selection of the next piece until the server sends back the placement command. 2015-09-25 23:57:15 -07:00
zsilencer 9ac89c2b5e remove directsound and get sound working for linux native 2015-09-23 09:42:55 -06:00
IntelOrca bea74ee261 make all file IO utf8 compatible, fixes #1847 2015-08-29 13:13:23 +01:00
Gymnasiast 4d7a81bfe0 Remove unnecessary duplicate address, use more string constants 2015-08-27 16:44:18 +02:00
IntelOrca 1a877e637d refactor sprite_invalidate 2015-08-22 11:56:32 +01:00
zsilencer 7322307a04 fix issues with pausing in multiplayer 2015-08-19 20:34:52 -06:00
zsilencer 5bb3218d4c make desync detection work again 2015-08-19 19:07:11 -06:00
Runelaenen 3b1708f1be Wrong logging fixed 2015-08-19 23:09:54 +02:00
Runelaenen d34a446d61 Easier saving
Replace Save game functionality and add 'save game as' function
2015-08-19 22:02:06 +02:00
medsouz 150fe74e4e Remove unused code
0x009DEA5C is set but never read
0x009AAC73 is normally set to 0 when the screen resolution is changed to
delay saving the config. This is no longer neccesary in OpenRCT2
2015-08-16 15:30:37 -04:00
Ted John 5452eb9b73 Merge pull request #1798 from medsouz/documentaddresses
Document various memory addresses
2015-08-16 18:43:20 +01:00
medsouz ca1a1e0ddd Document various memory addresses 2015-08-16 13:05:49 -04:00
IntelOrca 4f8e289e79 finish server list and fix a couple of multiplayer issues 2015-08-16 17:29:47 +01:00
IntelOrca 9746bccbf6 improve multiplayer 2015-08-15 23:19:15 +01:00
zsilencer ad70dbb84c map load on join 2015-08-14 09:13:40 -06:00
zsilencer 111a2e8198 fix another source of nondeterminism 2015-08-14 09:13:40 -06:00
zsilencer 5dab3be1d7 fix view position when loading map over network 2015-08-14 09:13:40 -06:00
zsilencer 3a26f56000 fix path placement for network 2015-08-14 09:13:40 -06:00
zsilencer 584b34e6d5 fix game_command_create_ride for network 2015-08-14 09:13:39 -06:00
zsilencer 04dedbcec4 fix scenery placement issue over network 2015-08-14 09:13:39 -06:00
zsilencer 149b3d86af network refactoring 2015-08-14 09:13:30 -06:00
zsilencer f883e7a8da get game commands working a bit better 2015-08-14 09:13:30 -06:00
zsilencer 6c571bab00 convert network to c++ 2015-08-14 09:13:30 -06:00
zsilencer df7f576e05 map loading over network 2015-08-14 09:13:29 -06:00
IntelOrca 196e6eb675 get basic network game working 2015-08-14 09:13:17 -06:00
Gymnasiast 86bcbafc01 Rename finance_mark_loan_settings_as_legitimate() to finance_update_loan_hash() 2015-08-13 09:00:49 +02:00
Gymnasiast e9637978a1 Fix cheat detection when using Scenario Options in-game, rename sub_69E869() 2015-08-12 16:12:34 +02:00
IntelOrca be4ee45d66 convert more platform functions over to utf8 and close #1713 2015-08-04 21:41:45 +01:00
IntelOrca 799cb53ec7 implement utf8, part 18 2015-08-01 10:20:59 +01:00
IntelOrca 5f69e6f37a add cycle day / night 2015-07-24 22:58:41 +01:00
zsilencer c0354fb16a fix #1645 2015-07-19 12:38:29 -06:00
IntelOrca 7cddad5026 implement game_command_create_ride 2015-07-16 01:38:28 +01:00
zsilencer af68e9d9ea fix #1590 2015-07-12 20:23:58 -06:00
IntelOrca 3ffffc699c clean up and remove various callprocs 2015-07-12 01:46:52 +01:00
zsilencer 6e3ff0e1df refactor tween reset
Conflicts:
	src/game.c
2015-07-11 12:30:39 +01:00
zsilencer b876591543 use SDL_RWops for save games 2015-07-11 12:27:46 +01:00
zsilencer e8d8f7c684 fix invalidation issue with picked up staff 2015-07-10 21:01:58 -06:00
Duncan Frost 82b60c1a56 Implement game_command_remove_ride_entrance_or_exit
Fix bug in entrance placement that caused moving entrances/exits to fail
2015-07-08 20:47:27 +01:00
Duncan Frost b22f6f401a Implemented game_command_place_ride_entrance_or_exit 2015-07-08 20:12:17 +01:00
IntelOrca f0bba54e79 uncapped FPS: fix viewport chopiness and reset after park load 2015-07-04 23:51:23 +01:00
zsilencer 76b231c150 add option to uncap fps, and fix #1470 2015-07-04 13:14:14 -06:00
zsilencer 9578606251 implement game_command_set_water_height 2015-06-29 11:49:17 -06:00
IntelOrca c3d5d5f6c2 implement game_command_set_ride_vehicles 2015-06-29 16:14:56 +01:00
Ted John b1b61e7df5 Merge pull request #1509 from duncanspumpkin/map_functions
Map functions
2015-06-28 18:03:53 +01:00
Duncan Frost 5e3df22414 Implemented map element remove. Small tidy of functions in game.c. 2015-06-28 13:31:46 +01:00
IntelOrca 36d6ea7a6e fix setting brakes speed on current track and implement game command 2015-06-28 11:44:46 +01:00
IntelOrca 457e7862b3 prepare track place and remove game commands 2015-06-27 17:53:28 +01:00
Robert Jordan 5645d8bd8a Added Game Speed command 2015-06-25 11:19:23 -04:00
Duncan Frost f36d17651d Implemented game_command_place_fence.
There are a couple of bugs involveing signs.
2015-06-21 11:43:52 +01:00
IntelOrca ce924b4b1b add new custom title sequence to celebrate 0.0.2 release 2015-06-14 21:01:48 +01:00
zsilencer d2b565b283 game_command_place_large_scenery 2015-06-14 05:56:41 -06:00
IntelOrca 0dd749baac refactor window event calls 2015-06-09 18:29:02 +01:00
IntelOrca dc3fe2a6c8 remove commented out CALLPROCs and CALLFUNCs 2015-06-09 15:09:45 +01:00
Robert Jordan fcbe561ad8 Decompiled Ride Prices 2015-06-08 21:28:07 -04:00
LRFLEW c0f376aa77 fixed naming convention 2015-06-07 17:20:46 -05:00
LRFLEW d3a6965f95 Made window_loadsave_open accept a default file name
This fixes #1231, #1245, and adds room for future work, such as porting
track saving.
2015-06-07 17:12:17 -05:00
LRFLEW 75903ec2d9 Fixed opening save game not changing recommended name
It was originally handled by load_game(), but was changed when the
loadsave window was implemented.
2015-06-07 15:20:46 -05:00
Duncan Frost 3bd3fccb57 Fix rotation disapearing sprites
This was caused by the sprite quadrant assignment not being reset when a new rotation was assigned
2015-05-30 10:15:29 +01:00
IntelOrca 101fed0dd9 refactor g1Elements pointer and implement sub_68371D 2015-05-28 00:17:22 +01:00
Ted John 3f71502718 Merge pull request #1107 from zsilencer/decompiling
game_command_place_scenery
2015-05-21 21:20:22 +01:00
IntelOrca 6135b9204d fix #1118 2015-05-21 03:11:53 +01:00
zsilencer 9ee4b64fa1 game_command_place_scenery 2015-05-20 19:21:13 -06:00
Duncan Frost d3587c2fc5 Fix #1103 and #483
Measurement close is now correctly called when the ride measurement window is closed.
When quiting a scenario tool_cancel is called to also reset the scnery selection mode
2015-05-20 19:18:54 +01:00
Robert Jordan 6faaca53aa Added game speed button and other changes
Game speed button with up to 4/5 speeds.
Debugging tools option to enable non-playable changes.
Cheat window is now a setting.
Game speeds 5-7 are removed.
Game speed 8 added with enabling debugging tools.
Windows and news ticker update once per tick instead of based on game
speed.
2015-05-18 18:15:43 -04:00
IntelOrca f7972f0d48 Merge branch 'land-rights-tool' of https://github.com/trigger-death/OpenRCT2 into trigger-death-land-rights-tool
Conflicts:
	data/language/english_uk.txt
2015-05-15 22:10:13 +01:00
Robert Jordan 09cc46c1e6 Almost finished land rights tool 2015-05-15 11:28:27 -04:00
Duncan Frost 822c3f6932 Added game_command_place_track
Requires extensive testing.
Fixed a bug in the tracks.idx that would cause crash on track load fail.
2015-05-13 19:19:37 +01:00
Robert Jordan 9e5cb40ab4 Added INPUT_FLAG_VIEWPORT_SCROLLING check
Before it was checking if any flags were set, and not just
INPUT_FLAG_VIEWPORT_SCROLLING.
2015-05-08 12:14:10 -04:00
Robert Jordan c25ef45827 Named 2 input flags, and dropdown fix
Named INPUT_FLAG_1 to INPUT_FLAG_DROPDOWN_STAY_OPEN
Named INPUT_FLAG_2 to INPUT_FLAG_DROPDOWN_MOUSE_UP

placed RCT2_ADDRESS_INPUT_FLAGS where valid and replaced all bitwise
references to it with appropriate input flags.

Changed ride view dropdown to hold only as it should be.
2015-05-07 14:31:11 -04:00
zsilencer a8a434e261 game_command_place_banner 2015-04-25 09:21:35 -06:00
zsilencer c40a6f4789 game_command_remove_banner 2015-04-25 09:21:11 -06:00
zsilencer b8657da99f game_command_set_banner_colour 2015-04-25 09:21:11 -06:00
zsilencer 4379df67c4 game_command_set_large_scenery_colour 2015-04-25 09:21:11 -06:00
zsilencer 1782a62055 game_command_set_fence_colour 2015-04-25 09:21:11 -06:00
zsilencer e7d3d8b19d game_command_set_scenery_colour 2015-04-25 09:21:11 -06:00
zsilencer ed709b8353 game_command_remove_large_scenery 2015-04-25 09:21:11 -06:00
zsilencer ea75926a6c game_command_set_ride_appearance 2015-04-25 09:20:47 -06:00
zsilencer 16cb732533 game_command_remove_scenery 2015-04-25 09:20:46 -06:00
zsilencer 68d7f84098 rename 0x80000000 to MONEY32_UNDEFINED 2015-04-25 09:20:46 -06:00
zsilencer e2d386edbc game_command_remove_fence 2015-04-25 09:20:15 -06:00
zsilencer 9bd620cd99 game_command_raise_water, game_command_lower_water, suggested changes 2015-04-25 09:20:15 -06:00
zsilencer af46537667 game_command_raise_land, game_command_lower_land 2015-04-25 09:20:15 -06:00
zsilencer 623e607dfd game_command_fire_staff_member 2015-04-25 09:20:15 -06:00
zsilencer 97bd30ece7 game_command_set_staff_patrol 2015-04-25 09:20:15 -06:00
zsilencer ab9e250abe game_command_set_staff_order 2015-04-25 09:20:14 -06:00
zsilencer 08a5bea762 game_command_demolish_ride 2015-04-25 09:20:14 -06:00
IntelOrca b1d6c34a00 implement money_effect_create 2015-03-31 03:23:40 +01:00
IntelOrca 851b0819b9 clean up many CALL_PROCs and implement a few functions 2015-03-31 02:21:30 +01:00
IntelOrca d1e4fe8060 implement scenery_set_default_placement_configuration 2015-03-29 02:29:07 +01:00
IntelOrca 745614c959 refactor misc. sprites and implement jumping_fountain_begin 2015-03-23 10:39:47 +00:00
IntelOrca 7d383a586e implement map_update_tiles, grass growing and scenery aging 2015-03-22 17:04:50 +00:00
Duncan Frost 4171289050 Added game_command_set_ride_setting. 2015-03-20 22:33:06 +00:00
IntelOrca cd16af0f60 add some event handlers for invalidating map objects 2015-03-18 19:52:45 +00:00
Duncan Frost a04de29bf8 Finish refactor of object_list.c 2015-03-07 12:45:13 +00:00
Duncan Frost 936f2f127f Refactor of object_list.c 2015-03-07 11:13:10 +00:00
Duncan Frost 013be11aed Refactored water and entrance paint functions 2015-03-01 21:06:51 +00:00
Gericom ec3e7edcec Implemented paint_ride_entry
Translated ride names and descriptions! (only the names in the scenario
editor are still in english somehow)
2015-02-26 14:47:34 +01:00
IntelOrca 5912b412c7 fix autosave bug, fixes #855 2015-02-24 00:30:25 +00:00
IntelOrca 7fbcc3598d ensure scenario path is set when loading a saved game 2015-02-22 18:24:19 +00:00
IntelOrca a3df2527b0 implement autosaving, closes #778 2015-02-21 11:05:15 +00:00
IntelOrca 2ab48c998e Merge branch 'set-ride-status' into develop
Conflicts:
	src/ride/track.h
2015-02-17 17:00:47 +00:00
IntelOrca 7f0ed995b5 improve reading and saving of configuration 2015-02-16 22:47:11 +00:00
Adrian Wielgosik 4c98d01a67 Reduced frequency of flickering in map window by 4 2015-02-16 22:24:21 +01:00
Adrian Wielgosik bfe401c778 Refactor code related to map flashing, removed a small mistake related with it
Removed code related to map flashing from title_update
2015-02-16 18:53:47 +01:00
IntelOrca ac4cd56b63 add new load / save window, closes #580 2015-02-14 02:16:03 +00:00
IntelOrca 886f30d00c Merge branch 'develop' into footpath-commands 2015-02-13 19:32:13 +00:00
IntelOrca a66b29076b move osinterface code to shared or windows 2015-02-12 20:51:40 +00:00
IntelOrca 9d2abf1925 add map generation window 2015-02-09 18:32:58 +00:00
IntelOrca a6c95f1f38 Merge branch 'develop' into set-ride-status
Conflicts:
	src/ride/track.c
	src/windows/ride_construction.c
2015-02-08 16:04:35 +00:00
IntelOrca 4a9dfcc849 implement scenario_create_ducks 2015-02-08 15:37:33 +00:00
IntelOrca dfc723573c fix expenditure table issues, fixes #762 2015-02-08 14:31:57 +00:00
Duncan Frost 0f6dd51736 Added load_palette. Labelled offset for paused and palette effect frame. Fixed fast moving water. 2015-02-07 17:40:20 +00:00
IntelOrca debafcf051 code set ride status, not yet fixed and tested 2015-01-29 00:16:34 +00:00
IntelOrca 36971b29cb implement game_command_set_park_name and game_command_remove_park_entrance 2015-01-27 21:18:41 +00:00
IntelOrca 1c18f80f07 implement game_command_set_ride_name 2015-01-27 02:05:54 +00:00
IntelOrca ba4d9b3975 implement game_command_set_park_open 2015-01-25 00:20:53 +00:00
IntelOrca dfb1f055b9 implement game_command_set_current_loan 2015-01-24 19:07:35 +00:00
IntelOrca 475c98c540 implement game_command_set_research_funding 2015-01-24 18:41:55 +00:00
IntelOrca eec7e2e458 implement marketing_start_campaign 2015-01-24 18:22:06 +00:00
IntelOrca 3a8f85b7d2 implement footpath remove and create, bugs exist 2015-01-14 23:51:59 +00:00
IntelOrca 0ff125b9b3 move across useful map functions and other bits from footpath branch to develop 2015-01-14 23:38:48 +00:00
Duncan Frost 974ecd904c Finish game command 20 change surface style 2015-01-12 18:39:53 +00:00
Duncan Frost 8a4e12a3f4 Started game_command_20 raise lower land 2015-01-12 18:39:52 +00:00
Duncan Frost cbe49300b8 Fixed sounds not playing properly when paused. Labeled max sounds offset. Prevented crash on null dereference 2014-12-31 14:54:23 +00:00
IntelOrca 4b897ae1a3 implement saving of games and scenarios 2014-11-26 00:51:26 +00:00
IntelOrca d9e0f8ff6a implement save scenario and fix various load / save dialog issues, fixes #433 2014-11-25 02:06:26 +00:00
IntelOrca 73a6b1acea implement editor_read_s6, partial fix for #433 2014-11-24 02:58:48 +00:00
IntelOrca adb5f84f55 implement editor_convert_save_to_scenario 2014-11-23 23:03:59 +00:00
IntelOrca 0e0e9c9840 merge qcz editor early to help finish other editor parts 2014-11-23 16:28:23 +00:00
Duncan Frost 7252667a25 Implemented the same changes to scenario load. Error messages now copied onto cmd prompt 2014-11-20 19:02:27 +00:00
Duncan Frost 8e566e8598 Finished load related fail 2014-11-20 18:40:10 +00:00
Duncan e05d5f1922 Add remaining part that caused load to enter hybrid sate.
This should fix the remaining loading issues but it is untested at the moment. Note sub_675827 is not finished!
2014-11-20 12:52:42 +00:00
Duncan Frost 816f8661a5 Started adding sub_675827 2014-11-19 22:05:42 +00:00
Duncan Frost 4459d127d0 Found cause of crash. Game will enter hybrid state when failed to load. 2014-11-19 21:46:32 +00:00
Duncan Frost 4af9f226f4 Fix loading save money bug. 2014-11-18 20:33:21 +00:00
Duncan Frost bd06488450 Fix peeps sitting. Renamed a function to sprite_move 2014-11-12 17:45:39 +00:00
Duncan Frost 2ddbc8f190 Found cause of viewport issue. Added invalidate_sprite function. 2014-11-06 21:42:18 +00:00
Duncan Frost 1a857edc21 Playing about with viewport setup 2014-11-06 21:16:45 +00:00
IntelOrca ea6b0de6a6 refactor and move keyboard shortcuts to a new source file 2014-11-05 18:50:51 +00:00
Duncan Frost 22df12c1c8 Added sub_69e9d3 a sprite moving function 2014-11-05 16:35:18 +00:00
IntelOrca d92a4d9418 implement clear scenery game command, try out removing paths feature 2014-11-04 03:34:48 +00:00
Duncan Frost 53e0ebc57c Refactored a bit of tooltip window. Added hack to fix #540 note this should be fixed better 2014-11-01 13:10:14 +00:00
Sijmen Schoon a7b1e50a92 Implement redraw_peep_and_rain 2014-10-20 23:20:13 +02:00
IntelOrca ae85fc265e implement window_map_tooltip 2014-10-17 02:01:58 +01:00
IntelOrca ece2522273 refactor window search functions 2014-10-16 02:02:43 +01:00
IntelOrca 6fe1bace20 refactor input (flags in particular) and add sub_6EA73F 2014-10-15 22:59:26 +01:00
IntelOrca 70a33f6593 refactor game_logic_update 2014-10-09 20:31:58 +01:00