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

[Error] Issue with registering a partner trainer!

  • 20
    Posts
    2
    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'
     
  • 20
    Posts
    2
    Years
    • Seen Dec 21, 2022
    Yes I have. It gets stuck on this line of code though. The battle trigger is there though.
     
  • 20
    Posts
    2
    Years
    • Seen Dec 21, 2022
    Yes I have. It gets stuck on this line of code though. The battle trigger is there though.
     

    StCooler

    Mayst thou thy peace discover.
  • 9,320
    Posts
    4
    Years
    • Seen yesterday
    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