• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Akari, Red, Kris, May - which Pokémon protagonist is your favorite? Let us know by voting in our semifinal favorite protagonist 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.

[RB] Bug with Pokedex AREA functionality

  • 12
    Posts
    305
    Days
    • Seen May 21, 2025
    I am working on my ROM hack of Pokemon Red/Blue and I'm running into a bug with the Pokedex AREA functionality not working properly.

    I modified data/wild/grass_water.asm to include WildDataPointers for the towns and cities of the game and this has caused the AREA functionality not to function adequately. Right now, the Pokedex is misreporting where Pokemon can be found. For example, although I have made SQUIRTLE to show up in Pallet Town, Route 21, Route 10, and the Safari Zone, the game is showing completely different areas instead.

    Anyone knows what may be causing this issue?
     
    To add a bit of context and explain the situation more. I added encounter tables to the game for places such as Pallet Town and Viridian City, and with these new tables I had to add WildDataPointers to /data/wild/grass_water.asm. This made "bank3" too large, and originally I moved the engine/overworld/wild_mons.asm portion of the bank to a bank2 just before. This caused part of the error and I have since addressed it, however the CheckMapForMon function in /engine/items/item_effects.asm is still not finding all the Pokemon locations correctly. There are no issues for some Pokemon, but for others only some of the locations appear and others do not. I am not sure exactly what is going on, but I believe it has something to do with wBuffer.

    Please, any help would be appreciated.
     
    Back
    Top