rwmt / Multiplayer

Zetrith's Multiplayer mod for RimWorld
MIT License
481 stars 98 forks source link

Include map count in desync info #483

Open SokyranTheDragon opened 4 months ago

SokyranTheDragon commented 4 months ago

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.