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

Pokefirered Summary Screen coordinate editing

  • 3
    Posts
    6
    Years
    • Seen Dec 7, 2022
    I am currently trying to move elements around on the summary screen. There are quite a few offsets known for their respective coordinates, however these coordinates are fairly limited in range and therefore I believe are relative to some sort of window around each string. I am using the decomps to change values, then compare it against a clean rom to find the necessary offsets needed to change the size of the window created and allow for more range of where stuff is placed on the screen.

    So far, I have found "AddTextPrinterParameterized3" which seems to load in a single line, and "AddTextPrinterParameterized4" which is used for strings that need character and line spacing, ex multiple lines. These are both defined in "menu.h" and require a paramter named windowId. For all of the instances of this function in pokemon_summary_screen.c, this parameter is filled by "sMonSummaryScreen->unk3000[3] (or 4)". However, this variable is not referenced in any other file, and doesn't seem to be the answer.

    Another thing I have noticed, all of the values on the first page have the same value for the x offset. Sure, this makes sense because they are all aligned however that also means that they are all based relative to the same vertical line, which just so happens to be exactly 120 pixels from left side of the screen, or 1/2 or the gameboy's resolution.

    tldr; does anyone know how to move the window in which each string is rendered in for the summary screen? For example, the held item string's x value by default is 47, though it is a lot farther to the right of the screen than 47 pixels.
     
    Last edited:
    Some further investigating into the hex; each set of coordinates for the element end with the hex values F7 F7, or F7 F6 etc depending on the screen. 120 dec into hex is 78, and if you select a block of data from the last set of coordinates' F7 F7 to the end of the current set, there are multiple instances of 78 showing up. Maybe this number is added to the coordinate in order to shift it halfway across the screen?
     
    How did you get in to find these things, did you have to make a linux partition, and build the repository like it said on git?
     
    Back
    Top