-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Missing tiles in debug.log separate from missing with looks_like #39358
Missing tiles in debug.log separate from missing with looks_like #39358
Conversation
Tiles for entities with looks_like are still missing from the tileset and should still be reported. Maybe in !a?a separate line in the report. |
Ah, I see -- my motivation was originally to update a tileset. Then, when I looked at the number of missing tiles, it seemed very daunting.... Is the intention of "looks_like" to indicate that something should look exactly like something else (i.e. alexandrite_silver_ring vs garnet_silver_ring), or is that something that we should leave up to the tileset maintainers? |
|
Yes, the proper way to say that we want tiles to look the same is to specify them within the tileset definition. |
Updated to show missing looks_like in a new line. With that in mind, my proposed change might make things worse, and not better -- tile maintainers would be more likely to rely on looks_like, and not the proper way of copying ids inside the tile_config, or creating new tiles for each looks_like. I'll leave the PR open, but feel to close it. |
I don't see how it can make things worse - you've basically just split output to two rows. Number of reported tiles would be the same. |
Merge pull request CleverRaven#39358 from johnstoecker/missing-tiles-…
Summary:
Summary: None
Purpose of change
Currently, when reloading a tileset, debug.log outputs missing tiles, even if their "looks_like" definition is in the tileset.
For example, when the RetroDays tileset is reloaded, debug.log displays "alexandrite_silver_ring" as missing. However, "alexandrite_silver_ring" has copy_from "garnet_silver_ring" which looks_like "silver_ring". The tile_config.json in RetroDays has "silver_ring" defined, so we might want to separately log it.
Cleaning up this output will help tileset maintainers more easily find missing tiles.
Describe the solution
Use the find_tile_looks_like, and if that is defined in the tileset, don't output as missing.
The output would look like:
Testing
Reloaded a few tilesets, made sure that they worked in game. Checked the output in debug.log for missing tiles. The missing ones are actually missing, and the ones with missing looks_like still appear, but with their generic tile.