What's up Guys, I have created a tool to optimize bbdoc files by removing duplicate images. What you will achieve with this tool is smaller bbdoc and smaller game binaries. It does not make it faster, just makes it smaller... Ok, first things first, SAFETY! Use this tool for your OWN RISK! This is NOT an official tool from BuildBox, this is a HACK! I have created this tool for BB 1.3.6 -- I have no idea how it behaves on BB 2 or other versions! DO NOT USE ON BB2 unless you know what you are doing! This was designed for Mac, might be an easy effort to port it to Windows, but will not run by default and might do some unexpected behavior, do DO NOT RUN ON WINDOWS! If you do not know how to open a command line on a Mac, DO NOT USE THIS TOOL! If you do not know how to user Perl script, DO NOT USE THIS TOOL! Call your friend who does! Call your IT specialist! Call your developer! Hire someone! Just DO NOT DO THIS BY YOURSELF if you have never heard of Perl... This tool although attempts to make backups, MAKE RELIABLE BACKP for yourself! This is destructive, and I CANNOT RECOVER your files! You are adult, please do not cry for mommy, DO YOUR RELIABLE BACKUP instead! Ok, so what this tool does is to analyze bbdoc, checks for duplicate images, and removes the ones that are duplicated. It then makes necessary modifications in the source file so every reference to the images will be corrected. It also deletes Atlases as well, so when you open your bbdoc with BuildBox it will be automatically re-generated from the existing images. You also need a little manual sanitization. After using this bbdocAntiDupe you need to open the bbdoc file and go to View -> Atlases, then click on Optimize button, and then Optimize Atlases button. An example: I have this simple demo with a sprite animation. My character blinks from time to time, otherwise just repeating the very same image all over again. Waste of space... Then I run bbdocAntiDupe: As you can see it removes lots of images, even though this project was a tiny little one. From the backup you can see that bbdoc shrinks to half. But in a real life you might not be able to achieve 50% size reduction, plus this is not fair as atlases are also removed... So do not take as this tool reduce bbdoc size by half because I do not claim that. Anyways, then open bbdoc, and when you open View -> Atlases, you will see some weird stuff on the Atlas: There are only 3 images left from the animation, but there are still references left - I might modify the tool later to remove these, right now you need to click on Optimize button, then you will see this: References are gone! You might also want to click on Optimize Atlases for best results... See attachment... Enjoy!