hampusborgos/rme

Search for duplicated items

Leesneaks opened this issue ยท 6 comments

Is there a way of making it so you can search the map for tiles that contain the two or more of the same time in the tile stack..

I've come across a lot of 3612 (stone) that has like 5 on the same tile.
More just a function for clean up.

There are places where stacked items are intentional, like boxes.

There are places where stacked items are intentional, like boxes.

Yeah that is pretty obvious.. but if you use a real-map you get a lot of extra stacked items.
like in the screenshot, i very much doubt these are intentional.

image
image

This would be better with search options

  • Include movable items yes/no
  • Include fixed items yes/no
  • A list of item IDs to ignore. This would be very useful to exclude boxes and parcels
  • A list of item IDs to explicitly search for

I can't think of a time when fixed items should ever be duplicated on a space. It would be nice to have a clean up menu action that would automatically fix such an issue.

Maybe a tool can be developed with https://github.com/Inconcessus/OTBM2JSON

We already have a clean map feature. So a first step would probably be to make it remove duplicate walls and grounds as well or have it as an additional option.

But yes, it can be made more advanced with a dialog where you can search for problems according to your settings and then it presents a list with coordinates and information about what the problem is. And then you can decide if you want to "auto fix" them or check the coordinates manually. The map could jump to that problematic location if you click the list item.

Feature added
Select > Find on Selection > Find Duplicated
Edit > Find on Map > Find Duplicated

3ee2d5d