• 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 next favorite protagonist poll is now up, this time for the Almia region from Pokémon Ranger 2! This poll is only lasting 2 days, so don't forget to cast your vote for your favorite protagonist!
  • 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.

Safari Error

  • 773
    Posts
    14
    Years
    • UK
    • Seen Dec 29, 2024
    I'm getting an error when a pokemon is caught in the safari zone. Normal pokemon catching is fine
    This error only occurs if you have set the pc creator, if you haven't then it works fine

    The error occurs just before the message (the message doesn't show)
    Transferred to Bills PC

    Exception: SystemStackError
    Message: stack level too deep
    PokeBattle_BattlePeer:20:in `pbGetStorageCreator'
    PokeBattle_BattlePeer:21:in `pbGetStorageCreator'
    PokeBattle_BattlePeer:21:in `pbGetStorageCreator'
    PokeBattle_BattlePeer:21:in `pbGetStorageCreator'
    PokeBattle_BattlePeer:21:in `pbGetStorageCreator'
    PokeBattle_BattlePeer:21:in `pbGetStorageCreator'
    PokeBattle_BattlePeer:21:in `pbGetStorageCreator'
    PokeBattle_BattlePeer:21:in `pbGetStorageCreator'
    PokeBattle_BattlePeer:21:in `pbGetStorageCreator'
    PokeBattle_BattlePeer:21:in `pbGetStorageCreator'

    This is the code its referring to

    Code:
     def pbGetStorageCreator()
       creator=nil
       if $PokemonGlobal && $PokemonGlobal.seenStorageCreator
         creator=pbGetStorageCreator
       end
       return creator
     end

    how do i solve this?
     
    That was fixed in version 7. Basically, use creator=Kernel.pbGetStorageCreator in the method you quoted instead, then rename the target method (in PokemonStorage), and rename all other calls to it too (one in PokemonStorage, one in PokemonUtilities).
     
    Back
    Top