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

Almost-identical metatile warning #53

Open
purrfectdoodle opened this issue Jul 31, 2024 · 1 comment
Open

Almost-identical metatile warning #53

purrfectdoodle opened this issue Jul 31, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@purrfectdoodle
Copy link

Let's say I make a signpost metatile on my primary set on the middle layer. Its bottom layer is grass or something.
Now I have a secondary set that's got some special orange grass, and I put that same signpost in the secondary set on top of that orange grass.
Then at some point I edit a pixel or two on the signpost on one of the two sets, but at this point I've forgotten about the identical signpost on the other set.
I have no idea how easily doable a warning when two metatiles (16x16) are almost identical but not quite would be. A "hey are you sure this is intentional?" sort of thing.

@purrfectdoodle purrfectdoodle added the enhancement New feature or request label Jul 31, 2024
@grunt-lucas
Copy link
Owner

It's very doable actually. There's this concept in text processing called Levenshtein distance. If I can come up with a clever way to represent a particular metatile layer as text, then I can probably use something like this to warn the user when it detects two tiles that are within a certain distance threshold, as that probably indicates a user mistake of some sort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants