Undefined Method 'setup' for class 'Game_Interpretor'

For some reason I am suddenly getting this error when I attempt to run my game:

NameError Occurred:

Undefined Method 'setup' for class 'Game_Interpreter'
 

I have not worked on it for about 4 or 5 days now, and I have not recently added any new scripts. It was working fine when I last used it.

The error occurs right after I hit play, before the title screen or anything comes up. It is doing it on multiple scripts. I know this because after the first one had an error I commented out that script to troubleshoot later. I tried running the game again and it then displayed the same error for another script. 

Here is the line of code that the error is referring to:

  alias shaz_mouse_game_interpreter_setup setupAgain, it is not just doing it in this script, here is another one it will do it in if I comment out the above script:

alias :th_large_choices_clear :clear
Most probably you have deleted an end or an ; somewhere, because the alias commands should never get into the game interpreter (which processes commands given by the event script command).

The only way the game interpreter should be able to get to such a line is if an end that stops the interpreter is missing or a recursion between commands occured (usually for the same missing end).
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


The message is saying that you don't have a Game_Interpreter.setup method. You need one. Commenting out script after script that refers to it is not going to help you - you need to figure out WHY you don't have a setup method in Game_Interpreter and fix it.


Do a global search (control+shift+f) for this:

def setupLook down the list and see if Game_Interpreter is listed there (and not setup_reserved_common_event or setup_choices or setup_<anything else>)
In my RTP scripts, it's line 49 in Game_Interpreter.


If you can't see it there, go to your Game_Interpreter script and tell me what method is listed between the clear method and the create_fiber method. That's where it should be.


Any chance you've just deleted stuff from your Game_Interpreter script?
'Game_Interpretor'
Is that 'o' a typo here or is that actually in your script?
Sorry about that Shaz, I stopped at the first support section instead of scrolling through to the bottom. Thanks for the move!

Yeah, I was only commenting out the 1st script to troubleshoot if the problem was within that specific script or somewhere else.

I just checked the Game_Interpreter Script and compared it with a fresh one, and yes, somehow I had deleted out a few lines. I am rather unsure how I did it, but nonetheless it had happened. I copied over a fresh one and everything works now.

Thank you both for the timely response!

@Lavra, no, it was a typo on my part. =)

Original thread: https://forums.rpgmakerweb.com/threads/undefined-method-setup-for-class-game_interpretor.39094/