Unable to find file:

IneptAttoney_08

Dimas Ridwan AP
Veteran
Joined
Mar 1, 2019
Messages
146
Reaction score
29
First Language
Indonesia
Primarily Uses
RMVXA
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)
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?
 

AloneForLong

Seksy Catgirl
Member
Joined
Feb 15, 2020
Messages
25
Reaction score
0
First Language
English
Primarily Uses
RMVXA
What is your script? Does it use an external file (like an image, etc)
 

IneptAttoney_08

Dimas Ridwan AP
Veteran
Joined
Mar 1, 2019
Messages
146
Reaction score
29
First Language
Indonesia
Primarily Uses
RMVXA
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
 

kyonides

Reforged is laughable
Veteran
Joined
Nov 17, 2019
Messages
287
Reaction score
71
First Language
English
Primarily Uses
RMXP
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?
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,546
Reaction score
5,004
First Language
English
Primarily Uses
RMVXA
Moved to Script Support.

(To anyone helping with code: this is VX Ace)
 

IneptAttoney_08

Dimas Ridwan AP
Veteran
Joined
Mar 1, 2019
Messages
146
Reaction score
29
First Language
Indonesia
Primarily Uses
RMVXA
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.
 

kyonides

Reforged is laughable
Veteran
Joined
Nov 17, 2019
Messages
287
Reaction score
71
First Language
English
Primarily Uses
RMXP
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. :D

Or do anything else you can come up with.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Dev stream today, come on by and ask questions about rpg maker!
Fun fact: If your story introduces a variety of different races, the "human race" will automatically become the most corrupt race in general.
Finally finished my late start entry for the jam. Now. I. Sleep.
Just made 3 easy, simple and small MZ plugins today(12 hours straight), and I never thought I could ever do this.
Now I feel myself being very productive, even though I know I'm just utterly flattering myself lol
Mind: "I have cool ideas! Let's make it real!

Body: "You wanna make sumthin? I'm in."

Eyes: "Go to sleep, go to sleep."

*Sleep*

Forum statistics

Threads
104,642
Messages
1,007,803
Members
136,130
Latest member
totolo5656
Top