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

items.h - initializer element is not constant

  • 12
    Posts
    4
    Years
    • Seen Jun 27, 2025
    I have recently started using Pokeemerald to create ROMs for personal use (challenge runs, etc.) and I have run into this issue where every instance of ".name" in src/data/items.h has returned "initializer element for 'gItems[XXX].name' is not constant" in the console when building the ROM, where XXX is the number of appearance in the file. I am using the Pokeemerald Expansion (newest version) and I merged the branches removing the conflicts. What is causing this issue? Any help is appreciated.
     
    I have recently started using Pokeemerald to create ROMs for personal use (challenge runs, etc.) and I have run into this issue where every instance of ".name" in src/data/items.h has returned "initializer element for 'gItems[XXX].name' is not constant" in the console when building the ROM, where XXX is the number of appearance in the file. I am using the Pokeemerald Expansion (newest version) and I merged the branches removing the conflicts. What is causing this issue? Any help is appreciated.

    Do the .name sections of each item's data look something like .name = _("Item Name"),?
     
    I'm also having difficulty building the rom with the same error message after merging with RHH battle_engine, I also solved all merge conflicts. All the ".name =_("Item Name")," looks the same. I'm new to C.
     
    Back
    Top