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

Makefile params for debug menu not firing

  • 15
    Posts
    3
    Years
    • Seen Nov 7, 2022
    Hi there!

    Been following along with the debug menu tutorial found at https://github.com/pret/pokeemerald/wiki/Add-a-debug-menu

    The menu can fire up just fine if I don't make it dependent on setting the debug params on make (e.g. comment out the code that checks if DEBUGGING flag is true).
    However if I add the 'Debugging' checks in the key combination is ignored as the game doesn't seem to know that we're in Debugging mode.

    Main portion of code I think is giving issues is the following in makefile
    Code:
    ifeq ($(DDEBUGGING),1)
    override ASFLAGS += --defsym DEBUGGING=1
    override CPPFLAGS += -D DEBUGGING=1
    endif

    I'm calling
    Code:
    make DDEBUGGING=1
    in wsl

    The commit with the code changes i've got so far can be found:
    https://github.com/David-vz/pokeemerald-expansion/commit/23da460d2b27941bffae5eae7c9f0a18cfdb1b1e

    Anyone know what I might be missing or doing wrong?

    Thanks in advance for any insights or assistance.
     
    Last edited:
    Quick update:
    Seems like the tutorial I followed might be a bit dated by now. I'd still like to know how to get flags set in makefile to register, but continuing on with the more up to date code found here: https://www.pokecommunity.com/posts/10220970/

    For those coming from other places and who were following along with the wiki tutorial, I'll post a diff of the commit / changes to study up on.

    Essentially pulling in theXaman's branch where there's now a manual flag set in code, instead of in the makefile:

    git remote add xaman https://github.com/TheXaman/pokeemerald/
    git pull xaman tx_debug_system
    make clean
    make

    Commits with merge conflict resolution and a fix:
    https://github.com/David-vz/pokeemerald-expansion/commit/f4b60fa620808a67bd27abe70601744e455c2fe1
    https://github.com/David-vz/pokeemerald-expansion/commit/835954ab89e893b386417f57f9687d086bae53a9
     
    Last edited:
    Back
    Top