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

Dex flags in pokeemerald

Subzero Eclipse

Because I say so.
  • 24
    Posts
    7
    Years
    • Seen Mar 4, 2023
    Hello, I have managed to add new Pokemon in my project following the tutorial on pokeemerald wiki, but now I'm having trouble making them actually appear in the Pokedex: so I was wondering, where are the Dex flags located in pokeemerald? I tried looking at DizzyEgg's pokemon_expansion repo as a reference, but to no avail (I understood he moved them to another saveblock, which I might not need since I have added a total of 31 mons only to the game). Thanks in advance
     
    Have you checked gSpeciesToHoennPokedexNum(), gSpeciesToNationalPokedexNum[] and gHoennToNationalOrder[] in src/pokemon.c?

    Also src/data/pokemon/pokedex_orders.h, src/data/pokemon/pokedex_entries.h and various other files there?
     
    Hello, I have managed to add new Pokemon in my project following the tutorial on pokeemerald wiki, but now I'm having trouble making them actually appear in the Pokedex: so I was wondering, where are the Dex flags located in pokeemerald? I tried looking at DizzyEgg's pokemon_expansion repo as a reference, but to no avail (I understood he moved them to another saveblock, which I might not need since I have added a total of 31 mons only to the game). Thanks in advance
    Looking at the guide in the Pokeemerald wiki, I spot at least 1 change that is missing on it.
    You have to adjust the POKEMON_SLOTS_NUMBER constant in include/global.h.
    Give that a shot. It should fix the problem with your new Pokémon not showing up in the Pokédex for sure.
     
    Last edited:
    Turned out to be exactly that line POKEMON_SLOTS_NUMBER. Thanks for the answer =)
     
    Last edited:
    I feel the need to clarify something. After I brought this up on Pret's Discord, the constant POKEMON_SLOTS_NUMBER was removed from the repository.
    Now, there is no additional changes to do during the task of adding entirely new species, beyond following the tutorial on Pokeemerald's wiki.
    The role of POKEMON_SLOTS_NUMBER is now covered by the NUM_SPECIES constant in include/constants/species.h which held the exact same value.
     
    Back
    Top