MV Looking for help re-layering graphics plugins (Or alternatives)

Heya, all y'all. This question/request has a fair bit of context.

Preemptive tl;dr: In an RPG Maker MV test game, I'm trying to get Shora's Lighting and Shadows to layer below Mog's Event Indicators and Tsukimi's Particle Emitters (Or the latter two above the first.)

I'll start with the premise. I'm trying to create a system that relies a lot on the manipulation of the character's senses:

Sight -- The player character has a vision cone that matches player facing and map walls block out areas with black shadows. Entities only appear when inside the cone or within a small radius of the player. Different conditions will affect the vision cone.

Hearing -- Events occasionally produce sounds, as do moving events. In addition to the audio cues, there will be a visual cue of text mirroring the sound that floats above the event, whether the event itself is visible or not. (Also in case of players who have the sound off or are otherwise unable to hear the cues.) Different conditions will affect audio volume, text visibility, and may cause hallucinatory sounds and text.

Smell -- Particle effects in different colors and shapes appear in a somewhat wide-ish area around events that carry a scent when a skill is toggled, allowing the player to track an object or entity that can't be readily seen or heard. Different conditions can affect a scent's color, or obscure it with excessive scent particles.

Currently, the following plugins are working beautifully in concert:
Movement -- HIME_LockFacingDirection, Galv_PixelMove, GALV_StationaryTurn
Sight -- MOG_EventSensor (Modified to affect opacity instead based on a different comment layout)
Sound -- Step Effect (by Yana), MOG_EventIndicators
Smell -- ParticleEmitter (by Tsukimi)

And this plugin is what's causing me grief -- Shora Lighting and Shadows (link)
It's doing almost exactly what I want in terms of sight--the light system and the dynamic shadow casting are ideal. (apart from some of the walls being completely blacked out, but I'm not worried about that at all right now.) ((Note: this plugin is free for non-commercial, paid for commercial.))

What I would like is for both the Emitted Particles and Event Indicators to appear above the shadows. However, this is how it appears during plugin tests:
LITesting.png

(please excuse the darkness in the shaded-but-not-black areas. My monitor is particularly bright)

And this is how I'd generally like it to look (crappy-image-edited):
LITestingIdeal.png

(Just to clear up any confusion, the tightness of the particles in the circle of the first image is just the configuration I was testing with. Making the particles wider is super easy. I'm focused specifically on the layering.)



Now, here are some of my attempts to fix the issue:

What I like about Particle Emitter (link) besides how versatile it is, is that the commands have a z-axis layering property tied to the tilemap/event z. Furthermore, it's attached to events, which means it moves with events. However, no matter how high I set the z-axis (the above example being at a z of 30,000), it doesn't appear above the shadows.

I've settled on Event Indicators (link) (No separate links) because it also attaches to events, and it can use properties such as opacity (I'd ideally like the text to fade in, float up, and fade out, which I can do by modifying the plugin) but nothing I know how to do can put it above the shadows.

I've tried Galv's Timed Message Popups (link) and although the messages appear above the shadows and tie to events, I don't know how to make them fade in and out instead of popping in and out.

I've also tried Mog's Animated Text (link) (No separate links), but although they appear above the shadows and can fade in and out, I don't know how to make them follow the events (since they're tied to screen position, and the player can move which tugs the message along with them.) A workaround would be to size the maps all within the size of the game window, but it's not ideal.

In the case of the Timed Message Popups and Animated Text, even if I got them to work, it still doesn't solve the Particle layering.

I've also looked into Caethyril's plugins, and there's one right here (link) that changes the graphics container of the pictures, and was modified to be able to put individual pictures into the tilemap container. I've tried messing around with it to change the shadow container or the Particle Emitter and Event Indicator containers, but I don't know what I'm doing at all, which is part of my motivation for posting here. (That is to say, even though I can pretty readily adjust the Z of each element within its container, I don't know how to change these elements from one container to another.)

I am not particularly skilled at javascript itself, and I'm more of a beginner when it comes to MV's base.




Phew, so, with all this context, here's what I'm looking for:

Ideally, a way to change the shadows and light so they layer beneath the Event Indicators and Particles without affecting too much else.

Alternatively, a way to change the Event Indicators and Particles so they layer above the shadows, even if that means a little less functionality.

Alternatively-alternatively, recommendations for alternative plugins to Shora's Lighting and Shadows OR Event Indicators and Particle Emitter that can be layered in the way I'm looking for and let me do what I'm trying to get at visually.

I really don't know what's best here, so any advice, suggestions, recommendations, or plugin mods help.
Bump.
Hi, I'll try helping but that will take time to study the codebase for these plugins.

EDIT:
I had a time to study the MOG_EventIndicators and Shora Light and Shadows plugins.
Indeed Shora Light and shadows plugin is being drawn after MOG event indicators are drawn Hence your problems.

A possible solution is to force MOG to draw event indicators later.
I can try testing the solution but I'd help me if you could share your project or some demo project that has all the plugins set up so I can check if it helps with your specific set of plugins.
light layer is like pixi map, which has it's own container.
the only way to solve it is to draw it above it this container.

CTB has a plugin to place "pictures" above containers which
might work, but this has look for its name in order to do that.

which can be found [here]

there is low instruction + he cannot help as he passed away.
but it works perfect for huds and picture related plugins (particles and indicators)
are pictures, so you might be able to draw this above it.
I reproduced the problem:
1741988222270.png

I managed to make it this:
1741988978790.png


By going to js/plugins/MOG_EventIndicators.js to line 584:
JavaScript:
this._baseSprite.addChild(this._indicatorsField);
And changing it to:
JavaScript:
this.addChild(this._indicatorsField);

Please beware that this may cause unexpected effects so test it well and let me know 🙂
So far your change seems to work as intended--it appears above shadows. I tested with text and pictures, and it appears below both too, so there aren't any immediately unexpected effects. Thank you so much!

As for ParticleEmitter, I've tried the same, and although it solved the issue appearing below shadows, it now appears above all pictures (but thankfully beneath text boxes).

On line 1113 is where it seems to set the layering:

JavaScript:
this._spriteset._tilemap.addChild(emitter._emitterContainer);

By changing it like so, just deleting _tilemap:

JavaScript:
this._spriteset.addChild(emitter._emitterContainer);

I get the behavior I'm now experiencing. I'll keep playing around with it and see if I can get it layered how I want by changing _tilemap to something else.

Worst case, I'll just have to deactivate the particles whenever a picture appears.


EDIT:

It seems to work as intended when I change it to:

JavaScript:
this._spriteset._weather.addChild(emitter._emitterContainer);


For reference's sake, based on the following link to the RPG Maker MV Library, by going down to 'tilemap' and then back up to 'container', it appears that the layering is as described here.
Here is how the map scene looks like when it comes to layer including the plugins:
Code:
Scene_Map: (PIXI Stage) (first thing added will be lower one, the next will cover it.)
  - Spriteset_Map (this._spriteset)
    LOWER LAYER:
    - BaseSprite (this._baseSprite) (Has Tone Filter) (Has Shora Lighting filters)
        -BlackScreen (this._blackScreen)
        -Parallax (this._parallax)
        -Tilemap (this._tilemap)
            - events
            - vehicles
            - followers
            - character (this._characterSprites)
            - shadow (this._shadowSprite)
            - destination (this._destinationSprite)
            - particles (added dynamically in update)
        -Original Location of MOG Event Indicators.
        -ShoraLigthsAndShadows (Added before creating UPPER LAYER, so all plugins using create Lower layer will be undeneath Shora)
    -Weather (this._weather)
        - Dimmer
        - Dynamically addes sprites for the weather effects
    UPPER LAYER:
    - PictureContainer (this._pictureContainer)
       - Pictures
    - Timer (this._timerSprite)
    - FlashSprite (this._flashSprite)
    - FadeSprite (this._fadeSprite)
  - MapNameWindow (this._mapNameWindow)
  - WindowLayer   (this._windowLayer)
     - MessageWindow (this._messageWindow)
     - ScrollTextWindow (this._scrollTextWindow)

So I think your solution makes the particles appear above weather effects. If you don't want that you could do:
JavaScript:
this._spriteset._baseSprite.addChild(emitter._emitterContainer);
I did not test, but this should work because it is added on udpate which is later than shora lighting layer.

Also, my solution for MOG is not perfect becasue it will also be added above weather. Not sure if it bothers you at all.
This is a very useful scheme to have, and the containers are making a lot more sense now. Thanks again.

Knowing that the particles will appear above the weather is useful, and this tells me that the event indicators will appear above both the weather and the particles.

This is actually ideal, because having the floating text appear above the diffuse particles is useful for picking them out visually (and distracting in a good way if they're hallucinations), and having them appear above the weather makes them visible if weather effects like clouds ever obscure sight.

That said, I see a world where weather effects act to visibly obscure both (like heavy rain both washing the scent away and making enough noise), so I might play around with this some more.
I'd like to bring this one back up after a bit.

After putting my project aside for a couple weeks, I've come back to it, realizing that the MOG Event Indicators plugin I was using didn't in fact work as I'd hoped. Because they're registered when the events are registered on scene start (so far as I know), the indicators don't actually appear if new events are spawned with indicators--this means I couldn't readily make the text appear wherever I wanted. I tried a few workarounds with no luck.

However, I've found another similar plugin. Chaucer's Simple Popups does exactly what I want--text above event, custom colors, custom size, floats upwards, and fades out--and it was a fairly simple modification to give messages starting opacity (even if the rest of it is pretty complex).

But unfortunately it also layers below the shadows because it exists on the Character Sprites layer, and I'm not exactly sure how to change its container position because it starts from Sprite_Character instead of a larger container.

As seen on line 528, the popup container is created and then addChild-'d to Sprite_Character.
JavaScript:
//-----------------------------------------------------------------------------
$.alias.S_C_p_initialize = Sprite_Character.prototype.initialize;
//-----------------------------------------------------------------------------
  Sprite_Character.prototype.initialize = function ( character )
  { // Alias of initialize
//-----------------------------------------------------------------------------
    $.alias.S_C_p_initialize.call( this, character  );
    this._popupSprites = [];
    this._popupContainer = new Sprite();
    this.addChild( this._popupContainer );
  };

My hope is that it'll just be a simple change, but I'm prepared if it's something like somehow replacing all of the Sprite_Character references and trying to work around whatever errors are caused.

I'm also wondering if there isn't another way to go about re-layering. Maybe to co-opt the Sprite_Popups and independently attach them to events through some new function and then create a script call to make them show up.

I've been working at this for a couple weekends, but I think it's clear I need the help.

Original thread: https://forums.rpgmakerweb.com/threads/looking-for-help-re-layering-graphics-plugins-or-alternatives.175912/