Problem with Killozapit Cache Back script and Khas' Awesome Light Effects

I am using Galv's menu script with Killozapit's Cache Back script since the beginning of the project and I've had no issues until now.
I recently implemented Khas' Light Effects and I think the problem is between these two scripts.
1665334122482.png

This happens whenever I try to move the player to a different map and I don't know what to do, mainly because these two scripts should not be related at all? So I don't know 🙁

I appreciate any help 🙂
you'll need a better error message before you can even try to solve this.
please follow the link "how to use a script" in my signature to the bughunting section of that tutorial and the description of the backtracer script.
download the backtracer from himeworks and install that script, then open the console and run your game again with the console open.

you should get an error trace that lists all scripts involved in that error.

then post a screenshot of that here for further help.
you'll need a better error message before you can even try to solve this.
please follow the link "how to use a script" in my signature to the bughunting section of that tutorial and the description of the backtracer script.
download the backtracer from himeworks and install that script, then open the console and run your game again with the console open.

you should get an error trace that lists all scripts involved in that error.

then post a screenshot of that here for further help.
Oh, Thank you so much! I am still reading your post, and It'll take me a while, but I'll try to understand everything.

Here's the full error:


Killozapit - Cache Back:239:in `initialize_copy': disposed bitmap, RGSSError
from Killozapit - Cache Back:239:in `initialize_clone'
from Killozapit - Cache Back:239:in `clone'
from Killozapit - Cache Back:239:in `clone'
from Khas Awesome Light Effects:263:in `initialize'
from Khas Awesome Light Effects:628:in `new'
from Khas Awesome Light Effects:628:in `block in setup_light'
from Khas Awesome Light Effects:624:in `each'
from Khas Awesome Light Effects:624:in `setup_light'
from Khas Awesome Light Effects:615:in `setup_page'
from Game_Event:189:in `refresh'
from Game_Event:26:in `initialize'
from Recordar posición evento:55:in `initialize'
from Khas Awesome Light Effects:611:in `initialize'
from Event_Sensor_Range:37:in `initialize'
from Game_Map:100:in `new'
from Game_Map:100:in `block in setup_events'
from Game_Map:99:in `each'
from Game_Map:99:in `setup_events'
from Khas Awesome Light Effects:479:in `setup_events'
from Game_Map:46:in `setup'
from Killozapit - Cache Back:263:in `setup'
from Dynamic Sound Emitting Events:312:in `setup'
from Game_Player:81:in `perform_transfer'
from Scene_Map:205:in `perform_transfer'
from Scene_Map:167:in `update_transfer_player'
from Scene_Map:79:in `update_scene'
from Common Event Buttons:91:in `update_scene'
from QUEST LOG:2589:in `update_scene'
from Scene_Map:66:in `update'
from Scene_Base:14:in `main'
from Weather_EX:817:in `main'
from Killozapit - Cache Back:252:in `main'
from SceneManager:23:in `run'
from Main:10:in `block in <main>'


I really don't understand what's going on there, but I hope this helps you help me(?)

EDIT: Apparently one (or several) of the following scripts is causing this error:
-Killozapit - Cache Back
-Khas Awesome Light Effects
-Recordar posición evento (Remember event position, by Shaz)
-Dynamic Sound Emitting Events by Modern Algebra
-Common Event Buttons by Yanfly
-QUEST LOG (which I should honestly delete since I am not using it yet and is something that I don't know if I'll ever use because it is a bit hard for me to handle)
-Weather_EX by MOG

If I only remove Killozapit's script, the issue is solved, but I need that script so the game doesn't lag whenever the player opens the menu. I'd try to edit the script but I don't understand how it works 🙁

I'll keep reading your post, though, to see if I can try to solve this on my own.
Thank you so much!!
That output is the so-called error trace, listing from top down the last functions and scripts stored in the track.
the higher up an entry is, the more probable is its involvement in the direct error.

which means that your original guess of a problem between the cache and the lighting script was correct.
and it seemed as if the cache script tries to handle another picture that had been deleted before it could complete processing.
and it seemed as if the cache script tries to handle another picture that had been deleted before it could complete processing.
I believe I understand what you mean but I'm lost as to how to solve it... Could it be that it is trying to delete one of the pictures that serves as the light radius or something? I honestly don't know, sorry.

Also, just to make sure, every script that appears in the error trace means that is involved or that it could be involved?

Thanks for your fast replies and your help so far, by the way!!:LZScheeze:
It means it could be involved in the error cause, but not automatically.
consider that like a traveler's roadmap: if the traveler ends up in the wrong place (=error) that could be because of any single step in the travels having gone wrong, but it is not automatically everything wrong.
But the chance is always higher for one of the last steps, because if he went wrong earlier the error should have been displayed earlier.
I know it's been a couple of days, but today I got to keep testing and discovered something more. It happens whenever the player moves to a map twice after using Khas Awesome Lights, so it goes like this:

-Map with Lighting effects loads, everything goes as planned.
-Player moves to another map, and everything goes as planned.
-Player moves to a third map. Then the crash occurs. This always happens whether the map has the script call that changes the screen hue or what map it is. Whenever the player moves to a third map, it crashes. (I know because I tried to set the player's starting position in different places)

About the script trying to delete another picture... I have not discovered a thing yet.

I know the problem is with Killozapit's script, because if I delete it the crash goes away, but I need it for Galv's menu (plus it makes the game run way smoother), so I need to figure out how to solve this problem... I'll see if I can, and if I do, I'll post it here so other people who might run across this problem can solve it too 🙂
I need it for Galv's menu
Why. The script is designed to keep bitmaps in memory for faster access. But it's not necessary at all.
Why does Galv's Menu not work if you don't have it?
Why. The script is designed to keep bitmaps in memory for faster access. But it's not necessary at all.
Why does Galv's Menu not work if you don't have it?
Sorry for the late reply.

It's not necessary, and the menu works, but it takes its sweet time to open/close every menu screen, making the process of navigating through the menu quite slow
It's not necessary, and the menu works, but it takes its sweet time to open/close every menu screen, making the process of navigating through the menu quite slow
Then I would say you have something running more than it should. Meaning a script is causing something to update or refresh consistently.
The demo for Galv Menu Theme works fine on it's own and with Khas Awesome Light Effects.
So something else is causing the lag.
I tested with Kilozapit Cache back and I got errors when exiting the menu.
Meaning a script is causing something to update or refresh consistently.
Is there an easy way for me to figure out which script is the one causing it or is it trial and error? TwT
Is there an easy way for me to figure out which script is the one causing it or is it trial and error?
You can add in a backtracer and Mithran GOBJ scripts to assist. But it's mainly a trial and error.
There is a disable script by Rycochet that will make testing easier, or you can make a change in each script (one at a time) by adding a line at the top of a script and putting in __END__ by itself.
You'll know it's working when the text changes to black.

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-killozapit-cache-back-script-and-khas-awesome-light-effects.151874/