OcRam

Servant of the Universe
Veteran
Joined
Aug 2, 2016
Messages
573
Reaction score
688
First Language
Finnish
Primarily Uses
RMMZ
Introduction

This plugin uses region IDs to determine a player 'floor level'. Even autotiles can be drawn ABOVE players (if player is on lower ground). I have tried to find this type of plugin for a long time, then decided to code one my self.

I know you can use different tilesets or events to accomplish this, but this saves a lot of tiles in my tilesets. And no more event switches to toggle higher / lower ground.

Use event comments <lower> or <higher> to assign event floor level. If autotiles A3 (roofs) or A4 (walltop) tiles are used "Auto-assign" (no comments found) will assign the event to higher floor level, else event is assigned to lower floor level.

Also works (for example) with "OcRam_Local_Coop" and Yanfly engine -plugins (no issues known).

ps. You can use this plugin indoors as door passages also (shown later).

Here's what you need:
  1. "OcRam_Passages" -plugin

  2. Mark regions
  • RegionID 16 = Underpassage (this will set player to lower ground)
  • RegionID 17 = Overpassage (this will set player to higher ground, also draws B-E layers)
  • RegionID 18 = Cover tile for tiles B-E (transparent background)
  • RegionID 19 = Autotile Cover for A tiles (opaque background)
  • RegionID 20 = Always block passage (for blocking ie. door way sides)
  • RegionID 21 = Block passage AND draw tiles ABOVE, if on lower floor
  • RegionID 22 = Block passage to underpassage region (can be used to fix RMMV core "bug" where passable tile, like "bush", allows passage over cliffs)
    is_this_bug.png
Credits to PandaMaru for bridge tiles.
passages_outdoors.png

passages_indoors.png

3. Try it


All OcRam -plugins now available at ocram-codes.net

Please read:
Terms of Use

Latest version: Download from here

All my plugins: Check 'em out!


My (long-term) project
banner.png
 

Attachments

Last edited:

Joy Diamond

Talkative
Veteran
Joined
Nov 12, 2017
Messages
135
Reaction score
173
First Language
English
Primarily Uses
RMMV
Wow, this looks really amazing!
+1 Yes, it looks quite amazing. Both:
  • In what it does;
  • but more importantly, in the very nice posting & pictures explaining what it does.
Also reading the code, it looks well written, clear, concise & a reasonable amount of comments.

... Note sure if I could use it, though, due to commercial limitations ...
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,105
First Language
English
Primarily Uses
RMMV
This is so useful!
I just re-did a bunch of my maps with this and tried to break it in any way possible, but as long as the regions are set up correctly it always worked for me!
 

styx92

Veteran
Veteran
Joined
Jan 7, 2016
Messages
310
Reaction score
39
First Language
German
Primarily Uses
I get a crash at the begin:

Unbenannt.JPG

Maybe you get it with this screenshot.

But a very needfull plugin, i think.

EDIT: Okay i found the troublemaker Plugin :D Its SAN_Analogmove plugin. If i dont use it, than it works :)
 
Last edited by a moderator:

Joy Diamond

Talkative
Veteran
Joined
Nov 12, 2017
Messages
135
Reaction score
173
First Language
English
Primarily Uses
RMMV
Styx92,

Can you please post a list of all your plugins you are using?

Also can you start this with a new project, and see if you can reproduce the crash you are seeing?
Thanks,

Joy Diamond.

NOTE: You can edit your previous message, easier for others than creating a new one. Thanks!
 

OcRam

Servant of the Universe
Veteran
Joined
Aug 2, 2016
Messages
573
Reaction score
688
First Language
Finnish
Primarily Uses
RMMZ
I get a crash at the begin:


Maybe you get it with this screenshot.

But a very needfull plugin, i think.
I took a look at the line 488 and the problem is that current scene (or it's childerens) are not initialized. As Joy Diamond asked I think I need plugins that are in use. Also the plugin order or updating this plugin (to v1.03) may solve this.

EDIT: I managed to reproduce same error! I will try to make this plugin compatible with 'SAN_AnalogMove' -plugin. Thank you for the information.

EDIT2: SceneManager.isCurrentSceneStarted() -function returns always false (even if _tilemap is ready), but only when using SAN_AnalogMove -plugin. I think that needs to be fixed first...
 
Last edited by a moderator:

Ravenith

Veteran
Veteran
Joined
Mar 27, 2012
Messages
263
Reaction score
15
First Language
Greek
Primarily Uses
Kudos both for the script and the detailed, concise description. You, Sir or Madam, deserve a cookie.
 

wrap

Villager
Member
Joined
Sep 2, 2017
Messages
9
Reaction score
6
First Language
Japanese
Primarily Uses
RMMV
Is there a way to solve this problem?
 

Sharm

Pixel Tile Artist
Veteran
Joined
Nov 15, 2012
Messages
12,747
Reaction score
10,797
First Language
English
Primarily Uses
N/A
Oh, cool! I'm likely going to be using this in every game I make.

[mod]@styx92 and @OcRam Red, like blue, is a reserved color for moderators. I've edited it out of your posts.[/mod]
 

OcRam

Servant of the Universe
Veteran
Joined
Aug 2, 2016
Messages
573
Reaction score
688
First Language
Finnish
Primarily Uses
RMMZ
Is there a way to solve this problem?
Yes, there are solutions (actually several ways to do it), but I think I'll implement new RegionID 21 (where passage is blocked AND tiles are draw above player). I will provide an example when new version is released (maybe later this week). Laters!

Edit: Actually this was easy peasy and it's ready already. ENJOY! :)
 
Last edited:

PinkMarble

Harbinger of Pink Doom
Member
Joined
Dec 4, 2017
Messages
5
Reaction score
5
First Language
English
Primarily Uses
RMMV
How I’ve longed for something like this, if only I knew JavaScript at all.

Anyway, my eternal thanks, this pink marble is officially in love with you.
 

wrap

Villager
Member
Joined
Sep 2, 2017
Messages
9
Reaction score
6
First Language
Japanese
Primarily Uses
RMMV
I was late for noticing.
You responded quickly and perfectly. OcRam, thank you very much!
 

Rweinegger

Villager
Member
Joined
Nov 30, 2017
Messages
6
Reaction score
1
First Language
Ger
Primarily Uses
RMMV
Really nice Plugin :)

I found something: If you stay on the bridge and u use the touch interface from a smartphone, than u can jumpt from region tile 16 to region tile 17.

Am I to stupid to use it right or is it like this?
 

Attachments

OcRam

Servant of the Universe
Veteran
Joined
Aug 2, 2016
Messages
573
Reaction score
688
First Language
Finnish
Primarily Uses
RMMZ
Really nice Plugin :)

I found something: If you stay on the bridge and u use the touch interface from a smartphone, than u can jumpt from region tile 16 to region tile 17.

Am I to stupid to use it right or is it like this?
Thank you for your intrest towards this plugin. If I understood this correctly; please check that tileset passages are configured correctly (example below).
bridge_support.png

Please let me know if this was the answer you were looking for.
 

Nicke

Fortune seeker
Veteran
Joined
Apr 4, 2012
Messages
549
Reaction score
551
First Language
Swedish
Primarily Uses
RMMV
Hey, I have a little problem with this plugin. I use this bridge as shown below and walking under works just fine but when you walk above it there is a wierd bug with the railing. I would like it to show above the player and not below. Hope you understand!

 

OcRam

Servant of the Universe
Veteran
Joined
Aug 2, 2016
Messages
573
Reaction score
688
First Language
Finnish
Primarily Uses
RMMZ
Hey, I have a little problem with this plugin. I use this bridge as shown below and walking under works just fine but when you walk above it there is a wierd bug with the railing. I would like it to show above the player and not below. Hope you understand!

Thank you for the message. Your post is clear and well explained. I'm fixing that to next release (v1.06 - maybe later this week).

Edit: New version (v1.06) is now released where this issue has been fixed (hopefully). Please let me know if this patch fixed or didn't fix the problem :)
 
Last edited:

PinkMarble

Harbinger of Pink Doom
Member
Joined
Dec 4, 2017
Messages
5
Reaction score
5
First Language
English
Primarily Uses
RMMV
Hey, I have a little problem with this plugin. I use this bridge as shown below and walking under works just fine but when you walk above it there is a wierd bug with the railing. I would like it to show above the player and not below. Hope you understand!

I’ve run into a similar issue, but I just countered it with Above Player events. It works perfectly, although it would be better to have a built in alternative. If you are stalling your map making due to this, I recommend using events until it’s fixed.
 

Rweinegger

Villager
Member
Joined
Nov 30, 2017
Messages
6
Reaction score
1
First Language
Ger
Primarily Uses
RMMV
Thank you for your intrest towards this plugin. If I understood this correctly; please check that tileset passages are configured correctly (example below).
View attachment 78442

Please let me know if this was the answer you were looking for.
You had right! I'm Sorry xD
But I'm wondering why before it works with the arrow keys, but when I use the Mouse then it won't work?
 

OcRam

Servant of the Universe
Veteran
Joined
Aug 2, 2016
Messages
573
Reaction score
688
First Language
Finnish
Primarily Uses
RMMZ
You had right! I'm Sorry xD
But I'm wondering why before it works with the arrow keys, but when I use the Mouse then it won't work?
I think mouse/touch input is handled differently (if you press arrow key, only next tile passage is checked. But when you click somewhere on the map several tile passages are checked).
 

Users Who Are Viewing This Thread (Users: 0, Guests: 3)

Latest Threads

Latest Profile Posts

Our program, who art in memory,
Called by thy name;
Thy operating system run;
Thy function be done at runtime as it was on development.
Give us this day our daily output.
And forgive us our code duplication,
as we forgive those who
duplicate code against us.
And lead us not into frustration;
But deliver us from GOTOs.
For thine is algorithm,
The computation, and the solution,
Looping forever and ever.
Return;
NeoPGX wrote on Kes's profile.
Oh hey I just saw your comment on my profile status update.

The thing is I have twitter set up mark all my content as being potentially sensitive by default. I do it as a precaution even though I very rarely upload any such content.
I'm the fly in your soup
I'm the pebble in your shoe
I'm the pea beneath your bed
I'm the bump on every head
I'm the peel on which you slip
I'm the pin in every hip
I'm the thorn in your side
Makes you wriggle and writhe
And it's so easy when you're evil
bro how do I have over 30 OCs
A good way to mix your own music? What's the learning curve on that?
Would it be better to pay a composer?

Forum statistics

Threads
103,267
Messages
998,459
Members
134,771
Latest member
ArcanoTheDarksmiler
Top