Atom_Monky 14 Posted August 22, 2019 Hi, I have written a tool which calculates the number of colors in each tile of your mask image. It replicates how terrain builder would split the mask into tiles and checks each tile for issues. After calculating the mask colors it shows you a map overview with the error tiles ( if there are errers). When the mask contains error the tool will provide you with a fix mask function for example: An example mask has 8 colour surface types within a certain tile, the tool then calculates the percentage of each surface colour and replaces the 3 lowest percentage colours with the most used percentage surface colour within the surrounding 10*10 pixels (result picture below). | Changelog | v0.1 - pre releas stuff v2.0 - calculates the number of colors in each tile of the mask - gui v4.0 - fixes your mask - layer.cfg support - fix preview Documentation: Spoiler Example: -Setup: Spoiler - Calculation output view: Spoiler - Zomm & Tile info Spoiler - Fix your mask: Spoiler > Download Link HERE < Requirements: - java version 1.8.0_221* and higer (*tested with) - it may not run on pcs with weak cpu due to multithreading calculation. - it may need a lot RAM to calculate. (depence on mask size) Special thanks to: Pennyworth for helping me out with a lot of calculation stuff Mondkalb for his documentation picture 😉 Known issus: Installation loading issues => be patient it take up to 10 min I cant select my mask.png image => mask image need to be an .bmp file. Windows defender blocks exe => more information -> allow it anyways Antivirus blocks => Make an exception View is laggy => zoom in for less lagg max Mask size => if your mask ist over 30k pixels you can split it into 4 segmenst and runn each individually. ( tiles in row and mask size need to be divied by #segents in row) Please give me feedback if the tool works for you and if there is anything to improve. Feel free to contact me anytime for support 🙂 4 2 Share this post Link to post Share on other sites
HorribleGoat 1471 Posted August 22, 2019 Are there any limitations on how large images it can handle? I got a 65k pixel textures set up for my terrain in 4 pieces, can it load up multiple images and compare also the shared exdges? Or should a full 65k image be used? Share this post Link to post Share on other sites
Atom_Monky 14 Posted August 22, 2019 32 minutes ago, HorribleGoat said: Are there any limitations on how large images it can handle? I got a 65k pixel textures set up for my terrain in 4 pieces, can it load up multiple images and compare also the shared exdges? Or should a full 65k image be used? I only tryed max 16k, but give it a try. it may exceed your ram there is no multi images option yet but i will give it a try Share this post Link to post Share on other sites
HorribleGoat 1471 Posted August 22, 2019 Thanks! If you can get multi image us to work then I'll give a test run. I dont think i can spend time on compiling the images into full 65k right now. 1 Share this post Link to post Share on other sites
DL++ 397 Posted August 23, 2019 Always been an issue with image size limitations. I have a 32k mask so being able to process that without having to down scale it first would be good otherwise looks like a real neat little tool mate Share this post Link to post Share on other sites
Cype_Revenge 651 Posted August 27, 2019 very good idea! Thanks 💪 1 Share this post Link to post Share on other sites
Atom_Monky 14 Posted October 25, 2019 new Versin 4.0 released ! The tool can fix you mask now, you dont have to spend time to edit your mask to fit the 5 colors per tile anymore 🙂 1 2 Share this post Link to post Share on other sites
icebreakr 3140 Posted April 18, 2020 On 10/25/2019 at 10:20 AM, Atom_Monky said: new Versin 4.0 released ! The tool can fix you mask now, you dont have to spend time to edit your mask to fit the 5 colors per tile anymore 🙂 After the fix is done, how can we save the fixed tiles, or mask bmp? Share this post Link to post Share on other sites
grillstern666 0 Posted May 13, 2021 Hey, i tried this nice little tool, but encountered one thing: I cant double click within the tiles to open the info box. Any ideas on that? Share this post Link to post Share on other sites
Walkero0 15 Posted October 27, 2022 Hy. I used your tool many times and it worked great. But now at Windows 11 it may not work. It gets stuck on 100% loading: https://imgur.com/a/l5FqaOz I added the colorcalculator folder and exe to the windows defender exceptions. Also tried as admin. I use a 16k image bmp file. My pc has 24GB ram and a ryzen 5 5600x with enough power: https://imgur.com/a/yh57ISs Share this post Link to post Share on other sites
HorribleGoat 1471 Posted October 29, 2022 On 10/27/2022 at 9:38 PM, Walkero0 said: Hy. I used your tool many times and it worked great. But now at Windows 11 it may not work. It gets stuck on 100% loading: https://imgur.com/a/l5FqaOz I added the colorcalculator folder and exe to the windows defender exceptions. Also tried as admin. I use a 16k image bmp file. My pc has 24GB ram and a ryzen 5 5600x with enough power: https://imgur.com/a/yh57ISs use png for color check. bmps dont work as far as I've seen Share this post Link to post Share on other sites
Walkero0 15 Posted October 29, 2022 10 hours ago, HorribleGoat said: use png for color check. bmps dont work as far as I've seen ok that works thanks! But the doubleklick on tiles don't work and loading layers.cfg won't work (No colors in Layers.cfg detected ) My layers.cfg: https://pastebin.com/4YZF8WzM Share this post Link to post Share on other sites