Open aienabled opened 7 years ago
There also no check if the sequence channel number exceeds that from NetConstants.NetChannelsPerDeliveryMethod
in NetPeer.SendMessage()
for multiple recipients (only for the method with single recipient it's done).
Hello, in RELEASE build there is no assert that non-zero channel must be used for
Unreliable
command (there is such assert in DEBUG build). It passes this assert and then something bad (IMHO) happens - the channel number added to this enum entry atNetConnection.EnqueueMessage()
and it becomesUnreliableSequenced
. For me, it was a surprising behavior (I found it out only now, three years after release of my product! And it was in critical part of code which expects to work asUnreliable
, not asUnreliableSequenced
).I would prefer if in RELEASE build there will be this code:
in both the
NetPeer.SendMessage()
methods. (throwing exception in DEBUG build is ok).Also I found quite misleading this statement:
(from https://github.com/lidgren/lidgren-network-gen3/wiki/Features ) I checked the code and it seems there are no duplicate detection for completely
Unreliable
messages, only forUnreliableSequenced
. Will you update the wiki or code accordingly?