• 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] Issue with registering a partner trainer!

  • 20
    Posts
    3
    Years
    • Seen Dec 21, 2022
    Hey all! Whenever I try to make a partner trainer, I am hit with this error. The trainer class is defined in the exact same manner as the supplied Brendon ally. Can anybody help me out?
    =================

    [2021-12-02 21:29:31 +0930]
    [Pokémon Essentials version 19.1]
    [v19.1 Hotfixes 1.0.7]

    Exception: RuntimeError
    Message: Script error in event 26 (coords 1,8), map 96 (Staffroom):
    Exception: NoMethodError
    Message: undefined method `party' for nil:NilClass

    ***Full script:
    pbRegisterPartner(
    :POKEMONTRAINER_Astra,
    "Astra",0)
    setBattleRule("double")


    Backtrace:
    214:Overworld:688:in `pbRegisterPartner'
    (eval):1:in `execute_script'
    033:Interpreter:137:in `eval'
    033:Interpreter:137:in `execute_script'
    034:Interpreter_Commands:1024:in `command_355'
    034:Interpreter_Commands:116: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'


    Backtrace:
    033:Interpreter:189:in `rescue in execute_script'
    033:Interpreter:135:in `execute_script'
    034:Interpreter_Commands:1024:in `command_355'
    034:Interpreter_Commands:116: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'
     
    Yes I have. It gets stuck on this line of code though. The battle trigger is there though.
     
    Yes I have. It gets stuck on this line of code though. The battle trigger is there though.
     
    Hey all! Whenever I try to make a partner trainer, I am hit with this error. The trainer class is defined in the exact same manner as the supplied Brendon ally. Can anybody help me out?
    =================

    [2021-12-02 21:29:31 +0930]
    [Pokémon Essentials version 19.1]
    [v19.1 Hotfixes 1.0.7]

    Exception: RuntimeError
    Message: Script error in event 26 (coords 1,8), map 96 (Staffroom):
    Exception: NoMethodError
    Message: undefined method `party' for nil:NilClass

    ***Full script:
    pbRegisterPartner(
    :POKEMONTRAINER_Astra,
    "Astra",0)
    setBattleRule("double")

    This error happens because the trainer is not found in the database (aka the file PBS/trainers.txt, where you set the Pokémon team of a trainer). Did you define the partner trainer in the PBS file trainers.txt? If so, did you compile the game?
     
    Back
    Top