Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Understanding NetworkReader:ReadByte out of range errors

$
0
0
I regularly have errors like this:

Code (CSharp):
  1. IndexOutOfRangeException: NetworkReader:ReadByte out of range:NetBuf sz:8 pos:8
It happens when changing any line of code in a script, even though it's not changing anything about the networking functionality. Creating a new build normally solves the problem.

For example I added some debug logging to debug my client interpolation, but adding a simple print() command already breaks compatibility with the build, where the server is...

Understanding NetworkReader:ReadByte out of range errors

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>