Skip to content
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

Buffer errors in case of 2 and more clients #40

Open
maxim-sheronov opened this issue Sep 12, 2022 · 0 comments
Open

Buffer errors in case of 2 and more clients #40

maxim-sheronov opened this issue Sep 12, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@maxim-sheronov
Copy link

maxim-sheronov commented Sep 12, 2022

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

@AndreaCatania AndreaCatania added the bug Something isn't working label Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants