Problem with an autotile

Hello everyone,

I am using tilesets which were originally made for XP. I was able to scale everything to MV standards (including autotiles like water, grass, dirt etc.) and it works perfect. The only problem I have is one fence.

This is the original XP fence:
X6Jxg55.png


This is the fence scaled for MV:
VO2QQQ8.png


And this is what it looks like ingame:
1cBmMN0.png


For some reason the fence looks a little strange at the edges, as you can see in the picture. I'm not really sure where the problem lies. The rest of the fence works fine.
Where do I have to change something? Thanks in advance.

I've moved this thread to Resource Support. Thank you.


You've not set the autotile up quite correctly, though without opening the full file in I can't pinpoint exactly where it is.

This blog post explains how the autotiles work. It was written for Ace, but aside from the 32x32 and 16x16 dimensions, they work they same way in MV.

If you need help with them, post the whole tilesheet and I can take a look.
In the XP version, the top of the fence posts does not reach the gridline, but in the MV version, they do in the upper part and the top right corner part, but the bottom of the autotile does not have them adjusted in a similar way. I'd try getting that bottom half moved up so the fence posts reach the gridline, and that may solve your issue.

@mlogan should there be a link to a blog post there?
Sorry for the wrong sub-forum. Which blog do you mean?

Here is the original tileset made for XP:
Spoiler
T88ECDu.jpg

The fence was converted to VX first, before I scaled it for MV. Here is the VX file:
Spoiler
oUXXdgp.png

And here the file scaled for MV:
Spoiler
SOaaaiM.png


Edit:
In the XP version, the top of the fence posts does not reach the gridline, but in the MV version, they do in the upper part and the top right corner part, but the bottom of the autotile does not have them adjusted in a similar way. I'd try getting that bottom half moved up so the fence posts reach the gridline, and that may solve your issue.
[...]

I will try to fix that, thanks for your reply.
Could you tell me if the grid I placed is correct? Sometimes I used wrong sizes for my grids (especially for autotiles).
Oh sorry, forgot the link. 😛 http://blog.rpgmakerweb.com/tutorials/anatomy-of-an-autotile/

I'll take a look at it.
tbh I'd grab one of the default MV fence autotiles and compare that. MV's grid is 48x48 while XP's/VX's is 32x32. If you use a 24x24 grid it should break the autotile up well enough for you to see what's happening. It looks like you might have already done that.
So yeah, the problem is in the corner pieces. When it draws the corners it combines one of the 24x24 corner pieces with some of the 24x24 tile pieces, to make the full corner. You can see here two of the pieces that make up half of the whole 48x48 corner piece and how they are fitting together to make the error you see on your maps:

fence.png
tbh I'd grab one of the default MV fence autotiles and compare that. MV's grid is 48x48 while XP's/VX's is 32x32. If you use a 24x24 grid it should break the autotile up well enough for you to see what's happening. It looks like you might have already done that.

Hmm, not quite:
2dhkSUL.png


Tbh I always go 1 px up or down until the grid finally fits. 🙂
That's why I asked if the size of the grid is correct. I used to use a smaller size and that messed up all my autotiles (and nearly drove me insane).
I'll have a look at the tutorial now and try to fix it with what you said before Shaz.



Edit:
So yeah, the problem is in the corner pieces. When it draws the corners it combines one of the 24x24 corner pieces with some of the 24x24 tile pieces, to make the full corner. You can see here two of the pieces that make up half of the whole 48x48 corner piece and how they are fitting together to make the error you see on your maps:

View attachment 70641

Thank you! It took me hours to figure out that I have no idea what's wrong. 🙂
I think I have enough to solve it now, thanks to both of you!
(For some reason my browser refuses to let me use the Edit button again)
One more question. Where does this error come from? Is there no way to avoid it, because it was originally made for XP?
Or did I make a mistake when changing the fence from XP to VX?
XP tiles are a very different format than Ace or MV, so yes, a bit of a workaround would be needed to format the XP autotiles to be usable for VX, Ace or MV. It's not just a simple matter of copy/pasting them, sometimes it can take more work than that.

So, yes, technically you made a mistake, but it's not an easy task to begin with.
That's what I thought.
But now I know that I have to start from scratch again. Thanks again!
Doing fences in with the VX/Ace/MV style autotiles is stupid hard. Personally I'd just throw them onto a B-E sheet and be done with it. That way fences can be taller and more interestingly arranged.

I find it easiest to think of the edges and corners first and not worry about the middle until the end. So all four corners makes one fence post, the vertical sides (left and right edges) make a vertical line of fencing, the top and bottom strips make one fence line, ect. This means that the top fence and the bottom fence have to be almost in the same spot. If you look at your tileset you'll see that yours don't do that, the top posts are much higher than your bottom ones, which is why you're getting alignment errors when you try to map with it. As for the corner bits I like to make a single line cross in the editor and screencap it. Then I can see really easily how things need to be aligned to make the corners match up.
I never thought of doing fences with B-E tiles.
Maybe I'll just do that (especially when someone who knows what she's talking about tells me that fence-autotiles are hard to fix).

Up until now I was happy with the status quo and it felt like I was sooooo close with finishing the fence, just that little alignment error from my first post. I see what you mean with the different heights of the posts (and I never noticed that), but that doesn't seem to create any problems I'm aware of. I'm currently running around my map (it contains a lot of that fence) and no matter from which angle I approach it, everything seems fine so far.

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-an-autotile.82894/