Unable to find file:

I receive an error like in this image when I create a custom script for the item purchase confirmation window in Scene_Shop and this error also occurs when one of the actors uses a skill (Error does not occur when the actor uses a weapon)
Spoiler
ear.PNG
At first this error only occurred when the actor used the skill.
But when I make two custom scripts, (the first one is used to confirm buying items and the second is used to confirm selling items)
The error appeared.
Then I tried to remove the second script, which is the script to confirm selling goods. But the error is still happening today.
how to solve this error?
What is your script? Does it use an external file (like an image, etc)
What is your script? Does it use an external file (like an image, etc)
I just created a confirmation window which is a child of the Command window.
Window_BuyConfirm < Window_Command
Please post the actual error message for we can't help you if we don't get enough details. What's the filename? Where does it tell you it should be located?
Moved to Script Support.

(To anyone helping with code: this is VX Ace)
Please post the actual error message for we can't help you if we don't get enough details. What's the filename? Where does it tell you it should be located?
The error message does not indicate which file is missing. that's what made me ask you here.

I've managed to solve this problem. I deleted and re-created the error window script and the error actor.
Well, since this can return in the (not so near) future, it's better to include a check that makes sure a string representing the filename isn't empty alias "". You can either make it fail and return a more specific error message with:

Code:
raise "No filename was specified" if string.empty?

That will quit the game after clicking on the popup window warning the developer about that error or mere slip. 😀

Or do anything else you can come up with.

Original thread: https://forums.rpgmakerweb.com/threads/unable-to-find-file.127442/