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

Ttorial HM move without party knowing them

  • 15
    Posts
    3
    Years
    • Seen Apr 9, 2025
    Hi, I followed the tutorial published on the page "https://github.com/pret/pokeemerald/wiki/Use-HMs-Without-Any-Pokemon-in-your-Party-Knowing-Them"
    to be able to use HMs without teaching them to pokémon (i'm using pokeruby disassembler).
    Compiling the rom gives me the following error:
    "agbcc: warnings being treated as errors
    src/field_control_avatar.c: In function `GetInteractedWaterScript':
    src/field_control_avatar.c:506: warning: implicit declaration of function `CheckBagHasItem'
    make[1]: *** [Makefile:253: build/ruby/src/field_control_avatar.o] Error 1
    make: *** [Makefile:267: ruby] Error 2".

    I copied the code directly from the page so I don't understand what it could depend on.
    Is there anyone who can help me?
    Thanks in advance
     
    Last edited:
    src/field_control_avatar.c:506: warning: implicit declaration of function `CheckBagHasItem'
    Make sure that you have a #include "item.h" in the list of header files invoked at the top of src/field_control_avatar.c.
    The CheckBagHasItem function is defined in include/item.h, so src/field_control_avatar.c needs to be able to read the contents of the file in order to be able to invoke that function.
     
    Thank you very much, now I can compile the pokeruby rom without problems.
    Unfortunately, although I won the first medal, I can't use the HM Cut without teaching it.
    I noticed that there are some code differences between ruby/sapphire and emerald.
    Maybe I didn't put the tutorial code in the right line.
    Anyway, thanks again.
     
    Back
    Top