Passage setitngs not working on select tiles

Hi! I've been currently testing tilesets and textures for my game, and I came upon a problem that I have with very specific tiles refusing to work properly with the passage settings.

These tiles have both the 'passable under tile' and are also restricted to only be passable through specific directions. I had set up other tiles the same way, but have had problems with these ones to cooperate. The ones giving me trouble are circled in red. The ones that are set up similarly are circled in green. I've also attached a video below.

I don't know what I'm doing wrong here exactly, or if I'm doing anything at all. I have the VizuStella Core MZ plugin on but I'm sure that isn't the problem.

1725258604276.png

1725258618350.png

I've observed this as well where tiles that are set to display over the characters that have limited passability don't restrict the player's movement. The way I fixed it was to create a blank tile with the limited passability setting I needed (e.g. blocked from the top, down, left, or right) that was set to display under the characters, and then place it on another layer of the map.

I think that the reason certain tiles on your map are blocking player movement even though they are set to display above the players is because they are next to tiles that block player movement from that direction that are set to display under the players. You can try testing this by placing the tiles you circled in green by themselves (i.e. surrounded by tiles that don't block movement) and seeing if they still block the player's movement the way they do when they are grouped together.
It appears to be specific and intentional that star passability tiles are not taken into account for passability, regardless of the direction settings. See from Game_Map.checkPassage():

1726021870657.png


I haven't set up tiles and tested this in a game, but you may get the effect you want by simply removing that check.

Paste the below into a text editor, save as a *.js file, include as a plugin:
Code:
Game_Map.prototype.checkPassage = function(x, y, bit) {
    const flags = this.tilesetFlags();
    const tiles = this.allTiles(x, y);
    for (const tile of tiles) {
        const flag = flags[tile];
        if ((flag & bit) === 0) {
            // [o] Passable
            return true;
        }
        if ((flag & bit) === bit) {
            // [x] Impassable
            return false;
        }
    }
    return false;
};
Thank you so much! I'll try it out on my sandbox

Original thread: https://forums.rpgmakerweb.com/threads/passage-setitngs-not-working-on-select-tiles.171606/