(Resolved) Looking for glossary of error code meanings - NoMethodError, nilclass, etc.

Hi,

I am working without any imported scripts, and always on a new game (never from a save file) when playtesting. I keep running into error messages that don't mean anything to me. I am looking for a place where there is some kind of directory or glossary or dictionary of error message terms that will make it possible for me to troubleshoot. I have not found anything from searching either on google or on the forums so far, and the help file in the program itself is written for someone who already knows what all the terms mean.

A common error I get is "NoMethodError occurred" and "undefined method upCase for nil:NilClass". I usually look for someone who has had similar issues, but most of the time the resolutions don't apply to my situation (e.g. for this particular error usually people are told they have used a custom script, or playtested from a previously saved game).

Often I don't understand the explanations given, e.g. the word "Method" gets thrown around a lot in contexts that make no sense to me.

Is there any resource to help with interpreting what error messages mean and troubleshooting things ourselves?
The scripting language in VX Ace is based on Ruby, so doing a Google for Ruby and the error message should get you accurate descriptions. For example, NoMethodError:

The same is true if you Google a Ruby tutorial that explains functions and methods.

However, I don't see (and perhaps someone who's used the engine will know better than I do) how you could be getting these sorts of errors if you don't have any scripts. The default game code wouldn't have errors in it, so if you don't have scripts installed, you shouldn't have code-based errors, and you won't have anything to edit/change to try to fix it.
"undefined method upCase for nil:NilClass
You need to take a class in programming to have an understanding in the terms used, or study it a lot.
What ATT_Turan said is true.
You CANNOT have ANY errors without any scripts added or the default scripts modified, unless you are doing script calls in an event or what Andar says below.
These options deal with code and if you haven't changed anything and are not using script calls, then it is impossible to get errors.

As for that error I quoted from your post, it is saying that the method upCase is not found, but it sayd 'for nil' which means that the word or call before it does not exist (as far as the engine is concerned).

Now onto a lot more than 'what?'.
The word upCase is in a format common for javascript because javascript uses camelCase in its code. If you are trying to use java code in VX Ace, then it will not work. Unless you have a script that uses the same method coded for ruby. upcase does exist for ruby but its upcase not upCase. not a big difference and shouldn't cause an issue in ruby.

RPG Maker VX Ace uses ruby code whereas MV & MZ uses javascript. They are not compatible.

With that said...

A method is a term that is defined within the code. Used to specify a specific set of instructions to use.
Class Window_Base <- a Class
def method_name <- a method inside the class (or module)

Now you need to explain what you are trying to do and where you did it.
As the two posters above said, most script errors cannot happen without you using any script.

However contrary to what they said there IS a single case where you can get script errors without using any script, and that usually results in error messages like these:

undefined method upCase for nil:NilClass

And that is if you delete objects in the database AFTER they are already used somewhere, because any error "of nil" or "of NULL" or similar means that the engine is looking for a data object that no longer exists.

Examples:
you make a map with a treasure chest containing "Potion XY", and after that go into the database and delete "Potion XY" (as in deleting the ID, not simply renaming them). Then you'll get an error even on a new game as soon as you try to open the chest-event.

Or you use the default actors (each with a different class), but then remove most of the classes because you don't want them - the still existing actors will still reference their old classes until you manually change them, resulting in errors as soon as those actors are used.


You should not delete anything from the base project until you know where it is used and have removed all references to that.
there IS a single case where you can get script errors without using any script...And that is if you delete objects in the database AFTER they are already used somewhere
Good call.
Thanks everyone for the replies, and thanks ATT-Turan for the tip about looking up how Ruby works and looking into tutorials.

I double-checked the scripts to see if maybe i had added a custom script ages ago and then forgotten about it, but there wasn't anything unusual in there. I think there are other circumstances were an error can be generated, because I have gotten crashes-to-desktop accompanied by "unterminated string meets end of file" errors from having " quotation marks in the wrong place in strings filling variables.

I ended up finding the error - I was inserting text boxes into various common events so I could see when each common event completed successfully, I was using it to try and trouble-shoot other errors. I put for example "1/3", "2/3", "3/3" into the text boxes to show how far a common event had progressed, with the textboxes being three checkpoints, to narrow down where other errors where occuring. But I mistyped and used a backslash - "2\3" instead of "2/3" - in one of them. When I changed the backlsah to a forward slash, the problem dissappeared. I think \3 must be some undocumented text box code or something like that. Maybe "\3" is intended to be a shortcut to referencing some object that I did not have in use, like Andar suggested.

Original thread: https://forums.rpgmakerweb.com/threads/resolved-looking-for-glossary-of-error-code-meanings-nomethoderror-nilclass-etc.144838/