Advertiser Content

Error: Uninitialized constant Window_PokemonOption

Started by Conan Edogawa January 16th, 2012 11:43 AM
  • 2412 views
  • 5 replies

Conan Edogawa

One Truth Prevails

Massachusetts
Seen November 29th, 2015
Posted November 29th, 2015
1,061 posts
10.8 Years
I've tried looking into this error, but I haven't found any solution for it yet. I haven't edited any scripts, so I'm not sure what triggered this. Whenever I try to play test my game I get this exact error:
Script 'PokemonOptions' line 1: NameError occurred.
uninitialized constant Window_PokemonOption

Like I said, I haven't touched any scripts yet, and this is the Christmas Eve release of Essentials.

Conan Edogawa

One Truth Prevails

Massachusetts
Seen November 29th, 2015
Posted November 29th, 2015
1,061 posts
10.8 Years
That was it, I must've done something to it without remembering. But now I get a syntax error with line 487, it reads as follows(the code, lines 477-487):

class PokemonOption
_def initialize(scene)
__@scene=scene
_end

_def pbStartScreen
__@scene.pbStartScene
__@scene.pbOptions
__@scene.pbEndScene
_end
end

The second end is line 487, the troubled line. What I don't understand is why it's giving me the error, could anyone explain to me why I get the error? Oh, and the underscores are to represent spaces, in case that matters. They aren't in the real code.
Advertiser Content