Martin Černáč
830b897dc6
Refactor conditional buffers and string_ids
2016-02-19 17:17:10 +01:00
Martin Černáč
62672af35e
Refactor sprintf and string_formater usages
2016-02-18 17:43:47 +01:00
Martin Černáč
361d30c6f5
Fix #2802 - extract hardcoded network-related strings
...
I extracted all of the hardcoded network-related strings. In addition to that, I also refactored the way last_disconnect_reason was being accessed/modified.
2016-02-18 14:52:02 +01:00
IntelOrca
b11afac5c8
potential fix or improvement to #2924 : ride sync
...
- Do not delete rides when sending map to clients.
- Only do track related checks for track, not flat rides
2016-02-15 22:01:29 +00:00
Michał Janiszewski
a09afd0be5
Minor fixes
...
* Be more cautious while doing pathfinding
* Be a little more deterministic on network by initialising all member
fields.
2016-02-14 22:22:38 +01:00
zsilencer
c789449ea8
Change log_warning to log_verbose
2016-02-02 14:47:51 -07:00
zsilencer
41a52065fa
Fix #2845 : Remove file size limit on map send
2016-02-02 14:11:19 -07:00
zsilencer
b2083deed0
implement cheats over multiplayer
2016-02-02 14:08:59 -07:00
Martin Černáč
5d69eda3da
Fix segfault when loading network game with unknown objects
...
This oneliner causes the game not to crash, when connecting to a network game that utilizes objects, that the connecting client doesn't have installed. Instead, it quits to the main menu with an error message being displayed.
2016-02-02 14:27:08 +01:00
Michał Janiszewski
eeac901b11
Don't prematurely fail network resolver
...
Sometimes the resolver is still in progress while an update checks its
status, which is `INPROGRESS` and makes the game think there was a
connection failure.
This lets resolver continue doing its job if the status is `INPROGRESS`.
2016-02-01 23:44:48 +01:00
Michał Janiszewski
e814cdd271
Decouple network version from OpenRCT2 version
...
This allows to present a different version of network stream than just
OpenRCT2 version, as we can possibly have breaking changes to network in
one release cycle.
This commit also adds easy way of identification which hosts are running
which versions, by showing a tooltip when hovering mouse cursor over the
network compatibility icon. Client's own version is displayed as well.
2016-01-30 22:44:43 +01:00
LRFLEW
095e0e18e3
Fix unsigned warning in network_set_player_last_action_coord
2016-01-27 16:00:00 -07:00
Michał Janiszewski
dd37ca05c3
Disable opening cheats window in MP
...
When connecting to a server, also reset cheats.
This should fix #2811
2016-01-25 21:44:09 +01:00
zsilencer
32f1aa064d
more accurate last player action location
2016-01-24 21:00:31 -07:00
zsilencer
74225ad4bc
fix issue with group name string ids after loading new map
2016-01-24 18:33:28 -07:00
Michał Janiszewski
b89282cc2f
Fix zlib inflate on broken builders
2016-01-24 21:36:14 +01:00
zsilencer
5aec23e2b0
forgot to include default group in grouplist packet
2016-01-23 18:57:56 -07:00
zsilencer
0e00c1e3ce
load and save groups
2016-01-23 18:05:53 -07:00
zsilencer
85d77bb838
show last action in player window
2016-01-23 16:46:52 -07:00
zsilencer
5a72cb02f1
fix small issue caused by some RCT2_ADDRESS_COMMAND_MAP being used as 32 bit vars
2016-01-23 14:42:36 -07:00
zsilencer
db90477cae
add locate player's most recent action button
2016-01-23 14:16:26 -07:00
zsilencer
5a43e313b5
add can't kick host error
2016-01-23 13:29:17 -07:00
zsilencer
5f7c81083e
add separate Clear Landscape action and fix a bug
2016-01-23 13:19:17 -07:00
zsilencer
de1fa24e7b
add last player action to player list
2016-01-23 12:32:02 -07:00
zsilencer
ef4fc84634
consolidate actions list
2016-01-23 11:34:05 -07:00
zsilencer
c557f02f4b
fix issue with incorrect game_command_playerid
2016-01-22 16:57:00 -07:00
LRFLEW
cfc3ec552c
Added #2783 files to Xcode
2016-01-22 15:57:50 -07:00
zsilencer
1277c1a0d2
MP permissions update 2
2016-01-22 11:12:35 -07:00
zsilencer
7a249c6457
Add ability to toggle individual action permissions
2016-01-21 20:32:51 -07:00
zsilencer
6e3068cd0a
MP groups and permissions
2016-01-20 21:42:31 -07:00
Michał Janiszewski
08fc5f817a
Disable using RLE when saving for network
2016-01-20 15:30:59 +01:00
Michał Janiszewski
9afcd15335
Make network use zlib compression for transferring map.
2016-01-20 15:30:59 +01:00
Michał Janiszewski
3bf1e0e06d
Rename safe_strncpy to safe_strcpy
2016-01-18 20:49:52 +01:00
IntelOrca
cdee534eb1
use SDL2's platform defines to normalise platform guards
2016-01-14 20:12:43 +00:00
IntelOrca
e4c6c79552
fix #2650 : validate game commands sent from clients in multiplayer
2016-01-05 18:30:39 +00:00
IntelOrca
f93a134aa6
fix map size error when sending network game information
2015-12-24 01:40:03 +00:00
Michał Janiszewski
98e204552a
countof with type safety
...
For reference see http://www.g-truc.net/post-0708.html and
http://lxr.free-electrons.com/source/include/linux/kernel.h#L54
This will provide a type-safe mechanism for counting elements of array.
If you try passing something which cannot be counted, compiler will
frown at you right away.
2015-12-15 00:28:58 +01:00
Michał Janiszewski
a5b465fad1
Fix some compiler warnings
2015-12-14 22:52:27 +01:00
IntelOrca
c6056cbb6c
Merge branch 'pre-release-0.0.3' into develop
...
Conflicts:
src/audio/audio.c
2015-11-27 22:05:40 +00:00
Linus Unnebäck
30b6718532
start of OS X support
2015-11-27 17:43:12 +01:00
zsilencer
0c3c9d5400
Fix #2352 . Do not open disconnected status window when password input canceled.
2015-11-23 13:07:18 -07:00
duncanspumpkin
5bd3b8d6af
Implement util_rand due to rand having a poor range on some platforms
2015-11-20 21:40:36 +00:00
IntelOrca
5ef10f5050
fix memory leaks in JSON object creation for multiplayer
2015-11-20 18:48:40 +00:00
Michał Janiszewski
e7b58b7375
Skip closing network if already closed
...
Fixes #2203
2015-11-14 17:12:38 +01:00
IntelOrca
ed8e7c2d38
add extra server details on gameinfo packet
2015-11-11 22:39:04 +00:00
IntelOrca
09cd007f3f
add dedicated flag to gameInfo
2015-11-08 23:50:38 +00:00
IntelOrca
da6d382c47
make server heartbeat PUT
2015-11-08 23:29:52 +00:00
IntelOrca
2e55495470
improve master server to POST json
2015-11-08 22:03:35 +00:00
IntelOrca
6fe2340dfe
stop clients from pausing multiplayer games
2015-11-08 14:32:22 +00:00
IntelOrca
d2aa736492
fix master server communication
2015-11-08 04:02:23 +00:00