-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReliableChannel stops receiving after 65535 packets #34
Comments
Good catch, thanks! The design is meant to roll over. I will work on fixing this. |
Hey, has this been resolved yet or is there a work-around for it? The Ruffles project looks awesome! :) |
Just change the line to: |
Ohhhh... I wasn't even aware that this could grow out of the ushort size like this. The more you know! Thanks a lot <3 😄 |
C# doesn't have short/ushort literals, so the This was a really annoying bug do fix since it manifested as the game simply breaking down after playing for over 20 minutes or so. |
This does make a lot of sense, you're right. Glad you found it and shared it here to save everyone some time! |
Here's a example where you can see this in action: |
Ruffles/Ruffles/Channeling/Channels/ReliableChannel.cs
Line 60 in 378751e
This line here is missing the cast to ushort, causing the ReliableChannel to stop accepting packets past sequence 65535.
The text was updated successfully, but these errors were encountered: