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

Client constructing buildings not syncing correctly #232

Open
ghpdohmen opened this issue Dec 26, 2020 · 7 comments
Open

Client constructing buildings not syncing correctly #232

ghpdohmen opened this issue Dec 26, 2020 · 7 comments
Labels

Comments

@ghpdohmen
Copy link
Contributor

Issue experienced by MangoBoy2005#6759 on discord

Describe the bug
He's trying to connect and for about 10 seconds to 2 minutes the game works fine and everything is synced after that things he builds are not showing up for me ( the host). and slowly everything gets desynced. but with the "Camera position cursor" enabled I can still see him looking around in real-time with almost no delay.

Guus:
After investigating the log file it seems to be related to a null ref on the building info in the BuildingCreateHandler line 16 on the client-side. server-side seems to be fine

To Reproduce
Guus:
unsure how to reproduce, I don't have the same issue on my system.

Expected behavior
Buildings should be synced.

Active DLCs
none

Active mods
none

Versions
Type /version into the in-game chat and paste the version numbers here:

  • Mod version: 2012.84.0.0
  • Game version: 1.13.1 f1

Additional context
Unsure how to fix this. Might need a check after line 11 in the BuildingCreateHandler to check if the building info exists, otherwise throw an error.

@ghpdohmen ghpdohmen added the bug label Dec 26, 2020
@winnipeg21
Copy link

Same issue.. Seems like some items can be seen and others can't

@alexanderwassbjer
Copy link

Same issue... Our saves was totally out of sync when that happened.

@adriendomoison
Copy link

Also tried with v2008 and had the issue on both. It is sadly not usable like that.
I think this is linked to #226 because this always starts to happen when we can't pause or accelerate anymore.

@kaenganxt
Copy link
Member

Does anyone have a way to reproduce this? Is it maybe a specific building that's breaking the synchronization?

@winnipeg21
Copy link

How does it not dsync for you? It seems when a player enters the pause menu, enters a building menu or does anything besides building.

@adriendomoison
Copy link

@kaenganxt Playing 10 minutes, building police stations and fire departments, and playing with the play/pause/fast-forward buttons makes it desync :-)

@Bluejanis
Copy link

Bluejanis commented Oct 14, 2022

I just got the same error. It worked flawlessly for hours until about 50k population. We were playing with the free DLCs the whole game. Sadly, I cannot pinpoint any specific reason.

Coincidently, we never had a fire department until very recently, so there might be some connection there. So maybe adriendomoison is onto something.

I also noticed, that it was always the same player who did not receive any updates. It did not matter which player hosted the game in my case. Player 1 (original host) would not get updates, while Player 2 (original client) did get all the updates even if Player 2 hosted the game now. PC of Player 1 has less RAM.
Edit: After restarting pc for Player 1 it works now again. This adds more weight to my guess about it being a RAM issue.

Is there a way to attach a debugger to the running mod somehow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants