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

Include map count in desync info #483

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SokyranTheDragon
Copy link
Member

It may be a bit of a niche use case, but some desyncs happen only (or a lot more frequently) when players are looking at different maps. Making a list of "which map was each player looking at" would be much more difficult to implement, but just having the map count can suggest if an issue could have possibly happened due to having multiple active maps or not.

I've added a bit of extra null safety (instead of just using Find.Maps.Count) as I've encountered a couple of weird situations in the past where Find.Maps.Count ended up throwing NullReferenceException. This may have been a weird mod conflict/interaction, but I've decided to be on the safer side here.

It may be a bit of a niche use case, but some desyncs happen only (or a lot more frequently) when players are looking at different maps. Making a list of "which map was each player looking at" would be much more difficult to implement, but just having the map count can suggest if an issue could have possibly happened due to having multiple active maps or not.

I've added a bit of extra safety (instead of `Find.Maps?.Count`) as I've encountered a couple of weird situations in the past where `Find.Maps.Count` ended up throwing `NullReferenceException`. This may have been a weird mod conflict/interaction, but I've decided to be on the safer side here.
@SokyranTheDragon SokyranTheDragon added low priority Quality of life or ignorable to an extent. 1.5 Fixes or bugs relating to 1.5 (Not Anomaly). labels Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.5 Fixes or bugs relating to 1.5 (Not Anomaly). low priority Quality of life or ignorable to an extent.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant