1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00
Commit Graph

16728 Commits

Author SHA1 Message Date
Duncan
62e188586c Merge pull request #8914 from duncanspumpkin/buy_land_rights
Add landset/buyrights action
2019-05-12 19:38:39 +01:00
duncanspumpkin
4de6071fb4 Increment network version 2019-05-12 19:03:03 +01:00
duncanspumpkin
b9a70d02a3 Make suggested changes
Implement suggestions

Fix formatting
2019-05-12 17:31:48 +01:00
Aaron van Geffen
a8ae81519c Add LandBuyRightsAction.hpp to Xcode project. 2019-05-12 17:29:19 +01:00
duncanspumpkin
e9e445837f Add landset/buyrights action 2019-05-12 17:29:19 +01:00
Michael Steenbeek
e5eea9d1fa Merge pull request #9235 from ZehMatt/fix-util-rand
Improve util_rand
2019-05-12 13:50:19 +02:00
Ted John
15cb3e1889 Remove unnecessary new line characters from log calls (#9237) 2019-05-12 13:48:56 +02:00
Ted John
616fdfd96e Merge pull request #9212 from IntelOrca/fix/2339-broadcast-lan
Implement searching of local servers by broadcasting UDP packets.
2019-05-12 12:07:56 +01:00
Matt
eb3018b6a9 Fix warnings 2019-05-12 11:32:41 +02:00
Matt
c6ea47c631 Make util_rand thread safe 2019-05-12 11:32:33 +02:00
Matt
5198df5c25 Improve generation of random advertisment key 2019-05-12 11:27:48 +02:00
Duncan
5da95e963d Fix GameAction use during pause (#9242)
* Use correct flag to allow action while paused.

Mistake made during implementing on GameActions

* Increment network version
2019-05-12 09:54:21 +01:00
OpenRCT2 git bot
d3b5ac3f07 Merge Localisation/master into OpenRCT2/develop. 2019-05-12 04:00:22 +00:00
Ted John
1ac8d9058f Colour local servers as green 2019-05-12 01:05:11 +01:00
Ted John
dd20ebad49 Make more methods const 2019-05-12 00:57:56 +01:00
Ted John
5e94f6385d Initialise hostname 2019-05-12 00:51:33 +01:00
Ted John
73b8310e8e Refactor creation of UDP socket 2019-05-12 00:51:33 +01:00
Ted John
f8e3abcf4e Remove by-reference string_view 2019-05-12 00:51:33 +01:00
Ted John
f0d1e9c320 Apply some of the code review comments 2019-05-12 00:51:33 +01:00
Ted John
3334d40da4 Explicitly use std::launch::async 2019-05-12 00:51:33 +01:00
Gymnasiast
6e6fe3c3c1 Replace optional.value() with *optional (fix Xcode compilation)
Xcode cannot handle the optional.value() notation, but *optional
should mean the same.

Also see https://en.cppreference.com/w/cpp/utility/optional/operator*
2019-05-12 00:51:33 +01:00
Gymnasiast
9b1321067b Use opt:: namespace 2019-05-12 00:51:33 +01:00
Gymnasiast
26e0264b5d Fix Xcode project 2019-05-12 00:51:33 +01:00
Ted John
52afcb795f Fix windows build 2019-05-12 00:51:33 +01:00
Ted John
47f48721e8 Fix clang build 2019-05-12 00:51:33 +01:00
Ted John
4b0f2bbceb Fix disable network / disable http builds 2019-05-12 00:51:33 +01:00
Ted John
20f52a8cbe Refactor TcpSocket and UdpSocket 2019-05-12 00:51:33 +01:00
Ted John
131a6dad34 Update changelog 2019-05-12 00:51:33 +01:00
Ted John
6a4791e39e Only reply to broadcasts with correct message 2019-05-12 00:51:33 +01:00
Ted John
59ddd7e1ea Get and broadcast to all broadcast address 2019-05-12 00:51:33 +01:00
Ted John
51117432f0 Improve status messages and prevent duplicates 2019-05-12 00:51:33 +01:00
Ted John
04c04d197e Refactor broadcasting code and logging 2019-05-12 00:51:33 +01:00
Ted John
4f0a733496 Sort by LAN servers 2019-05-12 00:51:33 +01:00
Ted John
3a400a2471 Refactor server list 2019-05-12 00:51:33 +01:00
Ted John
4437113805 Fix server list LAN address and port 2019-05-12 00:51:33 +01:00
Ted John
7a20874366 Fix Windows build 2019-05-12 00:51:33 +01:00
Ted John
123a8eacad Get the server list showing LAN servers 2019-05-12 00:51:33 +01:00
Ted John
694cb7eb3f Implement UDP socket and broadcasting 2019-05-12 00:50:13 +01:00
Ted John
5992b9f76e Add UDP socket class 2019-05-12 00:49:37 +01:00
ζeh Matt
2f4f4fbf8e Merge pull request #9233 from ZehMatt/fix-invalidobjectselection
Fix #2294: Clients crashing the server with invalid object selection
2019-05-11 23:16:39 +02:00
Matt
6aa0e74d3e Fix util_rand only returning 15 bit values. 2019-05-11 22:37:19 +02:00
Matt
9561567b6c Bump up network version 2019-05-11 21:39:01 +02:00
Matt
46c9b89259 Update changelog.txt 2019-05-11 21:39:01 +02:00
Matt
7c7909fb45 Fix #2294: Clients crashing the server with invalid object selection 2019-05-11 21:39:01 +02:00
ζeh Matt
c8f822ea70 Gamestate snapshots (#8819)
* Add initial interface.

* Implement move operator in MemoryStream

* Add pod array serialisation traits.

* Add push_back with move semantics to CircularBuffer

* Initial implementation of GameStateSnapshots

* Add GameStateSnapshots to Context.

* Add mp_desync console command.

* Compare sprite data and fill change list.

* Minor changes.

* Proof of concept.

* Calculate offset instead of using offsetof

* Implement game state difference detection

* Update mp_desync console command.

* Fix identification of sprite remove/add.

* Fix crash when only one peep in park when using mp_desync

* Output state differences into user directory desync folder.

* Add desync debugging as an option.

* Add information to network status when a desync report was created.

* Cast to proper type for %llu.

* Update xcode project

* Add more information to the diffed data.

* Remove client-only relevant fields.

* Cleanup.

* Add better name output for misc sprites

* Add srand0 and tick information to the output

* Bump up network version

* Cleanup

* Set desync_debugging to false as default

* Apply suggestions
2019-05-11 21:31:34 +02:00
ζeh Matt
1f6c7c9942 Fix false positive desync when changing map during network play 2019-05-11 18:27:09 +02:00
Ted John
cedbd8ce7f Merge pull request #8611 from tomlankhorst/check-screenshot-path
Check and sanitise screenshot filenames.
2019-05-11 15:29:54 +01:00
Ted John
7074d6f3ae Apply review suggestions 2019-05-11 13:57:18 +01:00
Tom Lankhorst
ed353faccf Implement replace_if condition lambda
Fix include typo and CS
2019-05-11 13:54:16 +01:00
Tom Lankhorst
744f2225ed Write platform tests 2019-05-11 13:54:16 +01:00