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

Desynchronization if the client is late and performs an action that the host forbids because it has already been performed on the host side #36

Open
Cilyena opened this issue Sep 9, 2024 · 2 comments
Labels
bug Something isn't working desync The game desync

Comments

@Cilyena
Copy link
Contributor

Cilyena commented Sep 9, 2024

Test preparation :

Host : Host co-op game
Client : Join co-op game
Host : Clic on "Paths & Structures" Button
Host : CLic on "Path" Button
Client : Clic on "Paths & Structures" Button
Client : CLic on "Path" Button
Host or Client : Unpause to x1

Test :

Client : Suspend Client Timberborn.exe with Process XP (https://learn.microsoft.com/fr-fr/sysinternals/downloads/process-explorer#download)
Host : place a path
Wait 30s
Host : place a road (note the location)
Wait 5s
Client : Resume Client Timberborn.exe with Process XP
Client : Immediately after Resume, place a road at the same last location
Wait only 2 seconds: desynchronization crash

@thomaswp thomaswp added bug Something isn't working desync The game desync labels Oct 9, 2024
@thomaswp
Copy link
Owner

thomaswp commented Oct 9, 2024

This makes sense. I assume it occurs naturally also, not just when you're freezing the client? In theory illegal actions (whether initiated by the client or server) should be caught if they cause an error and not actually carried out, but there's only so much I can do to repair it if the illegal action changes the games state before causing an exception. Other than manually checking each action to see if it's allowed, which is a bit out of scope. But I'll see if I can reproduce this.

@Cilyena
Copy link
Contributor Author

Cilyena commented Oct 9, 2024

Client can freeze with antivirus and another slow event. Client can be more slow than the server (CPU slower)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working desync The game desync
Projects
None yet
Development

No branches or pull requests

2 participants