• 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!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final 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.

[Other✓] How do I find a particular memory address?

ellabrella

PKMN Trainer
  • 57
    Posts
    6
    Years
    • She/It
    • Seen Jun 24, 2025
    hi all,

    i'm wanting to make a pokeemerald hack where parts of the game can be controlled from the outside.

    my plan is to designate a specific location in memory that can be written to by an external tool (probably a lua script attached to an emulator) which the game reacts to in certain ways. for example, the game will check this memory location at a time when it's safe to modify party/PC data, and if the designated memory location has data that gets interpreted as "give the player a pikachu", the game will create a pikachu and add it to the player's party or PC, and clear the memory location so that a new command can come in.

    on the pokeemerald side, i think i can figure out how to make this plan work. however, in order to make the emulator script work, i need to know where in memory i'm supposed to write the data corresponding to the "give pikachu" command, and that's where i feel a bit out of my depth.

    what's a good way of finding the address for something like this? would it have something to do with the pokeemerald.elf file? i haven't encountered that file type before, so i'm not sure how i would search it for the specific location i'm looking for.

    thanks in advance!
     
    Last edited:
    hi all,

    i'm wanting to make a pokeemerald hack where parts of the game can be controlled from the outside.

    my plan is to designate a specific location in memory that can be written to by an external tool (probably a lua script attached to an emulator) which the game reacts to in certain ways. for example, the game will check this memory location at a time when it's safe to modify party/PC data, and if the designated memory location has data that gets interpreted as "give the player a pikachu", the game will create a pikachu and add it to the player's party or PC, and clear the memory location so that a new command can come in.

    on the pokeemerald side, i think i can figure out how to make this plan work. however, in order to make the emulator script work, i need to know where in memory i'm supposed to write the data corresponding to the "give pikachu" command, and that's where i feel a bit out of my depth.

    what's a good way of finding the address for something like this? would it have something to do with the pokeemerald.elf file? i haven't encountered that file type before, so i'm not sure how i would search it for the specific location i'm looking for.

    thanks in advance!

    You can find the addresses of all non-static global variables in the pokeemerald.map file. Just search for the name of your variable in the file.
     
    Back
    Top