• 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!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • 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.

[Graphic✓] [Pokefirered] Modifying party icon palettes

  • 5
    Posts
    8
    Years
    Update:
    The issue has been resolved. I had included a file that doesn't exist in my project, in this case "pokemon_debug.h".

    After that, I had to add the palettes from pokeemerald-expansion by adding the following lines to src/graphics.c:
    Spoiler:
    My original post follows the underlined part.
    ______________________________________________________________________________________________________

    I've changed the sprites and icons in my pokefirered project by using the unga-bunga caveman method of shamelessly copying the entire "/graphics/pokemon" folder from the pokeemerald-expansion.
    Now some of my party icons have funky palettes. In the case of my attached screenshot, this would be Venusaur, Oddish, and Raticate. The other three Pokémon in my party have normal palettes, however.
    [PokeCommunity.com] [Pokefirered] Modifying party icon palettes

    The icons themselves have the correct colors in my "/graphics/pokemon/..." folders.
    [PokeCommunity.com] [Pokefirered] Modifying party icon palettes
    Unlike with the battle sprites, the icon sprites do not have a dedicated ".pal" file in their respective Pokémon's folders.

    There is, however, a folder called "/graphics/pokemon/icon_palettes".
    The contents of this folder is different between vanilla pokefirered and pokeemerald-expansion. Because I did not know which files to delete and which to keep, I decided to Frankenstein('s monster) those two folders together for my project. The first image is the folder as it appears in my project, the second is from vanilla pokefirered, and the third from pokeemerald-expansion.
    Spoiler:


    Is there something different about how pokeemerald (or pokeemerald-expansion) handles the party icon palettes? Which files do I need to modify in order to get the correct palettes? Why are some palettes perfectly fine, whereas some others are messed up, as opposed to either all or none being messed up?
     
    Last edited:
    I've changed the sprites and icons in my pokefirered project by using the unga-bunga caveman method of shamelessly copying the entire "/graphics/pokemon" folder from the pokeemerald-expansion.
    Now some of my party icons have funky palettes. In the case of my attached screenshot, this would be Venusaur, Oddish, and Raticate. The other three Pokémon in my party have normal palettes, however.
    View attachment 107947

    The icons themselves have the correct colors in my "/graphics/pokemon/..." folders.
    View attachment 107948
    Unlike with the battle sprites, the icon sprites do not have a dedicated ".pal" file in their respective Pokémon's folders.

    There is, however, a folder called "/graphics/pokemon/icon_palettes".
    The contents of this folder is different between vanilla pokefirered and pokeemerald-expansion. Because I did not know which files to delete and which to keep, I decided to Frankenstein('s monster) those two folders together for my project. The first image is the folder as it appears in my project, the second is from vanilla pokefirered, and the third from pokeemerald-expansion.


    Is there something different about how pokeemerald (or pokeemerald-expansion) handles the party icon palettes? Which files do I need to modify in order to get the correct palettes? Why are some palettes perfectly fine, whereas some others are messed up, as opposed to either all or none being messed up?

    The code for handling icons can be found (unsurprisingly) in src/pokemon_icon.c.
    There you will also find gMonIconPaletteIndices which specifies which palette is used for each icon, and gMonIconPalettes which contains the palette files used by the icons.
    I'm guessing that adding the extra palettes there and assigning them to the icons correctly is all you would need to do.
     
    The code for handling icons can be found (unsurprisingly) in src/pokemon_icon.c.
    There you will also find gMonIconPaletteIndices which specifies which palette is used for each icon, and gMonIconPalettes which contains the palette files used by the icons.
    I'm guessing that adding the extra palettes there and assigning them to the icons correctly is all you would need to do.

    Thank you. I've modified the file, and now I have a new problem:
    The make command does not recognize my changes. I've tried deleting and recreating src/pokemon_icon.c, but nothing changed. I also tried touching the file and the entire folder, but it still doesn't work.
    I don't get any errors, I just get nothing.
    [PokeCommunity.com] [Pokefirered] Modifying party icon palettes
     
    Thank you. I've modified the file, and now I have a new problem:
    The make command does not recognize my changes. I've tried deleting and recreating src/pokemon_icon.c, but nothing changed. I also tried touching the file and the entire folder, but it still doesn't work.
    I don't get any errors, I just get nothing.
    View attachment 107968

    You can always do a "make tidy" or "make clean" to force files to get rebuilt.
    The issue could be that pokemon_icon.c is silently failing to compile due to an INCBIN having an invalid filepath.
     
    Update:
    The issue was that I had included a file that doesn't exist in my project, in this case "pokemon_debug.h".

    After that, I had to add the palettes from pokeemerald-expansion by adding the following lines to src/graphics.c:
    Spoiler:
    Thank you so much for your help!
     
    Back
    Top