CnCNet / xna-cncnet-client

XNA / MonoGame based client for playing classic Command & Conquer games both online and offline with a CnCNet game spawner.
Other
228 stars 91 forks source link

Add unique identifier to map's display name, if there are dupes #299

Open devo1929 opened 2 years ago

devo1929 commented 2 years ago

Custom maps can be created with any name they want. Per feedback from a few people, it can be really frustrating when people take an already custom map and customize it further, but don't change the name of the map. Thus, people will have multiple maps in their list with the exact same name, with no way to uniquely identify them to either ignore them or delete them.

Proposal: Create a property called "DisplayName". After loading all maps, look for any with duped names and append the first few characters of their SHA value to the DisplayName. Areas in the UI where it uses Name for display purposes will need to use the new property. The reason for creating the new property is because Favorite Maps use "Name" as the identifier. Appending/modifying it for this would break favorite maps. Some players may have issues with Favorite Maps anyways if multiple maps are showing up for them with the same name.