cd6fc87eb4b29fbbee420f0ae994dea7111a84a4
EntityEventManager sends an empty event with an ID of 0 if the entity doesn't exist anymore when writing the event. The recipient should simply skip over these messages and read the next one, but clients only did so if the event is the next unreceived one, causing the rest of the messages to be read incorrectly (which could lead to various sorts of problems in addition to the header and buffer size errors). The server didn't deal with the empty events correctly either, it increased the last received ID even if the received event was not the one the server is waiting for, potentially causing other non-empty events to be ignored. + Added an error message if the size of an NetEntityEvent is larger than 255 bytes. Not only is that excessively large for an event, but the length of the event is written as a byte and larger ones may again cause messages to be read incorrectly. Most events should be nowhere near 255 bytes, but now that the descriptions and tags of a spawned item are included in the item spawn messages there's the possibility that some events are too large.
Barotrauma
Copyright © Undertow Games 2017-2018
Before downloading the source code, please read the EULA.
Links:
Official Website: www.undertowgames.com/barotrauma
Forums: http://undertowgames.com/forum/
Wiki: http://barotrauma.gamepedia.com/Barotrauma_Wiki
Prerequisities:
Windows
- Visual Studio with C# 6.0 support (VS 2015 or later recommended)
Linux
- Mono 5.4
- MonoDevelop 6
- Note: See http://community.monogame.net/t/installing-monogame-3-6-on-linux/8811 to get this version of MonoDevelop if your distro's package distribution suite is outdated.
Description
Languages
C#
63.2%
C
26.8%
C++
5.9%
Shell
1.1%
Makefile
0.8%
Other
1.9%