• 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] Day Care Error

  • 67
    Posts
    10
    Years
    When I leave a Pokémon at day care, I get this message:

    Code:
    [Pokémon Essentials version 19.1]
    [Generation 8 Project v1.1.0]
    [v19.1 Hotfixes 1.0.3]
    [EBDX v1.2]
    
    Exception: RuntimeError
    Message: Script error in event 1 (coords 7,3), map 24
    Exception: NoMethodError
    Message: undefined method `isSpecies?' for nil:NilClass
    
    ***Full script:
    pbDayCareDeposit(pbGet(1))
    
    Backtrace:
    221:Overworld_DayCare:55:in `block in pbDayCareDeposit'
    221:Overworld_DayCare:51:in `each'
    221:Overworld_DayCare:51:in `pbDayCareDeposit'
    (eval):1:in `execute_script'
    033:Interpreter:137:in `eval'
    033:Interpreter:137:in `execute_script'
    034:Interpreter_Commands:1030:in `command_355'
    034:Interpreter_Commands:116:in `execute_command'
    033:Interpreter:127:in `block in update'
    033:Interpreter:87:in `loop'
    
    Backtrace:
    033:Interpreter:189:in `rescue in execute_script'
    033:Interpreter:135:in `execute_script'
    034:Interpreter_Commands:1030: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'

    Edit: Nevermind, it seens my script got corrupted. I got it fixed by now.
     
    Last edited:
    How exactly did you fix the error? I'm getting the same error, but cannot diagnose it.
     
    Hi,

    How exactly did you fix the error? I'm getting the same error, but cannot diagnose it.

    Look at this post:
    https://www.pokecommunity.com/threads/460448

    Is an error produced by Generation 8 Project. In "def pbDayCareDeposit(index)" change
    Code:
    $PokemonGlobal.daycare[i][0].form = 0 if p.isSpecies?(:SHAYMIN)
    to
    Code:
    $PokemonGlobal.daycare[i][0].form = 0 if $Trainer.party[index].species == :SHAYMIN
     
    Back
    Top