Is there a way in Tiled, or perhaps via existing third party utility, to loop over a Tiled Map Tilesheet to check for duplicate image data and assign each said duplicate tile the same set of properties?
For example, in the case of a huge existing tilesheet image say (ie- single PNG image) there are many tiles that are the same.
You can easily import the single PNG and setup a Tilesheet with separated tiles depending on the dimensions you want it sliced up - however…
for my game, I require each tile to have a custom property “name”. This name can and should be the same for all tiles of the same basic image data. The problem is in Tiled the only way I can find to accommodate for applying a name to duplicate tiles in this manner is by selecting them and applying the property “name” one at a time…
you can of course select multiple tiles and apply a custom property to all of those tiles in your selection to speed up the process - but still I am finding this is tedious given the size and variety/placement of these duplicate tiles in my massive tilesheet. Also ripe for error; as a programmer I’d prefer not to have to eye things out or potentially miss a tile that should have been labelled.
What I’d like to do is minimize the manual work to just finding ONE unique tile and applying my custom “name” property to each thereof and let Tiled (or third party util) auto-detect the rest of the duplicates in the Tilesheet and adopt/inherit that same custom property from the corresponding manually labelled one.
Hope this makes sense; and if anyone knows a tool that can do this I’d be keen to try it!
Otherwise am thinking about writing a script to do this but just wanted to see if this has been done before going down that rabbit hole.