Using KUL together with custom resolutions and yanfly's ace core

In my game, the actual screen size is often bigger than the size of the map and I am using an algorithm very similar to the one in yanfly's ace core to center the map in such cases. The result is that the lights and the light objects are in two different places.

I wondered if there could be an easy solution with a shift value or probably the rectangle values of the map to sync KUL again to the map.

The other thing is the paralax plane. Is there a way to mask out the blocks where I don't want KUL to darken the map? Probably in the same way how I set the wall heights?
@felsenstern can you send me a demo with a sample map and the script you're using to center the map (via PM, please 😀 ). I'll check if I can find a solution to your problem.

Regarding masking, there's no option to do that. Perhaps you could do some complex bitmap blitting, but I believe it wouldn't be that easy.
Edit: I mean, if you know RGSS and everything. I usually recommend to use the same method you use for tilesets to set the height 🙂

Original thread: https://forums.rpgmakerweb.com/threads/using-kul-together-with-custom-resolutions-and-yanflys-ace-core.76460/