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

[Other] pokecrystal 'gfx/pokemon/dewgong/a' build error

  • 7
    Posts
    2
    Years
    I'm working with a fork of GitHub's pokecrystal. In fact, it's my second fork, as I screwed the first one up so badly.

    Trying to build the new one with Cygwin and getting the following error:

    Code:
    make: *** No rule to make target 'gfx/pokemon/dewgong/a', needed by 'main.o'.  Stop.

    This is frustrating for a number of reasons:

    - Most error messages give you a specific line of a specific file to find the source of the problem. No such luck here.

    - I haven't tried doing anything with Dewgong's graphics in particular, so there's no reason why they should be acting up.

    - There shouldn't be, and isn't, a file just called "a" in Dewgong's graphics folder, or any Pokemon's graphics folder. Each of them should have an "anim.asm" and an "anim_idle.asm", but not just "a".

    With that said, "no rule to make" usually indicates a missing file. So the obvious thought is that, somewhere, what should be a request for gfx/pokemon/dewgong/anim.asm or gfx/pokemon/dewgong/anim_idle.asm somehow got accidentally backspaced to just read gfx/pokemon/dewgong/a, hence the error message of not being able to find the file. Well, let's look around.

    https://github.com/hannabartpekopon/GrateCrystal/blob/master/data/pokemon/pic_pointers.asm:
    Code:
    ...
    dba SeelBackpic
    dba DewgongFrontpic
    dba DewgongBackpic
    dba GrimerFrontpic
    ...

    https://github.com/hannabartpekopon/GrateCrystal/blob/master/gfx/pics.asm:
    Code:
    SECTION "Pics 3", ROMX
    
    ...
    SkarmoryFrontpic:    INCBIN "gfx/pokemon/skarmory/front.animated.2bpp.lz"
    DewgongFrontpic:     INCBIN "gfx/pokemon/dewgong/front.animated.2bpp.lz"
    VictreebelFrontpic:  INCBIN "gfx/pokemon/victreebel/front.animated.2bpp.lz"
    ...
    
    SECTION "Pics 18", ROMX
    
    ...
    ShuckleBackpic:      INCBIN "gfx/pokemon/shuckle/back.2bpp.lz"
    DewgongBackpic:      INCBIN "gfx/pokemon/dewgong/back.2bpp.lz"
    UnownBFrontpic:      INCBIN "gfx/pokemon/unown_b/front.animated.2bpp.lz"
    ...

    https://github.com/hannabartpekopon/GrateCrystal/blob/master/gfx/pokemon/anim_pointers.asm:
    Code:
    ...
    dw SeelAnimation
    dw DewgongAnimation
    dw GrimerAnimation
    ...

    https://github.com/hannabartpekopon/GrateCrystal/blob/master/gfx/pokemon/anims.asm:
    Code:
    ...
    SeelAnimation:       INCLUDE "gfx/pokemon/seel/anim.asm"
    DewgongAnimation:    INCLUDE "gfx/pokemon/dewgong/anim.asm"
    GrimerAnimation:     INCLUDE "gfx/pokemon/grimer/anim.asm"
    ...

    https://github.com/hannabartpekopon/GrateCrystal/blob/master/gfx/pokemon/idle_pointers.asm:
    Code:
    ...
    dw SeelAnimationIdle
    dw DewgongAnimationIdle
    dw GrimerAnimationIdle
    ...

    https://github.com/hannabartpekopon/GrateCrystal/blob/master/gfx/pokemon/idles.asm:
    Code:
    ...
    SeelAnimationIdle:       INCLUDE "gfx/pokemon/seel/anim_idle.asm"
    DewgongAnimationIdle:    INCLUDE "gfx/pokemon/dewgong/anim_idle.asm"
    GrimerAnimationIdle:     INCLUDE "gfx/pokemon/grimer/anim_idle.asm"
    ...

    https://github.com/hannabartpekopon/GrateCrystal/blob/master/gfx/pokemon/frame_pointers.asm:
    Code:
    ...
    dw SeelFrames
    dw DewgongFrames
    dw GrimerFrames
    ...

    https://github.com/hannabartpekopon/GrateCrystal/blob/master/gfx/pokemon/kanto_frames.asm:
    Code:
    ...
    SeelFrames:       INCLUDE "gfx/pokemon/seel/frames.asm"
    DewgongFrames:    INCLUDE "gfx/pokemon/dewgong/frames.asm"
    GrimerFrames:     INCLUDE "gfx/pokemon/grimer/frames.asm"
    ...

    https://github.com/hannabartpekopon/GrateCrystal/blob/master/gfx/pokemon/bitmask_pointers.asm:
    Code:
    ...
    dw SeelBitmasks
    dw DewgongBitmasks
    dw GrimerBitmasks
    ...

    https://github.com/hannabartpekopon/GrateCrystal/blob/master/gfx/pokemon/bitmasks.asm:
    Code:
    ...
    SeelBitmasks:       INCLUDE "gfx/pokemon/seel/bitmask.asm"
    DewgongBitmasks:    INCLUDE "gfx/pokemon/dewgong/bitmask.asm"
    GrimerBitmasks:     INCLUDE "gfx/pokemon/grimer/bitmask.asm"
    ...

    https://github.com/hannabartpekopon/GrateCrystal/tree/master/gfx/pokemon/dewgong:
    Code:
    anim.asm
    anim_idle.asm
    back.png
    front.png
    shiny.pal

    https://github.com/hannabartpekopon/GrateCrystal/blob/master/data/pokemon/palettes.asm:
    Code:
    ...
    INCBIN "gfx/pokemon/seel/front.gbcpal", middle_colors
    INCLUDE "gfx/pokemon/seel/shiny.pal"
    INCBIN "gfx/pokemon/dewgong/front.gbcpal", middle_colors
    INCLUDE "gfx/pokemon/dewgong/shiny.pal"
    INCBIN "gfx/pokemon/grimer/front.gbcpal", middle_colors
    INCLUDE "gfx/pokemon/grimer/shiny.pal"
    ...

    https://github.com/hannabartpekopon/GrateCrystal/blob/master/data/pokemon/base_stats.asm:
    Code:
    ...
    INCLUDE "data/pokemon/base_stats/seel.asm"
    INCLUDE "data/pokemon/base_stats/dewgong.asm"
    INCLUDE "data/pokemon/base_stats/grimer.asm"
    ...

    Yeah, I'm just flailing at this point. All this stuff seems to be in order. If you're about to say "but there's no frames.asm or bitmask.asm in gfx/pokemon/dewgong", well, I don't really understand how the build works, but I think those get generated during it, because the setup is the same for every other Pokemon. So that can't be it.

    The real crux here is that the "main.o" style of error message doesn't give me a starting point. Do I just have to go through every single file and Ctrl+F for "gfx/pokemon/dewgong/a"? Is this somehow a memory bank issue and gfx/pokemon/dewgong/anim.asm got cut off right at the "a"? I'd really appreciate some help here.
     
    I'm working with a fork of GitHub's pokecrystal. In fact, it's my second fork, as I screwed the first one up so badly.

    Trying to build the new one with Cygwin and getting the following error:

    Code:
    make: *** No rule to make target 'gfx/pokemon/dewgong/a', needed by 'main.o'.  Stop.

    This is frustrating for a number of reasons:

    - Most error messages give you a specific line of a specific file to find the source of the problem. No such luck here.

    - I haven't tried doing anything with Dewgong's graphics in particular, so there's no reason why they should be acting up.
    When this sort of things happen where you seemingly get errors with files you never touched even indirectly, a make clean always helps reveal the actual errors in your project.
    Code:
    data/items/descriptions.asm: unterminated string
    data/items/descriptions.asm: unterminated string
    data/items/descriptions.asm: unterminated string
    data/items/descriptions.asm: unterminated string
    data/items/descriptions.asm: unterminated string
    data/items/descriptions.asm: unterminated string
     
    Okay, here's a new one. I'm getting this set of build errors:

    Code:
    error: main.asm(494) -> mobile/mobile_40.asm(1772): Unknown symbol "xor_a_dec_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(187): Unknown symbol "xor_a_dec_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(184): Unknown symbol "xor_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(175): Unknown symbol "xor_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(170): Unknown symbol "xor_a_dec_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(167): Unknown symbol "xor_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(161): Unknown symbol "xor_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(153): Unknown symbol "xor_a_dec_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(150): Unknown symbol "xor_a_dec_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(142): Unknown symbol "xor_a_dec_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(139): Unknown symbol "xor_a_dec_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(131): Unknown symbol "xor_a_dec_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(120): Unknown symbol "xor_a_dec_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(114): Unknown symbol "xor_a_dec_a"

    And "make clean" doesn't seem to give any further clues, just ending with this:

    Code:
    find gfx \
         \( -name "*.[12]bpp" \
            -o -name "*.lz" \
            -o -name "*.gbcpal" \
            -o -name "*.sgb.tilemap" \) \
         -delete
    find gfx/pokemon -mindepth 1 \
         ! -path "gfx/pokemon/unown/*" \
         \( -name "bitmask.asm" \
            -o -name "frames.asm" \
            -o -name "front.animated.tilemap" \
            -o -name "front.dimensions" \) \
         -delete

    Something about Unown's graphics? Does that mean it only got that far? But that doesn't seem related to the xor_a stuff.

    Looking at enginge/menus/scrolling_menu.asm, I can see that the most recent commit happened before I forked from the base pret/pokecrystal, so it's not like I screwed it up. I can even compare to my first account, which was forked half a year ago, to see that the most recent commit on the same file there was the same one, from December 2020. So I definitely haven't messed with this stuff at all.

    I don't know whether to call xor_a and xor_a_dec_a "functions" or "commands" or what, but it seems like I must have deleted something elsewhere that defined them? Or somehow cut off access to them? Can I just replace "xor_a" with "xor a"? I have no idea what this stuff is. Is anybody familar?
     
    Okay, here's a new one. I'm getting this set of build errors:

    Code:
    error: main.asm(494) -> mobile/mobile_40.asm(1772): Unknown symbol "xor_a_dec_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(187): Unknown symbol "xor_a_dec_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(184): Unknown symbol "xor_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(175): Unknown symbol "xor_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(170): Unknown symbol "xor_a_dec_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(167): Unknown symbol "xor_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(161): Unknown symbol "xor_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(153): Unknown symbol "xor_a_dec_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(150): Unknown symbol "xor_a_dec_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(142): Unknown symbol "xor_a_dec_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(139): Unknown symbol "xor_a_dec_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(131): Unknown symbol "xor_a_dec_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(120): Unknown symbol "xor_a_dec_a"
    error: main.asm(110) -> engine/menus/scrolling_menu.asm(114): Unknown symbol "xor_a_dec_a"

    And "make clean" doesn't seem to give any further clues, just ending with this:

    Code:
    find gfx \
         \( -name "*.[12]bpp" \
            -o -name "*.lz" \
            -o -name "*.gbcpal" \
            -o -name "*.sgb.tilemap" \) \
         -delete
    find gfx/pokemon -mindepth 1 \
         ! -path "gfx/pokemon/unown/*" \
         \( -name "bitmask.asm" \
            -o -name "frames.asm" \
            -o -name "front.animated.tilemap" \
            -o -name "front.dimensions" \) \
         -delete

    Something about Unown's graphics? Does that mean it only got that far? But that doesn't seem related to the xor_a stuff.

    Looking at enginge/menus/scrolling_menu.asm, I can see that the most recent commit happened before I forked from the base pret/pokecrystal, so it's not like I screwed it up. I can even compare to my first account, which was forked half a year ago, to see that the most recent commit on the same file there was the same one, from December 2020. So I definitely haven't messed with this stuff at all.

    I don't know whether to call xor_a and xor_a_dec_a "functions" or "commands" or what, but it seems like I must have deleted something elsewhere that defined them? Or somehow cut off access to them? Can I just replace "xor_a" with "xor a"? I have no idea what this stuff is. Is anybody familar?

    xor_a_dec_a and xor_a are defined here in home/flag.asm in unmodified pokecrystal.
     
    Back
    Top