Error When Exiting Game

Started by Emberstar, September 13, 2010, 07:46:33 pm

Previous topic - Next topic

Emberstar

I use RPG Maker XP. When I playtest this game I'm working on, and then open the game menu and select exit, I receive this error message:

'Scene_Menu' line 232: NameError occurred
undefined local variable or method 'update' for #<Scene_Exit:0x15b68a0>

When I select okay, the game is terminated.
I have used at least one script from this forum, in order to a) include more than four party members at one time, and b) to insert a "Change Party Members" option onto the game window. My thinking is that I probably copied something wrong, but as I have no knowledge of coding I have no idea how to go about fixing this.

ForeverZer0

You have a scene called Scene_Exit, and the update method is being called for it, but it is not defined or does not exist.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Emberstar

Quote from: ForeverZer0 on September 14, 2010, 12:09:33 pm
You have a scene called Scene_Exit, and the update method is being called for it, but it is not defined or does not exist.


I understood that, but I still don't know how to 'define' this method or where to find it.

WhiteRose

Quote from: Emberstar on September 15, 2010, 06:14:05 pm
Quote from: ForeverZer0 on September 14, 2010, 12:09:33 pm
You have a scene called Scene_Exit, and the update method is being called for it, but it is not defined or does not exist.


I understood that, but I still don't know how to 'define' this method or where to find it.


With the script editor up, hit Ctrl+Shift+F, and type in the name of the method. This will search all of your scripts. Once you find out which script it's in, you can just replace that script with a working version.

ForeverZer0

I don't know what Scene_Exit is, but it may not even have an update method. If that's the case, find the script thats calling it, and make it so that it doesn't.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.