network_synchronizer icon indicating copy to clipboard operation
network_synchronizer copied to clipboard

Buffer errors in case of 2 and more clients

Open maxim-sheronov opened this issue 2 years ago • 0 comments

DollController starts call _apply_epoch() in process() just after creation. But at this moment buffers are empty, so in example project in NetworkedController in method _apply_epoch I added checks for buffer size. Without checks it tries to read Vectors from empty buffers. And it will continue until server send real epoch. But if you can add check for buffer size, you still get error because DollController calls seek() on empty buffer.

Attached example project for 3.x, ported for 4.0 Tested on Godot 4 alpha15 + NetSync example-project-3.x.zip

maxim-sheronov avatar Sep 12 '22 13:09 maxim-sheronov