Khas Awesome Light Effects

I'm having two issues with this awesome script.

Issue 1:

When I leave from one map to another the lighting in both rooms gets messed up as well as the shadows, by messed up I mean the lighting is either brighter than before or the shadows aren't correct in the fact that it treats a wall as a floor instead of a wall.

Issue 2:

I'm using FenixFyreX's In-Depth Maps script which allows ceiling tiles to be placed over the character. But when I simulate lighting either by changing the surface color or by flashing the screen the character briefly appears above the ceiling tiles not sure how to fix that other than to get rid of the lightning (can do it but I like the effect it gives).

Other than these issues it's an awesome script.
@Skurge what you have to do is go to the WALLS set of tiles on your tileset and set the roof tag 7 and the wall tag 6.

That way the script will know what is a wall and what is a roof.

A5, B, C and so on do NOT work as walls so putting tags7 and 6  there, will not work.
Ah! The one thing I overlooked! Thanks a bunch mate that makes things look so much nicer! Though I kinda grew fond of the regular light effect ahah
slkjdfv

Issue 1:

In order to solve this you must check your tile tags (for the correct shadows) and also your event commands.

There's must be some event interfering with the brightness.

Issue 2:

Shadows won't work well with the script you said. The geometry is calculated assuming that the light source isn't behind tiles, and I can't change this :/
Thought I'd ask quickly, say I wanted guards patrolling around a town at night, how would you gear them with a light as if they were holding a lantern, I tried chopping around and giving them the comment command to have a light but the light source remains on the spot while the guard moves away.
I'm using Zeus Map Effect http://forums.rpgmakerweb.com/index.php?/topic/13941-map-effects/, and when I use his zoom effect, the light from your script keep the same size and in the same place. I use the other zooming methods too but all the time it conflict with your script, , is there anyway to fix this problem? If not can you tell me if there are any map zooming method that can work fine with your script?
So I fixed my overhead ceiling issue. The error was on my part I was enabling a switch that was bound to the ceiling script. That's what was causing the player to briefly appear, I just bound the script to another switch, How ever I'm still having an issue with the shadows. It seems to be in only one of the rooms. I don't have any events changing the lighting or anything when switching from one room to the next yet when I go back to the first room it gets brighter then when I re-enter the other room its walls have now become floors and have shadows. I'm sure I'll figure it out eventually. And yes I have them marked correctly within the tilesets cause when I first enter the room the shadows ARE how they are supposed to be its just when I leave and go back that this issue occurs. Thanks again for the help. I can post a screen shot if you need it.
Skurge

This script only has support for one lantern. If you want to give lanterns to events you may want to use my newer script, the Ultra Lighting.

essen46

Unfortunately I can't make this compatible for lack of time reasons, but if you know RGSS, you can set the zoom_x and the zoom_y of the $game_map.light_surface. You may set the ox and the oy to center the image too.

slkjdfv

That's really weird. If you post the screenshot we may figure what's happening!
Skurge

This script only has support for one lantern. If you want to give lanterns to events you may want to use my newer script, the Ultra Lighting.

essen46

Unfortunately I can't make this compatible for lack of time reasons, but if you know RGSS, you can set the zoom_x and the zoom_y of the $game_map.light_surface. You may set the ox and the oy to center the image too.

slkjdfv

That's really weird. If you post the screenshot we may figure what's happening!
Thank you so much for replied 🙂 But unfortunately I don't know anything about RGSS, however I will give it a try :3 Hope when you have more time you can help me with this problem, or at least just tell me what exactly should I learn to fix it because right now I absolutely have no idea where to start with 🙂 ))))
If you study rgss a bit and study the Sprite class methods, you should be able to do it 😀
@Khas I think it may have something to do with the ceiling script. I just find it odd how it calculates the shadows correctly the first time and not the second time. The left image is when I re-enter the room and the right one is when I first enter the room.

Screen1.png

Screen2.png
Is the colour light only exclusive for the ultra light script? I have a few rooms that have dark red tints and such and instead of having a red orb emitting a white/yellowy light I find a faint red one to accompany it might look nicer.
@Khas

Hello!

I'm not sure if it's a bug, but lights stay in the same spot once they are put on the map. Even if I use move route or set event location, the light stays on the same spot u.u

Is there a way to fix it? =)

Thanks in advance
slkjdfv

Oh, so I think it is the ceiling script. Have you tried disabling it?

Skurge

You can make colored lights with this script, you just need to use a colored graphic. But Ultra Lighting has advanced color blending/composition, so it will look nicer! eaffeijij

Kizami

Moving lights will only work with my new script (ultra lighting). This one doesn`t have support for moving lights with shadows.
I've tired making an event much like the other ones that call for a light effect using a red light graphic but it still shows the same normal one even though the text is different.

How would you get past this?
Wait... The script is $24..? 🙁  

I guess I might upgrade eventually. 🙁
Hello Khas. Thank you so much for making such a great script to use! But I do have one error. 

The ONLY problem I have is that when I have the script on in a map for and my light source is active (usually with torch 2) I find that for some strange reason another light source

is flickering in the upper left-hand corner of the map. Though I have nothing specified for it to do so. As seen below...

imgur.com/1CRWiYP

Any idea what's causing this? Please help. 

http://imgur.com/1CRWiYP
coticka

Thanks!

Is the lantern active on this scene?

This is really weird and unexpected!
I have the fire event set to this on the fire graphic 

http://imgur.com/80nFNkg

And here I have the event for changing the screen color in the lower right-hand corner of the map. 

http://imgur.com/KvwN5Xl

And that's all. 
Don't use parallel process events for setting a lantern/making a surface change.


Just use an autorun event and place an erase event command at the end of the event.


If you really need to use a parallel process event, you can still do the same, just put an erase event at the end, or else it will run constantly, and that is not needed.


And remove the lantern script calls from the first event. I guess, that is that light on the upper corner.
coticka

Oh, just remove the script call from your fire event. The script commands are meant to control the player's lantern.

Original thread: https://forums.rpgmakerweb.com/threads/khas-awesome-light-effects.4917/