Why doesn't Yami's overlay work?

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,731
Reaction score
929
First Language
Dutch
Primarily Uses
N/A
So, I made a light file, named it light5-1.jpg, as my map's id is Map005, and it just doesn't work.


I'm not using any of the variables for something else, so what's going on?
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Please post a link to the script in question + your set-up event if you have one. :)


Also, I believe this should go into Script Support as it's for a specific script. Anyway, let the mods handle that one.
 
Last edited by a moderator:

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,731
Reaction score
929
First Language
Dutch
Primarily Uses
N/A
Please post a link to the script in question + your set-up event if you have one. :)


Also, I believe this should go into Script Support as it's for a specific script. Anyway, let the mods handle that one.
You need an event? The script said it was on automaticly..
Edit: Grrr it also messes with Galv's message system -_-
 
Last edited by a moderator:

Tommy Gun

♩ ♪ ♫ ♬
Veteran
Joined
Jan 20, 2014
Messages
385
Reaction score
123
First Language
English
LIGHT_SWITCH = 1 # Turn on/off light layerSHADOW_SWITCH = 2 # Turn on/off shadow layer

PARALLAX_SWITCH = 3 # Turn on/off parallax layer

GROUND_SWITCH = 4 # Turn on/off ground layer
You need to turn those switches on yourself. Also, is your image in the correct folder?
 

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,731
Reaction score
929
First Language
Dutch
Primarily Uses
N/A
You need to turn those switches on yourself. Also, is your image in the correct folder?
Yes, they were in Overlay, and it didn't work..


Another problem that I found is that this script makes my messagebox move allll the way down the screen, so it coflicts with Galv's messagebox script..


Is there any fix for that?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,359
Reaction score
7,672
First Language
German
Primarily Uses
RMMV
Have you checked switches and variables with F9 when playtesting the overlay?


It might be that something switches them off or changes the values without your knowledge.


The switches need to be ON and the light variable set to 1 for your picture to show up.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
You need an event? The script said it was on automaticly..
As I said, "If you have one" since you didn't put a link right at the OP, I didn't know if it needs one or not. :)
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Please post a LINK to the script. Do not post the entire script here.


The supposed "conflicts" with other scripts is probably because you haven't read the instructions and configured them all correctly.
 

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,731
Reaction score
929
First Language
Dutch
Primarily Uses
N/A
All switches are on by default. Tried it in a fresh project and again, it just doesn't work.


I can't give a link to the script as his site is dead.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,359
Reaction score
7,672
First Language
German
Primarily Uses
RMMV
All switches are on by default.
And what about the variable values? have you checked them like I aske several postsa above?
 

Tommy Gun

♩ ♪ ♫ ♬
Veteran
Joined
Jan 20, 2014
Messages
385
Reaction score
123
First Language
English
All switches are on by default. Tried it in a fresh project and again, it just doesn't work.

I can't give a link to the script as his site is dead.
What do you mean, "by default"? No switches are on by default in a project, you need to set them in an event.
 

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,731
Reaction score
929
First Language
Dutch
Primarily Uses
N/A
When I checked with F9 the first 4 were on, without me making an event or anything.


I managed to get the ground/parallax to work, but sadly it doesn't work the way I'd like it to, because suddenly my shadowlayer will let people walk over it instead of under it.


Guess I'll have to stick to V's fog, and then find something else for the sunrays / backgrounds.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
That is because the script, by default, uses the first 4. You are meant to go and find switches/variables you are NOT using yet, name them so it's clear they're being used by the script, and then go and edit the script to tell it which switches/variables to use.


What's happening is that because you haven't told the script to use new ones, it's using ones that are already used by other events in your game, and they're going to conflict.


So what you need to do is NOW look at the script, see what switches and variables it uses, go and find the same number of switches and variables that you haven't yet used for your game (this, of course, requires that you put a name against them when you DO use them), name them so you don't accidentally use them later for something different, and go and change the switch and variable ids in the script to the ones you've allocated.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,359
Reaction score
7,672
First Language
German
Primarily Uses
RMMV
When I checked with F9 the first 4 were on, without me making an event or anything.
And what are the values for the variables?
I asked two times before, but your answers are always about the switches, never about the variables - and those are critical for Yami's script.


If I remember correctly, Yami's overlay allows you to cycle through several light overlay by changing the variable number (for example time-based), and if the variables are set to the wrong numbers then the script will look for the wrong light-picture and it will not display the correct one.
 

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,731
Reaction score
929
First Language
Dutch
Primarily Uses
N/A
Edit: ugh, finally got it to work it seems. For some odd reason yami doesn't use parallax1-1, but par1-1.

doesnotwork.png
 
Last edited by a moderator:

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

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,018
Members
137,563
Latest member
MinyakaAeon
Top