• 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!
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

[Scripting Question] I have a fatal issue with catching Pokemon.

  • 68
    Posts
    6
    Years
    • Seen Sep 19, 2023
    Hello everyone, I wish this was a simple question, but it's very bad for my game since the first part revolves around catching this special Pokemon. When I caught it, it gave me an error code, something about the Pokedex, and I have no idea how to read what it means. Here is is.
    Code:
    ---------------------------
    Pokémon Electric Pikachu
    ---------------------------
    [Pokémon Essentials version 17.2]
    
    Exception: NameError
    
    Message: uninitialized constant PokeBattle_Scene::PokemonPokedexScene
    
    PokeBattle_Scene:2900:in `pbShowPokedex_ebs'
    
    PokeBattle_Scene:2899:in `pbFadeOutIn'
    
    PokeBattle_Scene:2899:in `pbShowPokedex_ebs'
    
    EliteBattle_1:1800:in `pbShowPokedex'
    
    PokeBattle_Battle:158:in `pbThrowPokeBall_ebs'
    
    EliteBattle_0:367:in `pbThrowPokeBall'
    
    PItem_ItemEffects:1709
    
    PItem_ItemEffects:1708:in `call'
    
    EventHandlers:150:in `trigger'
    
    PItem_Items:246:in `triggerUseInBattle'
    
    
    
    This exception was logged in 
    
    C:\Users\micai\Saved Games\Pokémon Electric Pikachu\errorlog.txt.
    
    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK   
    ---------------------------

    Please, please help! I was hoping to release this today and can't with this issue.
     
    You have a script that's trying to call an instance of PokemonPokedexScene, which is the v16 version of the pokedex scene.
    The catch is there isn't a 1 to 1 translation to v17. The pokedex got a major rewrite in the major version update.
    your scene show pokedex method should be.
    Code:
      def pbShowPokedex(species)
        pbFadeOutIn(99999){
          scene = PokemonPokedexInfo_Scene.new
          screen = PokemonPokedexInfoScreen.new(scene)
          screen.pbDexEntry(species)
        }
      end
     
    Oh my gosh, thank you! It actually worked. With this mistake, I've actually reconsidered a lot of the things in my game to make it better, and so hopefully this project should be coming out in a month.
     
    Back
    Top