CSM icon indicating copy to clipboard operation
CSM copied to clipboard

Client constructing buildings not syncing correctly

Open ghpdohmen opened this issue 4 years ago • 7 comments

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 avatar Dec 26 '20 17:12 ghpdohmen

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

winnipeg21 avatar Dec 31 '20 06:12 winnipeg21

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

alexanderwassbjer avatar Jan 13 '21 07:01 alexanderwassbjer

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.

adriendomoison avatar Jan 13 '21 23:01 adriendomoison

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

kaenganxt avatar Jan 16 '21 22:01 kaenganxt

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.

winnipeg21 avatar Jan 16 '21 22:01 winnipeg21

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

adriendomoison avatar Jan 17 '21 03:01 adriendomoison

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?

Bluejanis avatar Oct 14 '22 08:10 Bluejanis