Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Automap doesn't recognize rules when they the region is out of bounds #1224
I am using automap for border generation in Tiled.
Nevertheless I have a rule (region) (3x3) where only the middle cell is tested (input). The other cells should be set (output). Automapping doesn't accept this rule for border-cells.
I have uploaded a short example. Just open example.tmx
Sounds like a bug but it might be tricky to fix. I'll try to get to it eventually, or maybe @stefanbeller would like to come back to have a look at it?
Regarding this, I think it is likely just the undo history, which is unlimited at the moment. The automapper tries to reduce the amount of information stored by calculating a diff, but if it affects the entire border then the changed region will be the whole map.
That sounds like a bug (originally designed as a feature) to me.
What is intentional is that the output may be larger than the investigated area for the inputs. This however doesn't apply rules when the output would not fit completely on the map, i.e. if the output would be cropped by the map border, the rest which would end up on the map is not put out correctly?
Do I understand that right?