Lantern lights up ceiling tiles

I am having 2 problems using the Lantern add-on to the Ultra Lighting script. Both of these occur in a New Game.

First, I wanted to give the player a light without having to give an item, because I want this to look like it is a skill. My script call was
$game_player.give_light(torch)

However, this gives the following error message.
lighting error.png


The second one comes after I have given an item to do this. I should perhaps mention that the player can walk behind my walls. The problem occurs whether I use an auto tile and a script to give it the equivalent of star setting or a B-E tile set to star to create the ceiling. As you can see from the next screen shot, the light covers the whole of the ceiling. (The ceiling is wide because this is a crypt, and so has thick walls.) Obviously the lower line of ceiling tiles is set to X, so it is not directly the star setting which is causing the problem.

behind walls.png


Another way to illustrate this is to see what happens when the player walks under the ceiling, through a doorway. If I put a region on the tile over the door, the light spreads over all the ceiling tiles and I don't get any 'shaping' of the light. If I omit it on that tile, I get the shaping, but as I go through, the tile is illuminated.

doorway error.png


What am I doing wrong?

Thanks.
I think that might honestly be a default feature in the script. I seem to recall when I was doing research into lighting scripts that most of them had issues with the light appearing on ceilings due to how they were set up. Maybe Khas can confirm more though?
As to the tiles being illuminated, it seems to me that Ultra Lighting is reading a light source on an X tile and displaying it the same as if you had placed a torch on a wall. It's lighting that whole area of the same tile (the "wall") and doesn't continue illuminating to the side or top (where the wall would block the light flow), but does continue illuminating to the bottom if not blocked by another wall (as you'd expect a light on a wall to illuminate the floor).

Just my interpretation of what's happening, though. I don't have Ultra Lighting, so I can't be sure.
If that is right, then that knocks out being able to use it for lights in enclosed places, which is a pretty extensive exclusion category.
If you parallaxed in your ceilings it should work just fine. I know it's not an ideal solution, but it's a solution. I think basically you've run into "plugin incompatibility" because without a plugin/script there's no reason the player should ever be on an X tile, so it's a case that appears not to have been handled in Ultra Lighting. Like I said though, it's just my best guess with the info and pics you provided.
1) You're missing the double quotes, the script call should be:
$game_player.give_light("torch")

2) Shadows in Ultra Lighting are an approximation and they don't always behave as expected. This problem happens because there's no practical way of knowing the Z coordinate of the geometry on a given scene in RPG Maker VX Ace, so I can't get the light to know that the wall is above the character and draw the proper shadows for this (I know this might sound silly, but it's very complicated). The only way I could implement perfect shadows would be to have 3D information about every object in the scene, which is not possible.

I understand that this can be frustrating, but I released the script with the best I could do regarding shadow geometry.
I posted about this same issue in another thread. The characters in my game can walk behind the tops of the walls, too, and I had the same result. I found it worked best for me to just turn off shadows in this situation.
@Khas Thanks for the explanation. Yes, I can see it would be impossible to cater for all eventualities. I think, though, that I can come up with a cunning wheeze using regions which call common events, so I may be able to mitigate things, though it won't be perfect.

And thanks for the clarification on the script call.

Moderator note: Closing

Original thread: https://forums.rpgmakerweb.com/threads/lantern-lights-up-ceiling-tiles.76053/