How to: OverpassTile Plugin

Hi everyone, this is my first post so hopefully I've done everything right!


So I've seen a fair amount of people ask about the OverpassTile plugin with no real answer to their questions, and this is to clear it all up. If you have no idea what I'm talking about, here's the context: in the DLC folder of your RPG Maker MV files, you'll find a bunch of KADOKAWA plugins. OverpassTile.js is one of these plugins.


First of all, what does this plugin even do?


It lets you walk over OR under a tile - an easy example to use this on would be a bridge. Typically, because of the tileset passibility, you can only walk over it, not under it. Here's some pictures in case I haven't explained it very well:

Spoiler
UNDER the bridge:


Screen Shot 2017-01-26 at 11.04.31 PM.png


OVER the bridge: (in this case, your actor can't walk off the side of the bridge; he/she can only get off at the ends)


Screen Shot 2017-01-26 at 11.05.08 PM.png



So wait - how do you use this plugin?


It's simple, really. You just need two region tiles to set this up. By default, tiles 254 and 255 are used, but that is changeable in the parameters. Respectively, they are called the gateway region tile and the overpass region tile.


Basically, the overpass tile is the "bridge" itself (or whatever tile you may be using). The gateway tile is what lets the game know that the actor is over or under the "bridge", so these gateway tiles are used on the ends of the bridge. This explanation might be strange to get, so here's another picture of how it's supposed to be set up to get the result from the above pictures^^.

Spoiler
REGION SET UP:


Screen Shot 2017-01-26 at 10.59.28 PM.png



There are some problems with this plugin, though (as warned in the file), but I have a solution linked further down:


1. collision check is not supported.


2. putting events near the gateways may mess with the checks it needs to make.


This means the following can happen:


1. an event on top of the bridge can stop your actor from walking under it even if you're supposed to be under the bridge.


2. events beside the bridge are still accessible even though you're on top of the bridge and the event is off of it.


3. damage floor still applies even if you're on top of the bridge.


4. bush floor still applies even if you're on top of the bridge.


I haven't personally tested this far myself, but the link below explains these problems in better detail and also offers an extension plugin that fixes the collision check.


Link: http://andrewxeno.github.io/posts/2015/12/22/OverpassTile-Fix/


Hope this post was okay!


aeratheninja-
You are da best, thank you so much!
Spoiler
2017-06-22.png
@aeratheninja I set it up just like your picture but region 254 won't let me get onto the bridge for some reason. I can go under it just fine but I can't actually go over it for some reason. I can step onto where region 254 is but I can go no further, I can't walk over region 255 even though I can go under it. I really want this plugin to work for me, do you have any suggestions for me?
@TheAlphaRune
In your tileset, have you changed the 4-way passability of those cliff pieces? They may be set so that you cannot walk over the edge of them (as though it were an actual cliff) and that is why it doesn't want you to go onto the bridge.
Hmm, I just tried it again myself and it was working for me... I would double check the passability like feckyeslife said, of all the tiles you're using for the plugin. I guess I would double check that the regions are the same ones in the plugin parameters as well, although that doesn't seem like your problem.

If you still have this problem, does it happen in a new, blank project?
So… Doesn't work for me…
The directional locking works fine; When 'on' the "bridge", I can't walk off except to the "bridge end" region, and when 'under' the "bridge", the "bridge end" region is impassable.

But… I can't accually go under the "bridge"… I'm trying to use this to go behind houses and cliffs… but… since I can't set autotiles to a ★ passabilty, the script does not function the way I need it to…

I have VX Ace script that was modified from the original, which I used in my VX Ace projects, though it wasn't perfect, it at least allowed me to do most of what I needed.

One of the things I needed to do was make an impassible above player region, as the VX Ace modified script, by default, had the tile above everything, and passable or under player with default passabilty, and due to the player being offset upwards by a few pixels, I needed tiles that were above the player but impassable. The problem with the VX Ace script is that the tile was moved above everything except above player events, so tiles on B and C would be covered by the A tile. So cracks, mirrors, and such, all needed to be events if they were on walls that went infront of the player.

Anyone know enough to make a script similar to this script, but do something like the VX Ace script I used, except place the A tiles affected above the player, but under B, C, and so one tilesets? One that I can use in addition to this one?
If you are refering to NeonBlack's script, I don't think that there is an equivalent MV plugin. As A tab tiles cannot be set to star, I think the only way to do this is to make copies of the appropriate bits of the A tab tile and put them on a B-E tile sheet. Then, possibily, with the way MV does mapping with that 'extra' layer, your cracks etc. can be put on top?
I can set A tileset tiles to ★, just not autotiles, last time I checked, and that's what I need to set to ★.

I've been looking for a way to do this since MV was released. I pre-ordered MV to get the mascot characters, and the other bonuses…

Sadly I've done nothing with MV, due to VX Ace being able to do so much more. I'm not upset, because the money will support possible future RPG Maker brand software. Just disappointed…

If there really is no way to make it so I can pass behind autotiles in MV, I'm just gonna go back to VX Ace. Thanks for your help.
Thanks a mil, this helped a lot
This is a helpful tutorial, but it leaves out a very relevant and important piece of information, which the plugin itself doesn't mention:

In order for the overpass tiles to work properly, the tiles themselves HAVE to be B-E tiles set to fully passable (the O symbol, with no blocked directions in 4 dir), and placed over fully passable A tiles. If they are set to anything else, it wont work right.

Some of the behaviors I've observed can be useful, though.

The specific behaviors I've tested:
You can only get onto and off of a bridge region through an entry region.
The bridge entry regions are impassable from under the overpass, regardless of tile pasability or whether there is a B-E tile present.
If the B-E tile blocks passage in any way, it will block passage in same way both on the overpass and underneath.
A tiles will block passage in the expected way underneath, but will be passable in the overpass as long as there is a passable B-E tile present. This means you can stick an unpassable river under the overpass and the character will only be able to walk on either side of it.
If the A tile is impassable, and there is no passable B-E tile present, the tile is impassable both on and under the bridge.
Oddly, if you have a passable A tile like the grass overlays over an impassable ground layer A tile under the overpass, you can walk onto it from a passable tile outside the overpass but not while under the overpass. You also can't walk OFF of it onto a different kind of passable tile under the overpass.
Star tiles on the bridge region can't be moved onto from the bridge entry region, but can be moved onto once on the bridge region itself. However, they will not be over the character, they'll be under the character. To have something the character walks under while ON the overpass, you have to use an event set to 'above character' priority.
Tiles in the bridge region will act like passable bridge tiles when there is no B-E tile present, as long as the A tile is passable. (they wont be over the character while under the overpass, however).

(edit to add)
Adding the fix plugin mentioned by the op does some very nice things with events. The events on the overpass wont interact with the player in any way while he's under the overpass, but do what they should while he's on the bridge and vice versa. Note that an event placed in the bridge region is assumed to be on the bridge. They are only UNDER the overpass if they move into the region from a non-entry region. Very nice for encounter events.

Mods: I sincerely apologize if this counts as a necropost, but the only information I could find on using this plugin was this thread, and since it didn't include the information above I had to spend an hour or so testing things to figure out how to use the plugin properly. I thought I could save anyone else that finds this thread a little time by adding my results.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-overpasstile-plugin.74170/