Khas Ultra Lighting - The Foggy Time update!

Yeah, it will be rrally helpful if individual lights can be made and modified by script calls
Hello guys!

First of all, sorry for these days without saying anything. I moved from Brazil to the United States on August 27th, so the past weeks have been crazy busy for me. I also left my computer on Brazil, so I had to buy a new one. I tought I could deal with all the support with no problems, but I've been receiving a lot of feedback and questions, so it's difficult to be available to all of it.

I kindly ask for your patience on contacting me, as I will try to reply and solve any questions/problems that might appear (slowly, for now).

ksjp17

I can make comment tags for custom offsets, would this be sufficient?

I just had an idea about script calls control, I will try something too.

KanaX

You can assign groups (through comments or script setup) to the lights that you want to change the opacity and then use script calls for that.

The opacity variation uses a cosine curve to smoothly change it.

Kakko

I will add something like that in the future 😀

Allerka

This problem seems complex. Could you send me a demo (via private message) so I can analise it?

Firgof

Thanks 😀

Fabzy

Yes! Update your Khas Core Library, the new version has support for these kind of regions.

Penumbra

1. You can use any color you want, you just need to make a graphic for it and place it on the Graphics folder! This way lights can be anything you want.

2. Yep, this script places a shadow overlay above the map/characters layer. I would need a Z Buffer to do what you want (I tried), but the performance cost is inviable.

AcStudio

I tried to make shadows more complex (for example, with custom heights as you want), but the performance cost wasn't viable, so the best solution is the one implemented. Please note that shadows are an approximation of the real situation due to the RPG Maker's limitations.

1. It receives RGB values (0 to 255) to set the color. Remember that the shadow overlay must have an opacity greater than 0 in order to see something happening.

I tested it here with this code, it works pretty fine:

$game_map.shadows.set_color(rand(255), rand(255), rand(255), 120)2. Atually it's really stable. You are trying to use an invalid script call (I could tell this because of the error line), probably sending wrong arguments. Also, please take a look at this thread.

3. You can change the region range now, I released an update for the Khas Core Library. However, there's a bug generating these weird shadows indeed. I found it and I will fix it soon.

4. It's relative to the other sprites. Your bitmap may be inside a viewport that goes under the shadow overlay.

I checked that it's working with this script call:

$aaa = Sprite.new$aaa.bitmap = Cache.light("light")$aaa.z = 4005. The size is reduced in relation to it's center. So you must create your custom lights carefully and make sure they are centered, otherwise they might look weird when reduced (you should use the offset command instead of changing the center on the picture).

7. I might implement it on the near future. Before adding features for advanced users I tried to make the easiest to use.

8. The light will only show when the page is activated.

10. Can you send me this smooth camera script so I can try some stuff?

11. Weird... I will take a look into this.

Thanks for the compliments and the awesome feedback!

Engr. Adiktuzmiko

Yep, that sounds cool!

I will think more about this suggestion.

Dreadshadow

Yep! It will be available, but I'm not sure when. This doesn't depend on me, but I think it will be available in October.

And thanks a lot! I'm glad you liked it!

About the region thing, I need to do some tests before saying anything. 😛
Random idea, how feasible would it be to implement a feature? I guess it can be evented as well, for animated lights? quickly swapping of referenced light images? 
Having worked with your awesome lights script previous, I knew you did awesome work. For anyone on the fence about upgrading to this, do it. The price tag is most def worth it.

P.S: I was wondering if there was a script call to turn off the player lantern. If not I can just use the switch.
Allerka

This problem seems complex. Could you send me a demo (via private message) so I can analise it?
Nevermind, it was user error. I feel silly, but I wanted to let you know it wasn't an actual problem with the script.

As for the lights not working on subsequent maps, I figured it out. My town map had a color tint in its comments via your script, which was somehow disabling the shadows on any interior maps when I transitioned to them. I removed the colors, and it worked fine.
Hey Khas! I just bought the script. I'm REALLY liking it so far! One question, could you perhaps make a compatibility fix for me? I really need to find a way to get them compatible and so far, I have nothing.

http://forums.rpgmakerweb.com/index.php?/topic/3851-advanced-game-time/

This script has support for your LAST script but not this one. Could you make them compatible (.ie, lighting effects are still visible, but overall tint is controlled by time) like your last lighting script acted with it? If you did, it would mean the world to me.
Hmmm I think it would be the other way since it was Vlue's script that manages how time does the lightings... Or maybe he could just make his own time system.
"Vlue's Advanced Game Time integration" is on Khas's list in the OP.
Compatibility with parallax mapping is absolutely essential and I will purchase it because it seems to be so, but Khas, for future add-ons, keep us parallaxers in mind 🙂
Compatibility with parallax mapping is absolutely essential and I will purchase it because it seems to be so, but Khas, for future add-ons, keep us parallaxers in mind 🙂
I'm using this with:

Yami - Overlay Mapping

Victor Engine - Fog and Overlay

I'm even running Modern Algebras animated parralax in the same project (for various reasons). 

And they all three play nicely together with Khas Ultra Lighting. 

So yeah, I think it'll work out for you!
I'm using this with:

Yami - Overlay Mapping

Victor Engine - Fog and Overlay

I'm even running Modern Algebras animated parralax in the same project (for various reasons). 

And they all three play nicely together with Khas Ultra Lighting. 

So yeah, I think it'll work out for you!
Oh wow! Then don't be surprised if I try to get ahold of you!!! Any noticeable FPS plummetting?
Oh, and if you have the time, ARC engine compatibility. Nothing TOO gamebreaking, it's just that dynamic lights don't move position, they just stay wherever the light source was to be originally. For example, if it's a player flashlight, it will stay where the player entered the map. Static light effects work fine though. Thanks!
Found an odd bug:

When ever a script call is used to change how dark the map is ( $game_map.shadows.set_opacity(x, x) )  the changes do not go into effect until after a battle or one uses the menu then backs out. Don't suppose there is a script call I could use after the about shadows set to fix this?

Edit: This bug ONLY seems to come up when the time is set to 0. Setting it to anything double digits (even 10), seems to totally negate the problem.
Khas, any word on the Vlue Advanced Time integration? I know it's on your list, but a few of us have paid money for your script and kinda need this to use it. Thanks.
Wouldn't the time script integration just have to do with associating a opacity along with tone.

When it looks up the tone (and is a night time), have it run the script call for opacity change. Light time being 1 (or disabling light via the switch), and pitch dark being 255. I did something similar with Vlue's basic time and your old light script.
Which is basically a change in Vlues script rather than Khas'... You'd just edit it's call to the old lighting script to make it call the new script insteaf

@venusaur - Just because you bought this doesnt mean he needs to make sure it works with any script out there. 🙂
I'm aware. I'm just saying that a compatibility addon would be nice. ('specially cuz he said he's making one already.)
It's  a lot quicker for Vlue to write compatability between them then Khas necause Vlue has the triggering effects in it.
But Vlue has never responded to a single on of my comments/messages! Getting his attention is basically impossible.
But Vlue has never responded to a single on of my comments/messages! Getting his attention is basically impossible.
He's pretty much taken a hiatus from here because he was getting perpetually swarmed with questions/requests.

You'll have to wait for Khas to make the compatability patch. Centralizing the changes to this script makes more sense. Plus, you're assuming Vlue actually paid for this script (Which I asked and he hasn't), since without it it'll be mighty hard for him to do much of anything. He's forwarded the relevant information on his script to Khas, so just sit tight for a bit.

Original thread: https://forums.rpgmakerweb.com/threads/khas-ultra-lighting-the-foggy-time-update.43927/