• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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
    3
    Years
    • Seen Apr 23, 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