Tool to find duplicate tiles
Moderator: Moderators
Tool to find duplicate tiles
Is there a program that takes the .chr file of an NES project and tells you where you have duplicate tiles?
My game "City Trouble":
Gameplay video: https://youtu.be/Eee0yurkIW4
Download (ROM, manual, artworks): http://www.denny-r-walter.de/city.html
Gameplay video: https://youtu.be/Eee0yurkIW4
Download (ROM, manual, artworks): http://www.denny-r-walter.de/city.html
Re: Tool to find duplicate tiles
It's a bit ancient now, but you can always re-compile the C source to my program: http://www.chrismcovell.com/charlie.html
Re: Tool to find duplicate tiles
I wrote an NES program that can do that.DRW wrote:Is there a program that takes the .chr file of an NES project and tells you where you have duplicate tiles?
Re: Tool to find duplicate tiles
Thanks for your help.
ccovell's tool is the one that works best for me. (Since I have Windows XP, I didn't even need to recompile the file.)
With shiru's tool, I didn't find a way to list all duplicates at once. I only found the version where I click one tile and it shows me the duplicates of this one tile.
ccovell's tool is the one that works best for me. (Since I have Windows XP, I didn't even need to recompile the file.)
With shiru's tool, I didn't find a way to list all duplicates at once. I only found the version where I click one tile and it shows me the duplicates of this one tile.
If it's an NES program, how am I supposed to use an existing CHR file for a check?tepples wrote:I wrote an NES program that can do that.
My game "City Trouble":
Gameplay video: https://youtu.be/Eee0yurkIW4
Download (ROM, manual, artworks): http://www.denny-r-walter.de/city.html
Gameplay video: https://youtu.be/Eee0yurkIW4
Download (ROM, manual, artworks): http://www.denny-r-walter.de/city.html
- rainwarrior
- Posts: 8759
- Joined: Sun Jan 22, 2012 12:03 pm
- Location: Canada
- Contact:
Re: Tool to find duplicate tiles
It would be a very simple tool to write for yourself:
Code: Select all
for (int t=0; t<256; ++t) // iterate over 256 16-byte tiles
{
for (int u=0; u<t; ++u) // check every tile before this one
{
bool duplicate = true;
for (int b=0; b<16; ++b)
{
if (chr[(t*16)+b] != chr[(u*16)+b])
{
duplicate = false;
break;
}
}
if (duplicate)
{
printf("Tile %02X duplicates tile %02X\n",t,u);
break;
}
}
}