New account registration is temporarily disabled.

STATUS MENU ERROR

Posts

Pages: 1
Hi I'm very new to rpgmaker and I think I fucked something up.

I've been play testing my game as I go and today I noticed that every time I try to look at the status menu, I get an error message that says:

Script 'Window_Base'line 310:NoMethodError occurred.
undefined method 'upcase' for nil:NilClass
(Sorry I would include an image but it only allows images with links)

I thought that it happened because I added a self made class but when I tested that method in another game, that worked fine. I also tried copy pasting the entire Window_Base script from a fresh game to this and still nothing.
If anyone has any idea what this could be or what to do I would really, really appreciate it! This is in RPGMaker VX Ace btw
Marrend
Guardian of the Description Thread
21806
Let's see what the heck is even going on at that point of the code on a non-edited basis.

class Window_Base < Window
  #--------------------------------------------------------------------------
  # * Control Character Processing
  #     code : the core of the control character
  #            e.g. "C" in the case of the control character \C[1].
  #--------------------------------------------------------------------------
  def process_escape_character(code, text, pos)
    case code.upcase # <- This is the line throwing the error.
    when 'C'
      change_color(text_color(obtain_escape_param(text)))
    when 'I'
      process_draw_icon(obtain_escape_param(text), pos)
    when '{'
      make_font_bigger
    when '}'
      make_font_smaller
    end
  end
end

So, it seems to me that to get that particular error message, the "code" variable that is passed into that function would have to be "nil". That variable type has no functions, or properties, as "nil" is basically a stand-in for "undefined" in a general sense. How the heck "nil" was passed into it in the first place, though? I'm not really sure.
I am 95% sure it was caused by some error that happened when inputting a description for the new actor. When I was going through everything (again) to try and see what could be wrong I saw the text in the description box was formatted weird (It wasn't showing it all, most of it was hidden instead of going to the next line). I deleted the description and suddenly it started to work just fine?

So yeah. Think it was a weird bug and now I'm kicking myself for not noticing :,)
My psychic debugging hunch without knowing RMVXAce at all*: You had a backslash at the end of your description with nothing following it, like this:

I'm a description that crashes the engine, yay\

Further psychic debugging hunches tell me that has happened because you have a keyboard layout that has the backslash key right above the enter key (such as English) and accidentally hit the wrong key once.

*: Other than having looked at how some UI looks so that I can adjust the official RM2k(3) to look alike...
Pages: 1