VX ACE - Setting Tone in Khas Awesome Light Effects not working

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!

Original thread: https://forums.rpgmakerweb.com/threads/vx-ace-setting-tone-in-khas-awesome-light-effects-not-working.36100/