I’m trying to figure out automapping rules. At first I had troubles because it seems that it changed a lot accross versions, and I was reading old tutorials. But eventually I got some basic rule working. But for this case, I can’t figure it out:
I wanna turn the wall of block at the bottom left, to the nice one on the right. It’s a bit different than the automapping tutorials I followed, because it has to happen inside - not outside (or the 2-blocks-thin walls wouldn’t work).
Anyway, I have no idea yet how to make a working rule for this, but I wanted to start simple, and the very first test was to turn the rightmost 2x2 blocks into a nice wall-end.
So I created this basic rule, when there are 4 blocks surrounded on their right by nothing, they change to the wall-end.
And… it does not work.
-however- I found out that it does work if, instead of surrounding those 4 blocks by nothing, I surround them by any tile.
But in the tutorials I followed, it was like “if the editor find this pattern and there is nothing above, then it’s replaced”. But how does it work?
Is it that the region means “there has to be something in the region, but it HAS to be something, anything will work”? What I don’t understand is that it seems to work fine in this tutorial: https://www.youtube.com/watch?v=aQd3pDHhm3c
Has anyone made/met a rule for this kind of wall system btw? Again, the “fill the inner, the outline will be added” cannot work here, because a 2-tiles thick wall would have no inner part.
Also, this was just a first test, but in reality it also can’t work by testing if there is “nothing around the blocks”, because there will be something. Only that something can be anything but a block. I’ve read about the “inputnot” layers, will they allow this to work?
Also: it seems that a rule has to be linked to a specific layer. But can’t a rule apply to any leter (or the selected one maybe)? So that those walls could be replaced in any layer they happen to be in?
Edit: it appears that with an additional “inputnot” layer that covers the surrounding, it does work like it should. Even though I still have no idea why without that layer it does not work like in the video tutorial. Note that I had also tried “regions_input” and “regions_output” layers, without more success.
Edit2: it of course doesn’t work well at all if I define all corners, and I would like to know if “NoOverlappingRules” set to true would help, however I have the problem that the editor is entirely localized, and I can’t find where to change it to english, as I suspect that either “NoOverlappingRules” or “true” has been localized, and won’t work if I add it in english(?)
Finally, I believe (correct me if I’m wrong) that what also makes it difficult to work with is that the rules have feedback, that is, the input isn’t a copy of the original input, but the running, current input, to which rules have already been applied.