Khas Awesome Light Effects

Can I set the lantern effect so it doesn't cut?
I'm getting a little error while using this script.  Its just a graphical error now an actual error.  Picture as follows

Error_zps53b19c3c.png


The edges, on the right side, as you can are not being effected by the dimming effects.  A secondary error (Which I can live with) is that its not counting the walls/etc as walls/etc to not shine through, so the lighting is just happily going through walls and ceilings.   I've taken to reading the instructions, and I've grazed over this thread, but I don't seem to see anyone having the same issue here.    I understand I might not be looking hard enough... and if so I apologize.  But does anyone know what exactly could be causing this?   I gather its likely needing to increase or decrease the size of something but I'm at a lost as to where to start.   It works in the Demo, and I literally just copy and pasted the events from the demo into the map shown above to test them, and they simply didn't work how they did in the demo.   

I'm using Yanfly's Scripts (battle and such), but thats about it, no other scripts that might interact with this.   As far as the lightning ignoring Ceilings/Walls for effect, I read the part about making sure the tilesets are marked correctly, but I imagine the walls and such are marked correctly by default?  I've changed nothing in them, and theres of course the 3 markings (O, X, *).   

So far, Its not a super hard script to use, but I find myself confused as to where to begin if I encounter errors.  So, to sum it up... Can anyone help me solve the issue of the right side of the screen being entirely unaffected by the dimming effects?
I'm getting a little error while using this script.  Its just a graphical error now an actual error.  Picture as follows

Error_zps53b19c3c.png


The edges, on the right side, as you can are not being effected by the dimming effects.  A secondary error (Which I can live with) is that its not counting the walls/etc as walls/etc to not shine through, so the lighting is just happily going through walls and ceilings.   I've taken to reading the instructions, and I've grazed over this thread, but I don't seem to see anyone having the same issue here.    I understand I might not be looking hard enough... and if so I apologize.  But does anyone know what exactly could be causing this?   I gather its likely needing to increase or decrease the size of something but I'm at a lost as to where to start.   It works in the Demo, and I literally just copy and pasted the events from the demo into the map shown above to test them, and they simply didn't work how they did in the demo.   

I'm using Yanfly's Scripts (battle and such), but thats about it, no other scripts that might interact with this.   As far as the lightning ignoring Ceilings/Walls for effect, I read the part about making sure the tilesets are marked correctly, but I imagine the walls and such are marked correctly by default?  I've changed nothing in them, and theres of course the 3 markings (O, X, *).   

So far, Its not a super hard script to use, but I find myself confused as to where to begin if I encounter errors.  So, to sum it up... Can anyone help me solve the issue of the right side of the screen being entirely unaffected by the dimming effects?
I guess the error is caused because Khas used 544 and 416 instead of using Graphics.width and Graphics.height respectively.

Try searching the script for 544 and replace it with Graphics.width, then search 416 and replace it with Graphics.height

If that doesn't work, post the script as text for others to take a look at and see what might be happening.
that is most possibly the case, a lot of people have encountered that error already, assuming you've used yanfly's core to set the resolution to 640x480... 🙂


as for the walls, are you sure you've set the right terrain tags in the respective tilesets?
That worked perfectly, much appreciated. 

that is most possibly the case, a lot of people have encountered that error already... 🙂
Dang ._., I did look pretty hard but i noticed its over a year old and not sure how many updates/etc since then.  I remember seeing the Height/Length thing but it didnt look like the same error.  Musta been :}
as for the walls, are you sure you've set the right terrain tags in the respective tilesets? The script relies on terrain tags to determine how tiles handles the lightings/shadows. You can't simply copy paste the scripts and expect it to run the dynamic shadows. 🙂
as for the walls, are you sure you've set the right terrain tags in the respective tilesets? The script relies on terrain tags to determine how tiles handles the lightings/shadows. You can't simply copy paste the scripts and expect it to run the dynamic shadows. 🙂
No, but I figured it out and set em. 
Hello. I'm new and I have a problem with this script.

 

I created a game and in my pc I had no problems, but to compress and pass it to another person came out this error: http://gyazo.com/37460a6318d2e76a2fab83e070608aec

 

Does anyone know why or what is it?
Hi everyone,

I might be really bad at this, but I couldn't find anything on my issue, yet it still seems rather simple to fix. That's why I'm here seeking some help. 
 
To be short, I want to set the tone of the screen without having to wait for a fade or anything. I think this script can do it but it just fails on me every time. 

First, I use the ''default'' script, found in the demo. I in fact download the demo from the Steam Workshop, here is the link: https://steamcommunity.com/sharedfiles/filedetails/?id=232863030


Second, I tried this option within the same demo, as I thought it could have been a script conflit or something in my project, maybe related to my parallaxes. It doesn't work even within the demo project, which is why I'm totally lost. 

I think we all know that the demo uses the following line to set its tone:

s = $game_map.effect_surface

s.change_color(120,0,0,0,200)
And then, if I read the instructions by line 136 to 175, to set the tone instantly, I should do this instead: 

s = $game_map.effect_surface

s.set_color(0,0,0)
But it doesn't work. 

Yes, I double checked if the event was on autorun.

Some people on other topics said that I had to change line 217 (Surface_UE) from ''true'' to ''false''. It didn't work either. 

I then tried to change the Surface_Z (line 214) from 100 to 254, didn't work either. Did a mix of all the changes too, no success. 

All I want is to set a tone for my maps without having to wait for a fade. Khas Awesome Light Effects will be my main way to add light effects in my game for my parallaxes and I would like it to work. 

Anyone had a similar issue? Thanks for your time!

EDIT: Good news, I got it fixed! 


I actually went on Kha's forum where he said Twitter was the best way to contact him. I did, and within a few hours I got an answer. 

Whatever it means, he said that the surface needs to be visible. In order to do that, its necessary to call both set color and set alpha, in the same script call. It was then indeed an opacity issue. 

It looks like this in the end: 

Quote

s = $game_map.effect_surface

s.set_color(0,0,0)

s.set_alpha(200)
Tweaking the alpha number makes the room darker or lighter depending on my need, like I can have a complete black BUT the places where some lights are on, or a very dim light everywhere with more light where I want with events. I'll have a lot of fun with that, Kha was very kind to reply like that with no follow up haha. 

Hope it can help someone else!
when i open a choice selection it's really dark and i can't see what im selecting, please help! < 🙁
@DancinZombiee 

Set the Surface_Z to 60. This will place the shadows under the selection window. 
@DancinZombiee 

Set the Surface_Z to 60. This will place the shadows under the selection window.
thanks! it worked i'll you know if i have another problem 🙂
the terms of use were just frequently asked questions
Oddball, the terms of use have been updated: http://arcthunder.blogspot.com.br/p/terms-of-use.html
 

@DancinZombiee 

Set the Surface_Z to 60. This will place the shadows under the selection window. 
Just had the same issue, but it was also solved. Thank you for that reply and thank you for making such wonderful scripts.

May I ask you one thing?

It seems that Awesome light effects is a little heavy script.

Are you planning on making future versions with maybe enhancements?
@Dread - lighting scripts are heavy because of the way we handle things right now. But according to Khas, he has developed a DLL to make it smoother and that he's updating this script. When that happens, I would say that the only lighting script worth to use would be this one as all else which doesn't use that method will be slower.

From another thread... posted by Khas

The entire script was rewritten from scratch - I have developed and implemented several techniques to increase performance. The main one is that the new script uses a custom dll (written by me) to handle light and shadow rendering, which reduced the drawing time to about 57% of the previous duration. Also, I'm writing a settings menu so players can change them to suit their machines.
"Also, I'm writing a settings menu so players can change them to suit their machines."

This is just fantastic. It seems it will be overkill! 😀
I have browsed through Napoleon's Master Demo, and I found a few comments mentioning "compatibility with Khas' new lighting script", and according to the dates of those comments it is written in late 2014.


I tried to search for this "new script" but couldn't find anything about it, so I gave up. >.>


But it seems that it is true and Khas will really release a new script, yay!


Can't wait for that script, maybe even my crappy PC will see some FPS increase too. 😀


Thanks for that info, Adik!
Is it possible to combine the area of light with line of sight and put it on an enemy patroling the area?
Is it possible to combine the area of light with line of sight and put it on an enemy patroling the area?
you mean like, enemies only detect you if your light is on, or only if you are in their light area?

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