• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Problem!? With the Script

  • 21
    Posts
    13
    Years
    • Seen Aug 7, 2012
    ---------------------------
    Pokemon Essentials
    ---------------------------
    Exception: RuntimeError

    Message: Script error within event 5, map 11 (Bonus Trainers):

    Exception: NameError

    Message: (eval):1:in `pbExecuteScript'uninitialized constant Interpreter::Trainer

    ***Full script:

    pbTrainerBattle(PBTrainers::PKMN Trainer,"Kyouhei",_I("No fair, I only own one pokemon... Oh well I'm going to read more creepy pastas"),false,0,true)

    Interpreter:243:in `pbExecuteScript'

    Interpreter:788:in `eval'

    Interpreter:243:in `pbExecuteScript'

    Interpreter:788:in `command_111'

    Interpreter:320:in `execute_command'

    Interpreter:193:in `update'

    Interpreter:106:in `loop'

    Interpreter:198:in `update'

    Scene_Map:103:in `update'

    Scene_Map:101:in `loop'



    Interpreter:276:in `pbExecuteScript'

    Interpreter:788:in `command_111'

    Interpreter:320:in `execute_command'

    Interpreter:193:in `update'

    Interpreter:106:in `loop'

    Interpreter:198:in `update'

    Scene_Map:103:in `update'

    Scene_Map:101:in `loop'

    Scene_Map:114:in `update'

    Scene_Map:68:in `main'



    This exception was logged in ./errorlog.txt.

    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK
    ---------------------------


    Please explain, because I tried figuring this out myself and some reason it won't go away

    I spelled everything right too and its still giving me this error
     
    Last edited:
    I went ahead and moved this to the Pokemon Essentials section. Remember, if you're getting problems with Pokemon Essentials, it goes in this section. Not Tutorials & Resources.

    Moved.
     
    Hm. It say's it's a name error. I guessing it's the trainer name. If not then it's the trainer type. Try changing the trainer name and if it works then it was the name. If it fails try the trainer type.
     
    I don't think it can find PKMN trainer... Use the right trainer type
     
    Make sure that you keyed the trainer type in correctly, just as it appears for its internal name in the editor. Also, make sure that that type exists.
     
    Back
    Top