Questions in regards to Yami's Overlay Mapping

Hello there, fellow Makers!

I'm currently having some trouble figuring out a couple of issues from Yami's Overlay Mapping script. That link will take you to the script I am using for parallax mapping. I am also lucky to have come across a pretty handy post someone made a couple of years back in regards to it, CVincents Parallax Tutorial. I started following it step by step to making the map, adding in the scripts, etc, but I am still unsure about a few things.

The script mentions that there are four layers: Light, Shadow, Parallax, and Ground. From what I am reading it feels as if it means that Light/Shadow changes the maps from day to night. So, does that mean that Ground is... well, what's below the player, and parallax is above it, such as if you are adding trees in a forest to walk under (but of course declining passability to the trunk)? And if that is correct... does that mean you don't need to make layers for Light/Shadow if you do not need them?

Also, I have followed the instructions and have added the Overlay folder to my game's graphics folder, but it doesn't show up as a folder in the Resource Manager when I run Ace. The script/tutorial mention that the layers should appear once they've been added in, but the folder doesn't even show up.

I have a bunch of other questions, but I think if I can figure out the answer to those two, all my other questions are going to be answered, such as why the layers don't even show up automatically. But thank you everyone for your time!
1) additional resources will show up in game, not in the editor - because nothing in a script can change the editor.
2) make sure you configure the script correctly, and especially reserve the switches and variables used by the script - most problems arise when people think that they can just add this script to the script editor and then forget about it.
3) you don't need all layers, you can make a map with only one of them - or even zero of them if you want to use regular tiles for a map.
Okay, I didn't think you needed all of the layers and they were just for additional stuff if desired. I watched a tutorial on making a parallax map with two layers (they in this case used Hanzo Kimura's original script, which I was unable to find), so I figured there was nothing wrong with that approach. I'm glad that issue is cleared up, then!

As for the script configuration, I made a new project to test this on. The tutorial said to put two scripts down: Yami's Basic Module Script and then Yami's Overlay Mapping Script, with the module script below Materials and above main, and the mapping script just above main (I ended up just putting the mapping script below the module script). The module script didn't require any editing. The Mapping script, however, asks that you change Switches 1 - 4 to "Toggle Light Layer", "Toggle Shadow Layer", etc, until it looks like this:

Switches_zpsaipfvy64.png


But this is the part where I get confused at. The script shows this:

Layer%20Naming_zps3xi5ooxn.png


But I don't know what the Variable part means. I get that, say in the above example, "ground2" would be the ground for MAP002, but what is the -1 after for? What is variable 1? I tried looking on the tutorial for anything about the variable, but I didn't see anything about putting something in the variables screen. So I don't know if I am naming them wrong or not. For example, I'm doing two layers for MAP001, and I've named them 'ground1-1.png' and 'par1-1.png', but they haven't automatically show up on the map as the script claims. I also don't see anything else I need to edit in the script so far, unless I am just missing it because I have no idea what I'm doing.
You have missed part of the configuration - it needs to configure variables as well as switches.
And then you can use the configured variable to change which picture is displayed where (for example to have different light layers at different hours of the day). If you set the configured variable to a value of 1 then the picture ground2-1.png will be used on map 2, if you set the variable to 7, then the picture ground2-7.png will be used on map 2 and so on.
@Andar I'm still a bit confused. What do you mean by configuring variables?

From what I'm understanding from your example, in that scenario we're assuming I've made 7 different grounds for map 2, and when the variable is configured, it changes to that picture. But in the map I am trying to do, there is only one ground. I just want it to find that one map, but it's not pulling up in the editor at all. Am I supposed to have a switch on or do I need to rename the file? It's currently "ground1-1" (as I am using map001).

How would the map change? With switches, I'm guessing, but do I need the switches at all if my map is just going to be one ground layer and then one above layer?
not with switches, but with variables - and I used ground because that was the example in the code, more often it is used with light and shadoe (different lighting at different hours in a game with time), but it could also be used to animate the ground (have three ground pictures with slightly different pictures for leaves, water and animals in the background change every 60 frames or so to simulate an animation as an example).

And the four switches are only the first four of a total of sixteen configuration options - everything before "no edits after this" is for you to edit and configure. By default variables 1 and 2 are used for the four different functions - a lot of people who really want to use these options for animations change that to use four different variables for that, but that depends on what you want to do with it.

I just want it to find that one map, but it's not pulling up in the editor at all. Am I supposed to have a switch on or do I need to rename the file?
No you don't have to do anything and you can't do anything for this - it will NEVER pull up in the editor. It will become visible on playtest for that map, and only on playtest by that script.

You can make a copy of that picture into the parallax folder, set that copy as parallax and then place your passabilities where needed - but the pictures used by the script itself cannot displayed in the editor at all. That is what I meant with "nothing in the scripts can change the editor, it will only change things in the game when playing".
Oh, okay! I see what you mean about the editor now. Awesome, that helps a lot.

As for the variables, I think I understand a little better now the use of them... maybe. It's a little hard to grasp for me, I'm just not used to using variables for anything I've made so far.

Currently, on my test map I have two layers: 'ground1-1' and 'par1-1'. However, when I pull them up to take a look and play test it, the map looks like this:

jg1WFPg.png


The trees that are supposed to be on top just become black silhouettes. The character still passes below them, as he should... but the actual picture of the trees don't show up. Does this have to do with variables as well? What should I put to make this work?
It can be a lot of things, including wrong settings for opacity on a layer or wrong blend mode or disabled overlays or others. And I can't really help you because I never used that script myself.
However, your questions show that you're still not comfortable with the basics like variables or events etc, and you need that knowledge to set everything correctly. So I suggest you stop looking at this problem for a while and work through tutorials on those things, and check back with this problem after you got those basics from the tutorial.

I specifically suggest the "starting point for new users" and the "how to use a script" tutorials linked in my signature below.
Yeah, I was kind of wondering if it was something in GIMP or not, so I'll have to check it out. I've never had a problem with using events as long as they didn't require variables... I'll definitely need to look into this further! I'll check out the links in your signature then and will hopefully gain a better understanding of it.

Thank you so much for your time in helping me with this.

***EDIT: AH HA! The problem for this thing was that I had made an Overlay map in the cloud's main Graphics folder that had the same files, so the script was trying to call both of the layers from the Overlay in the cloud AND the overlay file from the project file on my computer. Once I realized that it fixed the problem right away, and the map works perfectly!***

Original thread: https://forums.rpgmakerweb.com/threads/questions-in-regards-to-yamis-overlay-mapping.82124/