• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
12
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:
10,673
Posts
15
Years
  • Age 30
  • Seen Dec 30, 2023
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.
 

~Angel~

Lead developer for Pokémon Millennium
281
Posts
14
Years
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.
 

Nickalooose

--------------------
1,309
Posts
16
Years
  • Seen Dec 28, 2023
I don't think it can find PKMN trainer... Use the right trainer type
 

pkmn.master

Hobbyist Game Developer
299
Posts
16
Years
  • Age 28
  • USA
  • Seen Jun 7, 2022
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