Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: Emberstar on September 13, 2010, 07:46:33 pm

Title: Error When Exiting Game
Post by: Emberstar on September 13, 2010, 07:46:33 pm
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.
Title: Re: Error When Exiting Game
Post by: 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.
Title: Re: Error When Exiting Game
Post by: 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.
Title: Re: Error When Exiting Game
Post by: WhiteRose on September 15, 2010, 09:12:48 pm
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.
Title: Re: Error When Exiting Game
Post by: ForeverZer0 on September 16, 2010, 12:03:55 pm
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.