Khas Ultra Lighting - The Foggy Time update!

Moderator note: English only please.
Has anyone encountered a battle error where upon escaping from a battle, the game freezes? I can escape from an enemy placed on a map 20 times over. When I escape in a pitch dark room with a lantern on, the screen freezes on the battle screen. I can hear the world music start playing again, but the battle screen stays up.

I'm not saying this is the fault of the ultra lighting, but the battle escapes don't seem to freeze up anywhere else. Advanced time is on pause (it's a cave scene) so the only script running on the world map is the ultra lighting script. Again, I'm not saying this is the fault of the ultra lighting script, just probing to find out where the error might be coming from and starting from the most obvious script I have running.

EDIT: I'm leaving this post up as a just in case, but I'm investigating that this might be a problem related to the classical ATB system. Far more likely.
@jasonluthor did you find what the problem is? If you still believe it's a bug on Ultra Lighting, could you send me a demo with the bug so I can test it?
@jasonluthor did you find what the problem is? If you still believe it's a bug on Ultra Lighting, could you send me a demo with the bug so I can test it?

My apologies! It is most definitely not the lighting system. Testing for the bug, the locked screen occurs even when you operate a battle from the testing page and when not on a map, so the lighting script isn't even active. It looks more likely to be the result of enemies attacking a position at which a battler is no longer present during the moment of escape, creating an error. I've been pretty busy with a new job the lat month so Ihaven't been able to troubleshoot it as much as I'd like, but I wouldn't worry about it being related to the Ultra Lighting Script.
Best script so far! Loving it alot. Very good job on this one.
I'm so gonna buy this on Steam.

Just one thing, does this script supports more than one; two or more, flashlight instances?
@Cerveau it supports one light per character, be it a torch, a flashlight or some other light 🙂
I am having a problem setting lights in battle. If I use the script call from the demo, i.e.
$game_map.set_battle_lighting("simple")
then it works as one would expect.

However, I want to use a different one, so I tried
$game_map.set_battle_lighting("torch")
However, no light appeared, it was just the plain battleback. "torch" is configured in the script, and the light associated with it is in the Lights folder, it's the one in the demo.

I tried a range of other lights, but nothing.
Is there an additional step that I'm overlooking?

Thanks.
@Kes the string passed to set_battle_lighting refers to the scene name, not to the light itself. So you must have it defined in the battle lighting add-on, like this:
Code:
  "simple" => {
    :color => Color.new(0,0,0),
    :opacity => 150,
    :lights => [
      ["simple", 180, 248],
      ["simple", 364, 248]
    ]
  },
Aha! Got it.
Thanks very much for this. I can now go ahead and make some custom lights knowing that I'll be able to use them.
Hi, Khas... I'm so contented buying it (via Steam), really wonderful. I wish the demo you included was that wicked Silent Hill-esqued demo, though... I am fan of that demo. Anyway, thanks for this.

But, got some questions:

1.) Can game_player and .followers, game_map.events[n] emit or cast shadows when exposed to light? Enlighten me please, I am kind of troubled having wrong interpretations understanding the shadows despite the readmes.

2.) Is it possible to put the handsome "Graphics" option; from the main menu, inside Yanfly's System Option menu mod? I just wanted all my options fall together on to only one location. You're script is way so serious as time bomb to make any makeshift code snippet about the menu... a little help.

Thanks again! I REALLY AM LOVING IT!

P.S. Khas, btw, you're the best!
@Cerveau thanks for the compliments, I'm glad you enjoyed it!

1) Unfortunately only walls can cast shadows in this system. This is a very complex problem and I couldn't find a viable solution.

2) I don't know how exactly Yanfly's system works, but it shouldn't be too hard to link them together. You will need to make his script call the scene Scene_Graphics. If you check the KUL | Graphics Menu add-on, you will see there how that scene is called, which should be similar to Yanfly's script.

Anyway, if you can't manage to link them together by yourself, this is something easy that most scripters should be able to do!
The good old script call, so that's where it is. Now everything's green! Thanks again Khas! 🙂
Ambient Occlusion
test_ao.png
Khas I have seen you posting this for quite a while but I haven't seen this feature available yet, it look amazing. Any chances you might add that in the future even tho you said you no longer making new content for RPG Maker?
@Knayter I was going to add this feature, but the performance hit wasn't worth it. It would work well only for some people, so I've decided to drop it, sorry!
Nevermind, just found out the solution from the manual. xD
Khas I noticed the default shadows are removed when using your script. As I am making a mountain map where default shadows help in giving a height aspect to bridges and cliffs i wondered if there was a way to make those shadows still appear while using KUL or to just turn off KUL on that specific map.
Khas I noticed the default shadows are removed when using your script. As I am making a mountain map where default shadows help in giving a height aspect to bridges and cliffs i wondered if there was a way to make those shadows still appear while using KUL or to just turn off KUL on that specific map.
You find that option in the Script "Khas Ultra Lighting" named "Disable_STD_Shadows". By default it's set to true. Just set it to false and the shadows from VX Ace will show.
@Khas I'm using a custom script to change region IDs and a mountain map with many bridges. I gave the possibility to the player to go under and on those bridges, but that makes lights on or under the bridges weird. I was wondering if there was a way to generate them again for the new region IDs or to make a square unaffected by light and change that when the player goes on the bridge
shadows dont work in object, tree, events?

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