CitiesSkylinesMultiplayer / CSM

Source code for the Cities: Skylines Multiplayer mod (CSM)

Home Page:https://citiesskylinesmultiplayer.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Client constructing buildings not syncing correctly

Guusje2 opened this issue · 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.

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

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

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.

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

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.

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

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?