OptionalNetworkAPI
API for plugin developers to write networking for mods that don't require all players to have it.
CHANGELOG
v1.3.1
- Fixed MasterInfo not updating correctly, causing MasterHasMod on registered mods to frequently be incorrect.
v1.3.0
- Fixed an issue where leaving a lobby would not reset handshakes, causing re-joins to not sync correctly.
- Fixed cases where custom data packets would cause errors due to byte padding.
v1.2.1
- Simplified rules for sending data with
CustomDataSender:SenderModenow only applies to default data and data sent to unspecified players.- OtherPlayers sends default data to other players and sends data to all other players when the target is unspecified.
- Bots sends default data for bots to other players.
- Self sends default data to yourself (including bots if host) and sends data to yourself when the target is unspecified.
- Data sent to an individual player no longer has any restrictions.
- Data can be sent to yourself.
- Data sent to bots is sent to host (or yourself, if you are host).
- Added
TargetSelfflag to send data to yourself when sending data to another player.
v1.2.0
- Added a handshake process on initial connection to improve resiliency against dropped packets.
v1.1.0
- Fixed a critical issue that required mods to be registered in the same order to sync correctly with other players.
v1.0.0
- Initial Release