• 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.

[Error] Error when trainer battle starts.

  • 35
    Posts
    4
    Years
    • Seen Mar 19, 2025
    [Pokémon Essentials version 19.1]
    [v19.1 Hotfixes 1.0.7]

    Exception: RuntimeError
    Message: Script error in event 7 (coords 10,12), map 123 (Cerulean City Gym):
    Exception: NameError
    Message: uninitialized constant Interpreter::PBTrainers

    ***Full script:
    pbTrainerBattle(PBTrainers::SWIMMER_M,"LUIS")

    Backtrace:
    (eval):1:in `execute_script'
    033:Interpreter:137:in `eval'
    033:Interpreter:137:in `execute_script'
    034:Interpreter_Commands:352:in `command_111'
    034:Interpreter_Commands:29:in `execute_command'
    033:Interpreter:127:in `block in update'
    033:Interpreter:87:in `loop'
    033:Interpreter:87:in `update'
    032:Scene_Map:157:in `block in update'
    032:Scene_Map:155:in `loop'


    Backtrace:
    033:Interpreter:189:in `rescue in execute_script'
    033:Interpreter:135:in `execute_script'
    034:Interpreter_Commands:352:in `command_111'
    034:Interpreter_Commands:29:in `execute_command'
    033:Interpreter:127:in `block in update'
    033:Interpreter:87:in `loop'
    033:Interpreter:87:in `update'
    032:Scene_Map:157:in `block in update'
    032:Scene_Map:155:in `loop'
    032:Scene_Map:155:in `update'

    Error pops up when it tries to go into the actual battle, thought it was because it was trying to start a battle with a trainer that didn't exist but when I added a Swimmer M called Luis to trainers, it didn't fix it.
     
    In case someone else has this issue : The problem was me bringing in the maps and thus th eevent scripts from an older version of Essentials. The problem was the PBTrainers: in the event.
     
    Back
    Top