• 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 Conquest 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] Undefined method []

  • 85
    Posts
    4
    Years
    • Seen Nov 24, 2023
    [Pokémon Essentials version 19.1]
    [Generation 8 Project v1.1.0]
    [v19.1 Hotfixes 1.0.5]

    Exception: NoMethodError
    Message: undefined method `[]' for nil:NilClass

    Backtrace:
    [Following Pokemon EX] 004_DepEvent_Updates.rb:194:in `block in pbFollowEventAcrossMaps'
    [Following Pokemon EX] 004_DepEvent_Updates.rb:189:in `each'
    [Following Pokemon EX] 004_DepEvent_Updates.rb:189:in `pbFollowEventAcrossMaps'
    [Following Pokemon EX] 002_Refresh.rb:311:in `block in transfer_player'
    [Following Pokemon EX] 002_Refresh.rb:308:in `each'
    [Following Pokemon EX] 002_Refresh.rb:308:in `each_with_index'
    [Following Pokemon EX] 002_Refresh.rb:308:in `transfer_player'
    032:Scene_Map:162:in `block in update'
    032:Scene_Map:155:in `loop'
    032:Scene_Map:155:in `update'

    Anybody know how to fix this error, it maybe regarding a script that I have. It occurs when I enter a new area.
     
    Last edited:
    The problem seems to be in your script for "FollowEventAcrossMaps". It appears to be around an "each" line, which usually means something is missing or out of place. Has this problem always happened since you've added following pokemon, or a recent problem?

    If this is a plugin, check to make sure its for v19. Then look at that plugins FAQ, to see if the answer is there. Then make sure its installed correctly. Then look at the code the plugin has and then look at the code in your game. Make sure they are the same, including all syntax. Then check the comments of the plugin, Follow Pokemon is a pretty popular plugin, I imagine that if it had a bug like this it would have been mentioned by at least 1 other person.

    If this is a custom script, then just troubleshoot how you normally would do.
     
    Back
    Top