itsjavi / autotiler

Autotile 47-tile blob tileset generator application with Godot export support. Based on Electron JS.
https://route1rodent.itch.io/autotiler
MIT License
47 stars 2 forks source link

Fixed for Godot TileSet generation creates Autotile Bitmask tiles outside of region #4

Closed roushk closed 3 years ago

roushk commented 3 years ago

I found an issue that after generating a Godot autotile with autotiler there are extra tiles outside of the TileSet region with a bitmask as you can see in the image below. I encountered this issue firsthand after using this tool to save time creating TileSets and ran into the weird bug where occasionally some of my tiles were invisible and did some digging into Godot and then the TileSet's bitmask itself and found it.

Autotiler bug

Digging into the .tres files it looks like its the 3 last generated bitmasks that are the problem, specifically in the tileset.tres the lines:

Vector2( 11, 0 ), 442, Vector2( 11, 1 ), 443, Vector2( 11, 2 ), 154

Looking above you can see the same bitmasks 442, 443, and 154 used earlier and can spot them on the image of the bitmasks. After removing these from my local copy of the repo and re-exporting to Godot the issue was fixed.

itsjavi commented 3 years ago

cool! thanks for the fix